Bug 183033

Summary: Assertion failed in Gwenview::Document::setKind()
Product: [Applications] gwenview Reporter: Daniel Richard G. <skunk>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Daniel Richard G. 2009-02-03 18:17:59 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

Gwenview, invoked as a part in Konqueror, caused the browser to crash. This occurred as Konqueror was loading a previously saved session with several tabs, so I couldn't see exactly what Gwenview was working with at the time.

kdegraphics source tree is at r920544. I've saved a core file, in case anyone wants more telemetry.

BT:

Thread 1 (Thread 0x7f5efe0b86f0 (LWP 1843)):
[KCrash Handler]
#5  0x00007f5ef8ccbfd5 in raise () from /lib/libc.so.6
#6  0x00007f5ef8ccdb43 in abort () from /lib/libc.so.6
#7  0x00007f5efb0c4bac in qt_message_output (msgType=QtFatalMsg, 
    buf=0x7fff060e8cf0 "ASSERT failure in QList<T>::operator[]: \"index out of range\", file /home/kdesvn/qt-copy/src/corelib/tools/qlist.h, line 391")
    at /home/kdesvn/qt-copy/src/corelib/global/qglobal.cpp:2102
#8  0x00007f5efb0c4cbb in qFatal (msg=0x7f5efb20e130 "ASSERT failure in %s: \"%s\", file %s, line %d") at /home/kdesvn/qt-copy/src/corelib/global/qglobal.cpp:2303
#9  0x00007f5efb0c4cf8 in qt_assert_x (where=0x7f5efb251f9f "QList<T>::operator[]", what=0x7f5efb251c0e "index out of range", 
    file=0x7f5efb251ec0 "/home/kdesvn/qt-copy/src/corelib/tools/qlist.h", line=391) at /home/kdesvn/qt-copy/src/corelib/global/qglobal.cpp:1880
#10 0x00007f5efb1d3d28 in QList<QObjectPrivate::Connection>::operator[] (this=0x2942330, i=1) at /home/kdesvn/qt-copy/src/corelib/tools/qlist.h:391
#11 0x00007f5efb1cda59 in QMetaObject::activate (sender=0x4e1b6b0, from_signal_index=6, to_signal_index=6, argv=0x7fff060eaf60)
    at /home/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:2994
#12 0x00007f5efb1cdf29 in QMetaObject::activate (sender=0x4e1b6b0, m=0x7f5ee5d8f700, local_signal_index=2, argv=0x7fff060eaf60)
    at /home/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3101
#13 0x00007f5ee5b00fa5 in Gwenview::Document::kindDetermined (this=0x4e1b6b0, _t1=@0x24b4648) at /tmp/kdesvn-build/kdegraphics/gwenview/lib/document.moc:126
#14 0x00007f5ee5b01338 in Gwenview::Document::setKind (this=0x4e1b6b0, kind=Gwenview::MimeTypeUtils::KIND_RASTER_IMAGE)
    at /home/kdesvn/kdegraphics/gwenview/lib/document/document.cpp:248
#15 0x00007f5ee5afff2c in Gwenview::AbstractDocumentImpl::setDocumentKind (this=0x1f21c60, kind=Gwenview::MimeTypeUtils::KIND_RASTER_IMAGE)
    at /home/kdesvn/kdegraphics/gwenview/lib/document/abstractdocumentimpl.cpp:75
#16 0x00007f5ee5b0a187 in Gwenview::LoadingDocumentImplPrivate::startLoading (this=0x46d2fb0) at /home/kdesvn/kdegraphics/gwenview/lib/document/loadingdocumentimpl.cpp:106
#17 0x00007f5ee5b077ef in Gwenview::LoadingDocumentImpl::slotTransferFinished (this=0x1f21c60, job=0x57c8c70)
    at /home/kdesvn/kdegraphics/gwenview/lib/document/loadingdocumentimpl.cpp:301
#18 0x00007f5ee5b078bb in Gwenview::LoadingDocumentImpl::qt_metacall (this=0x1f21c60, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff060eb270)
    at /tmp/kdesvn-build/kdegraphics/gwenview/lib/loadingdocumentimpl.moc:74
#19 0x00007f5efb1cdc3f in QMetaObject::activate (sender=0x57c8c70, from_signal_index=7, to_signal_index=7, argv=0x7fff060eb270)
    at /home/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3028
#20 0x00007f5efb1cdf29 in QMetaObject::activate (sender=0x57c8c70, m=0x7f5efbd24d00, local_signal_index=3, argv=0x7fff060eb270)
    at /home/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3101
#21 0x00007f5efb918ccb in KJob::result (this=0x57c8c70, _t1=0x57c8c70) at /tmp/kdesvn-build/kdelibs/kdecore/kjob.moc:186
#22 0x00007f5efb918ea7 in KJob::emitResult (this=0x57c8c70) at /home/kdesvn/kdelibs/kdecore/jobs/kjob.cpp:294
#23 0x00007f5efcdfebd6 in KIO::SimpleJob::slotFinished (this=0x57c8c70) at /home/kdesvn/kdelibs/kio/kio/job.cpp:489
#24 0x00007f5efce0843b in KIO::TransferJob::slotFinished (this=0x57c8c70) at /home/kdesvn/kdelibs/kio/kio/job.cpp:966
#25 0x00007f5efce06ef6 in KIO::TransferJob::qt_metacall (this=0x57c8c70, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fff060eb650) at /tmp/kdesvn-build/kdelibs/kio/jobclasses.moc:336
#26 0x00007f5efb1cdc3f in QMetaObject::activate (sender=0x326c740, from_signal_index=8, to_signal_index=8, argv=0x0) at /home/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3028
#27 0x00007f5efb1cdf29 in QMetaObject::activate (sender=0x326c740, m=0x7f5efd1e8960, local_signal_index=4, argv=0x0) at /home/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3101
#28 0x00007f5efcea9698 in KIO::SlaveInterface::finished (this=0x326c740) at /tmp/kdesvn-build/kdelibs/kio/slaveinterface.moc:163
#29 0x00007f5efceaacab in KIO::SlaveInterface::dispatch (this=0x326c740, _cmd=104, rawdata=@0x7fff060eb9b0) at /home/kdesvn/kdelibs/kio/kio/slaveinterface.cpp:175
#30 0x00007f5efcea8c66 in KIO::SlaveInterface::dispatch (this=0x326c740) at /home/kdesvn/kdelibs/kio/kio/slaveinterface.cpp:91
#31 0x00007f5efce9e44f in KIO::Slave::gotInput (this=0x326c740) at /home/kdesvn/kdelibs/kio/kio/slave.cpp:322
#32 0x00007f5efce9e9a1 in KIO::Slave::qt_metacall (this=0x326c740, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff060ebb10) at /tmp/kdesvn-build/kdelibs/kio/slave.moc:75
#33 0x00007f5efb1cdc3f in QMetaObject::activate (sender=0x32738a0, from_signal_index=4, to_signal_index=4, argv=0x0) at /home/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3028
#34 0x00007f5efb1cdf29 in QMetaObject::activate (sender=0x32738a0, m=0x7f5efd1e8180, local_signal_index=0, argv=0x0) at /home/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:3101
#35 0x00007f5efcdd5db8 in KIO::Connection::readyRead (this=0x32738a0) at /tmp/kdesvn-build/kdelibs/kio/connection.moc:84
#36 0x00007f5efcdd76be in KIO::ConnectionPrivate::dequeue (this=0x3272900) at /home/kdesvn/kdelibs/kio/kio/connection.cpp:82
#37 0x00007f5efcdd7740 in KIO::Connection::qt_metacall (this=0x32738a0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x2ef9810) at /tmp/kdesvn-build/kdelibs/kio/connection.moc:72
#38 0x00007f5efb1cadcf in QMetaCallEvent::placeMetaCall (this=0x1b135e0, object=0x32738a0) at /home/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:529
#39 0x00007f5efb1d21a8 in QObject::event (this=0x32738a0, e=0x1b135e0) at /home/kdesvn/qt-copy/src/corelib/kernel/qobject.cpp:1152
#40 0x00007f5efa5d0bef in QApplicationPrivate::notify_helper (this=0x71c780, receiver=0x32738a0, e=0x1b135e0) at /home/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:3803
#41 0x00007f5efa5d0f11 in QApplication::notify (this=0x7fff060ec980, receiver=0x32738a0, e=0x1b135e0) at /home/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:3393
#42 0x00007f5efc2ab17a in KApplication::notify (this=0x7fff060ec980, receiver=0x32738a0, event=0x1b135e0) at /home/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:307
#43 0x00007f5efb1ba5d4 in QCoreApplication::notifyInternal (this=0x7fff060ec980, receiver=0x32738a0, event=0x1b135e0)
    at /home/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:583
#44 0x00007f5efb1be915 in QCoreApplication::sendEvent (receiver=0x32738a0, event=0x1b135e0) at /home/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.h:209
#45 0x00007f5efb1bd7ad in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x6fc220)
    at /home/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:1195
#46 0x00007f5efb1bd976 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /home/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:1091
#47 0x00007f5efb1ea947 in QCoreApplication::sendPostedEvents () at /home/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.h:214
#48 0x00007f5efb1e9175 in postEventSourceDispatch (s=0x71fc10) at /home/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:205
#49 0x00007f5ef742fd3b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#50 0x00007f5ef743350d in ?? () from /usr/lib/libglib-2.0.so.0
#51 0x00007f5ef74336cb in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#52 0x00007f5efb1e9c54 in QEventDispatcherGlib::processEvents (this=0x71bf30, flags=@0x7fff060ec770) at /home/kdesvn/qt-copy/src/corelib/kernel/qeventdispatcher_glib.cpp:319
#53 0x00007f5efa67057f in QGuiEventDispatcherGlib::processEvents (this=0x71bf30, flags=@0x7fff060ec7d0) at /home/kdesvn/qt-copy/src/gui/kernel/qguieventdispatcher_glib.cpp:198
#54 0x00007f5efb1b9438 in QEventLoop::processEvents (this=0x7fff060ec880, flags=@0x7fff060ec830) at /home/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:143
#55 0x00007f5efb1b9633 in QEventLoop::exec (this=0x7fff060ec880, flags=@0x7fff060ec890) at /home/kdesvn/qt-copy/src/corelib/kernel/qeventloop.cpp:190
#56 0x00007f5efb1bda82 in QCoreApplication::exec () at /home/kdesvn/qt-copy/src/corelib/kernel/qcoreapplication.cpp:845
#57 0x00007f5efa5cff90 in QApplication::exec () at /home/kdesvn/qt-copy/src/gui/kernel/qapplication.cpp:3331
#58 0x00007f5efdc86817 in kdemain (argc=2, argv=0x7fff060ed5f8) at /home/kdesvn/kdebase/apps/konqueror/src/konqmain.cpp:257
#59 0x00000000004008a1 in main (argc=2, argv=0x7fff060ed5f8) at /tmp/kdesvn-build/kdebase/apps/konqueror/src/konqueror_dummy.cpp:3
Comment 1 Aurelien Gateau 2009-02-17 18:01:00 UTC
This looks like a Qt bug. Can you try with Qt 4.5? (updating to current kdesvn trunk will do).
Comment 2 Dario Andres 2009-09-28 01:50:27 UTC

*** This bug has been marked as a duplicate of bug 183352 ***