Bug 339788 - Crash when opening WebP from http:// resource
Summary: Crash when opening WebP from http:// resource
Status: RESOLVED FIXED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: Git (add output of "git log -1 --oneline" to description)
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-08 11:38 UTC by Elias Probst
Modified: 2015-01-11 02:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: http://quickgit.kde.org/?p=gwenview.git&a=commitdiff&h=30844aa652770568053f9bf5ecaff2960f7c4c76
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2014-10-08 11:38:21 UTC
Running KF5/P5 from git + Qt 5.4.0 alpha.

Requested gwenview "git log -1":
commit 4eaf0f464ebb513f8fa3d5a531e7a7285f0528b4
Author: Luca Beltrame <lbeltrame@kde.org>
Date:   Wed Oct 8 07:34:31 2014 +0200

    Use -qwindowtitle instead of the no longer existing -caption

When trying to open a WebP image via http:// (e.g. https://www.gstatic.com/webp/gallery3/2_webp_ll.webp), gwenview crashes after startup (the window shows up for a brief moment).

Downloading the file and opening locally works as expected and shows the message
Loading 2_webp_ll.webp failed
Gwenview cannot display documents of type image/x-webp.
… as I built my system without WebP support.

Application: Gwenview (gwenview), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4a0ae08800 (LWP 18402))]

Thread 2 (Thread 0x7f4a08a9f700 (LWP 18411)):
#0  0x00007f4a17bfc63d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f4a117731f2 in poll (__timeout=-1, __nfds=1, __fds=0x7f4a08a9ecd0) at /usr/include/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x20f6960, cond=cond@entry=0x20f69a0, vector=vector@entry=0x0, count=count@entry=0x0) at /var/tmp/portage/x11-libs/libxcb-1.10/work/libxcb-1.10/src/xcb_conn.c:447
#3  0x00007f4a11774df7 in xcb_wait_for_event (c=0x20f6960) at /var/tmp/portage/x11-libs/libxcb-1.10/work/libxcb-1.10/src/xcb_in.c:622
#4  0x00007f4a0a9c9329 in QXcbEventReader::run (this=0x21009e0) at qxcbconnection.cpp:1094
#5  0x00007f4a1827020f in QThreadPrivate::start (arg=0x21009e0) at thread/qthread_unix.cpp:345
#6  0x00007f4a133e6023 in start_thread (arg=0x7f4a08a9f700) at pthread_create.c:309
#7  0x00007f4a17c05cfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f4a0ae08800 (LWP 18402)):
[KCrash Handler]
#6  testAttribute (attribute=Qt::WA_Disabled, this=0x0) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:858
#7  isEnabled (this=0x0) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:763
#8  QGraphicsProxyWidgetPrivate::findFocusChild (this=this@entry=0x2cbf0e0, child=0x0, next=next@entry=true) at graphicsview/qgraphicsproxywidget.cpp:365
#9  0x00007f4a19219c29 in QGraphicsProxyWidget::focusNextPrevChild (this=0x2cba140, next=<optimized out>) at graphicsview/qgraphicsproxywidget.cpp:1377
#10 0x00007f4a19202cf3 in QGraphicsItemPrivate::setVisibleHelper (this=0x2cbf0e0, newVisible=false, explicitly=explicitly@entry=true, update=update@entry=true, hiddenByPanel=<optimized out>) at graphicsview/qgraphicsitem.cpp:2325
#11 0x00007f4a19202e41 in QGraphicsItem::setVisible (this=this@entry=0x2cba150, visible=<optimized out>) at graphicsview/qgraphicsitem.cpp:2457
#12 0x00007f4a19215b92 in QGraphicsProxyWidget::eventFilter (this=0x2cba140, object=0x25c41e0, event=0x7fff8592de30) at graphicsview/qgraphicsproxywidget.cpp:925
#13 0x00007f4a1844ad59 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=this@entry=0x20ebd00, receiver=receiver@entry=0x25c41e0, event=event@entry=0x7fff8592de30) at kernel/qcoreapplication.cpp:1036
#14 0x00007f4a18f3b51c in QApplicationPrivate::notify_helper (this=this@entry=0x20ebd00, receiver=receiver@entry=0x25c41e0, e=e@entry=0x7fff8592de30) at kernel/qapplication.cpp:3725
#15 0x00007f4a18f40540 in QApplication::notify (this=0x7fff8592f1c0, receiver=0x25c41e0, e=0x7fff8592de30) at kernel/qapplication.cpp:3512
#16 0x00007f4a1844ab05 in QCoreApplication::notifyInternal (this=0x7fff8592f1c0, receiver=receiver@entry=0x25c41e0, event=event@entry=0x7fff8592de30) at kernel/qcoreapplication.cpp:940
#17 0x00007f4a18f76428 in sendEvent (event=0x7fff8592de30, receiver=0x25c41e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#18 QWidgetPrivate::hide_helper (this=this@entry=0x2cabab0) at kernel/qwidget.cpp:7920
#19 0x00007f4a18f79ef8 in QWidget::setVisible (this=0x25c41e0, visible=<optimized out>) at kernel/qwidget.cpp:8123
#20 0x00007f4a18f765eb in QWidgetPrivate::close_helper (this=0x2cabab0, mode=QWidgetPrivate::CloseNoEvent) at kernel/qwidget.cpp:8252
#21 0x00007f4a18f76da4 in QWidget::~QWidget (this=0x25c41e0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1585
#22 0x00007f4a18f76dd9 in QWidget::~QWidget (this=0x25c41e0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1670
#23 0x00007f4a1921478a in QGraphicsProxyWidget::~QGraphicsProxyWidget (this=0x2cba140, __in_chrg=<optimized out>) at graphicsview/qgraphicsproxywidget.cpp:525
#24 0x00007f4a192147c9 in QGraphicsProxyWidget::~QGraphicsProxyWidget (this=0x2cba140, __in_chrg=<optimized out>) at graphicsview/qgraphicsproxywidget.cpp:527
#25 0x00007f4a1badc461 in Gwenview::AbstractDocumentViewAdapter::~AbstractDocumentViewAdapter (this=0x23a8d20, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/gwenview-9999/work/gwenview-9999/lib/documentview/abstractdocumentviewadapter.cpp:42
#26 0x00007f4a1bae9399 in Gwenview::MessageViewAdapter::~MessageViewAdapter (this=0x23a8d20, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/gwenview-9999/work/gwenview-9999/lib/documentview/messageviewadapter.cpp:66
#27 0x00007f4a1bae3c82 in cleanup (pointer=<optimized out>) at /usr/include/qt5/QtCore/qscopedpointer.h:62
#28 reset (other=0x2c61d30, this=0x2c3fa38) at /usr/include/qt5/QtCore/qscopedpointer.h:157
#29 setCurrentAdapter (adapter=0x2c61d30, this=0x2c3f9f0) at /var/tmp/portage/kde-base/gwenview-9999/work/gwenview-9999/lib/documentview/documentview.cpp:102
#30 Gwenview::DocumentView::slotLoadingFailed (this=0x29156c0) at /var/tmp/portage/kde-base/gwenview-9999/work/gwenview-9999/lib/documentview/documentview.cpp:469
#31 0x00007f4a1bb4f5b5 in Gwenview::DocumentView::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /var/tmp/portage/kde-base/gwenview-9999/work/gwenview-9999_build/lib/moc_documentview.cpp:233
#32 0x00007f4a1847a451 in QMetaObject::activate (sender=0x2c63cf0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fff8592e290) at kernel/qobject.cpp:3707
#33 0x00007f4a1847aa77 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f4a1bd90bc0 <Gwenview::Document::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fff8592e290) at kernel/qobject.cpp:3573
#34 0x00007f4a1bb4b6b5 in Gwenview::Document::loadingFailed (this=<optimized out>, _t1=...) at /var/tmp/portage/kde-base/gwenview-9999/work/gwenview-9999_build/lib/moc_document.cpp:308
#35 0x00007f4a1847a451 in QMetaObject::activate (sender=0x2c642e0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x0) at kernel/qobject.cpp:3707
#36 0x00007f4a1847aa77 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f4a1bd90c40 <Gwenview::AbstractDocumentImpl::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x0) at kernel/qobject.cpp:3573
#37 0x00007f4a1bb4b383 in Gwenview::AbstractDocumentImpl::loadingFailed (this=<optimized out>) at /var/tmp/portage/kde-base/gwenview-9999/work/gwenview-9999_build/lib/moc_abstractdocumentimpl.cpp:194
#38 0x00007f4a1bad6326 in determineKind (this=0x2c64800) at /var/tmp/portage/kde-base/gwenview-9999/work/gwenview-9999/lib/document/loadingdocumentimpl.cpp:141
#39 Gwenview::LoadingDocumentImpl::slotDataReceived (this=<optimized out>, job=0x2c64760, chunk=...) at /var/tmp/portage/kde-base/gwenview-9999/work/gwenview-9999/lib/document/loadingdocumentimpl.cpp:440
#40 0x00007f4a1847a451 in QMetaObject::activate (sender=sender@entry=0x2c64760, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff8592e5a0) at kernel/qobject.cpp:3707
#41 0x00007f4a1847aa77 in QMetaObject::activate (sender=sender@entry=0x2c64760, m=m@entry=0x7f4a1ad08780 <KIO::TransferJob::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff8592e5a0) at kernel/qobject.cpp:3573
#42 0x00007f4a1aa76254 in KIO::TransferJob::data (this=this@entry=0x2c64760, _t1=_t1@entry=0x2c64760, _t2=...) at /var/tmp/portage/kde-frameworks/kio-9999/work/kio-9999_build/src/core/moc_transferjob.cpp:298
#43 0x00007f4a1aa7659b in KIO::TransferJob::slotData (this=0x2c64760, _data=...) at /var/tmp/portage/kde-frameworks/kio-9999/work/kio-9999/src/core/transferjob.cpp:56
#44 0x00007f4a1aa7758d in KIO::TransferJob::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /var/tmp/portage/kde-frameworks/kio-9999/work/kio-9999_build/src/core/moc_transferjob.cpp:151
#45 0x00007f4a1847a451 in QMetaObject::activate (sender=sender@entry=0x2c3c070, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff8592e800) at kernel/qobject.cpp:3707
#46 0x00007f4a1847aa77 in QMetaObject::activate (sender=sender@entry=0x2c3c070, m=m@entry=0x7f4a1ad073a0 <KIO::SlaveInterface::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff8592e800) at kernel/qobject.cpp:3573
#47 0x00007f4a1aa4ef52 in KIO::SlaveInterface::data (this=this@entry=0x2c3c070, _t1=...) at /var/tmp/portage/kde-frameworks/kio-9999/work/kio-9999_build/src/core/moc_slaveinterface.cpp:376
#48 0x00007f4a1aa51dc0 in KIO::SlaveInterface::dispatch (this=0x2c3c070, _cmd=<optimized out>, rawdata=...) at /var/tmp/portage/kde-frameworks/kio-9999/work/kio-9999/src/core/slaveinterface.cpp:147
#49 0x00007f4a1aa4f3c8 in KIO::SlaveInterface::dispatch (this=0x2c3c070) at /var/tmp/portage/kde-frameworks/kio-9999/work/kio-9999/src/core/slaveinterface.cpp:88
#50 0x00007f4a1aa5373e in KIO::Slave::gotInput (this=0x2c3c070) at /var/tmp/portage/kde-frameworks/kio-9999/work/kio-9999/src/core/slave.cpp:359
#51 0x00007f4a1aac9975 in KIO::Slave::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /var/tmp/portage/kde-frameworks/kio-9999/work/kio-9999_build/src/core/moc_slave.cpp:86
#52 0x00007f4a1847a451 in QMetaObject::activate (sender=0x2c3fa80, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3707
#53 0x00007f4a1847aa77 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f4a1ad05e40 <KIO::Connection::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3573
#54 0x00007f4a1aa026ac in readyRead (this=<optimized out>) at /var/tmp/portage/kde-frameworks/kio-9999/work/kio-9999_build/src/core/moc_connection_p.cpp:140
#55 KIO::ConnectionPrivate::dequeue (this=0x260cb50) at /var/tmp/portage/kde-frameworks/kio-9999/work/kio-9999/src/core/connection.cpp:45
#56 0x00007f4a1847b256 in QObject::event (this=0x2c3fa80, e=<optimized out>) at kernel/qobject.cpp:1249
#57 0x00007f4a18f3b53c in QApplicationPrivate::notify_helper (this=this@entry=0x20ebd00, receiver=receiver@entry=0x2c3fa80, e=e@entry=0x2c846f0) at kernel/qapplication.cpp:3729
#58 0x00007f4a18f40540 in QApplication::notify (this=0x7fff8592f1c0, receiver=0x2c3fa80, e=0x2c846f0) at kernel/qapplication.cpp:3512
#59 0x00007f4a1844ab05 in QCoreApplication::notifyInternal (this=0x7fff8592f1c0, receiver=0x2c3fa80, event=event@entry=0x2c846f0) at kernel/qcoreapplication.cpp:940
#60 0x00007f4a1844c967 in sendEvent (event=0x2c846f0, receiver=<optimized out>) at kernel/qcoreapplication.h:236
#61 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x20dd160) at kernel/qcoreapplication.cpp:1544
#62 0x00007f4a1844cf98 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1402
#63 0x00007f4a184a2793 in postEventSourceDispatch (s=0x211c860) at kernel/qeventdispatcher_glib.cpp:279
#64 0x00007f4a12020884 in g_main_dispatch (context=0x7f4a04001e00) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3064
#65 g_main_context_dispatch (context=context@entry=0x7f4a04001e00) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3663
#66 0x00007f4a12020ac8 in g_main_context_iterate (context=context@entry=0x7f4a04001e00, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3734
#67 0x00007f4a12020b6c in g_main_context_iteration (context=0x7f4a04001e00, may_block=1) at /var/tmp/portage/dev-libs/glib-2.40.0-r1/work/glib-2.40.0/glib/gmain.c:3795
#68 0x00007f4a184a1c0c in QEventDispatcherGlib::processEvents (this=0x211c8e0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#69 0x00007f4a18448a4b in QEventLoop::exec (this=this@entry=0x7fff8592f150, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#70 0x00007f4a18450096 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1193
#71 0x00007f4a189aa45c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1515
#72 0x00007f4a18f37d25 in QApplication::exec () at kernel/qapplication.cpp:2964
#73 0x0000000000443693 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-base/gwenview-9999/work/gwenview-9999/app/main.cpp:147