Bug 278928 - crash after using the menu Jump to Context after starting
Summary: crash after using the menu Jump to Context after starting
Status: RESOLVED FIXED
Alias: None
Product: kphotoalbum
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KPhotoAlbum Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-31 11:18 UTC by Jaime Torres
Modified: 2012-01-29 08:37 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaime Torres 2011-07-31 11:18:46 UTC
Application: kphotoalbum (GIT)
KDE Platform Version: 4.7.40 (4.7.40 (KDE 4.8 >= 200110623) (Compiled from sources)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-2-desktop x86_64
Distribution: "openSUSE 12.1 Milestone 2 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

(with the patch from https://git.reviewboard.kde.org/r/102155/ applied)
Just start kphotoalbum and use the menu entry view/Jump to Context.
The directory structure that I have is
fotos (with the databases from kphotoalbum and digikam)
fotos/Fotos with no photos and several directories with photos.

The crash can be reproduced every time.

-- Backtrace:
Application: KPhotoAlbum (kphotoalbum), signal: Aborted
[KCrash Handler]
#6  0x00007fc61720fce5 in raise () from /lib64/libc.so.6
#7  0x00007fc6172111fb in abort () from /lib64/libc.so.6
#8  0x00007fc61952eba6 in qt_message_output (msgType=QtFatalMsg, buf=0x18b7e98 "ASSERT: \"index >= 0 && index < imageCount()\" in file /g/kdegit/extragear/graphics/kphotoalbum/ThumbnailView/ThumbnailModel.cpp, line 236") at /g/kdegit/qt/src/corelib/global/qglobal.cpp:2291
#9  0x00007fc61952ed19 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7fc6196c9368 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff02807778) at /g/kdegit/qt/src/corelib/global/qglobal.cpp:2337
#10 0x00007fc61952f4a9 in qFatal (msg=0x7fc6196c9368 "ASSERT: \"%s\" in file %s, line %d") at /g/kdegit/qt/src/corelib/global/qglobal.cpp:2520
#11 0x00007fc61952e76c in qt_assert (assertion=0x5816b8 "index >= 0 && index < imageCount()", file=0x581668 "/g/kdegit/extragear/graphics/kphotoalbum/ThumbnailView/ThumbnailModel.cpp", line=236) at /g/kdegit/qt/src/corelib/global/qglobal.cpp:2036
#12 0x000000000048ae1f in ThumbnailView::ThumbnailModel::imageAt (this=0xbcb340, index=-1) at /g/kdegit/extragear/graphics/kphotoalbum/ThumbnailView/ThumbnailModel.cpp:236
#13 0x000000000048f36e in ThumbnailView::ThumbnailFacade::currentItem (this=0x4d795b0) at /g/kdegit/extragear/graphics/kphotoalbum/ThumbnailView/ThumbnailFacade.cpp:94
#14 0x00000000004cae04 in MainWindow::Window::slotJumpToContext (this=0x9fc1f0) at /g/kdegit/extragear/graphics/kphotoalbum/MainWindow/Window.cpp:1594
#15 0x00000000004d41fe in MainWindow::Window::qt_metacall (this=0x9fc1f0, _c=QMetaObject::InvokeMetaMethod, _id=61, _a=0x7fff02807a60) at /g/b45/extragear/graphics/kphotoalbum/Window.moc:258
#16 0x00007fc619652da4 in QMetaObject::metacall (object=0x9fc1f0, cl=QMetaObject::InvokeMetaMethod, idx=107, argv=0x7fff02807a60) at /g/kdegit/qt/src/corelib/kernel/qmetaobject.cpp:237
#17 0x00007fc619667aca in QMetaObject::activate (sender=0x3cedf30, m=0x8361e0, local_signal_index=1, argv=0x7fff02807a60) at /g/kdegit/qt/src/corelib/kernel/qobject.cpp:3278
#18 0x00007fc6184ed3aa in QAction::triggered (this=0x3cedf30, _t1=false) at .moc/debug-shared/moc_qaction.cpp:263
#19 0x00007fc6184ec6b6 in QAction::activate (this=0x3cedf30, event=QAction::Trigger) at /g/kdegit/qt/src/gui/kernel/qaction.cpp:1257
#20 0x00007fc618a6239a in QMenuPrivate::activateCausedStack (this=0x5ec7400, causedStack=..., action=0x3cedf30, action_e=QAction::Trigger, self=true) at /g/kdegit/qt/src/gui/widgets/qmenu.cpp:1005
#21 0x00007fc618a6285b in QMenuPrivate::activateAction (this=0x5ec7400, action=0x3cedf30, action_e=QAction::Trigger, self=true) at /g/kdegit/qt/src/gui/widgets/qmenu.cpp:1097
#22 0x00007fc618a669c6 in QMenu::mouseReleaseEvent (this=0x58313a0, e=0x7fff02808b00) at /g/kdegit/qt/src/gui/widgets/qmenu.cpp:2296
#23 0x00007fc61a6ddda1 in KMenu::mouseReleaseEvent (this=0x58313a0, e=0x7fff02808b00) at /g/kdegit/kdelibs/kdeui/widgets/kmenu.cpp:458
#24 0x00007fc6185625c6 in QWidget::event (this=0x58313a0, event=0x7fff02808b00) at /g/kdegit/qt/src/gui/kernel/qwidget.cpp:8295
#25 0x00007fc618a67080 in QMenu::event (this=0x58313a0, e=0x7fff02808b00) at /g/kdegit/qt/src/gui/widgets/qmenu.cpp:2405
#26 0x00007fc6184fccae in QApplicationPrivate::notify_helper (this=0x88b1f0, receiver=0x58313a0, e=0x7fff02808b00) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:4481
#27 0x00007fc6184fac57 in QApplication::notify (this=0x7fff02809900, receiver=0x58313a0, e=0x7fff02808b00) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:4042
#28 0x00007fc61a62347e in KApplication::notify (this=0x7fff02809900, receiver=0x58313a0, event=0x7fff02808b00) at /g/kdegit/kdelibs/kdeui/kernel/kapplication.cpp:311
#29 0x00007fc61964ad2a in QCoreApplication::notifyInternal (this=0x7fff02809900, receiver=0x58313a0, event=0x7fff02808b00) at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:775
#30 0x00007fc6184ff43d in QCoreApplication::sendSpontaneousEvent (receiver=0x58313a0, event=0x7fff02808b00) at ../../include/QtCore/../../../../kdegit/qt/src/corelib/kernel/qcoreapplication.h:218
#31 0x00007fc6184f9202 in QApplicationPrivate::sendMouseEvent (receiver=0x58313a0, event=0x7fff02808b00, alienWidget=0x0, nativeWidget=0x58313a0, buttonDown=0x7fc619279048, lastMouseReceiver=..., spontaneous=true) at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:3139
#32 0x00007fc61859cd13 in QETWidget::translateMouseEvent (this=0x58313a0, event=0x7fff028094e0) at /g/kdegit/qt/src/gui/kernel/qapplication_x11.cpp:4395
#33 0x00007fc618599aed in QApplication::x11ProcessEvent (this=0x7fff02809900, event=0x7fff028094e0) at /g/kdegit/qt/src/gui/kernel/qapplication_x11.cpp:3465
#34 0x00007fc6185d31c8 in x11EventSourceDispatch (s=0x88fdc0, callback=0, user_data=0x0) at /g/kdegit/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:146
#35 0x00007fc60fe6b9dd in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#36 0x00007fc60fe6c1d8 in ?? () from /usr/lib64/libglib-2.0.so.0
#37 0x00007fc60fe6c3a9 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#38 0x00007fc61968360d in QEventDispatcherGlib::processEvents (this=0x846960, flags=...) at /g/kdegit/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:422
#39 0x00007fc6185d3568 in QGuiEventDispatcherGlib::processEvents (this=0x846960, flags=...) at /g/kdegit/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204
#40 0x00007fc6196488fc in QEventLoop::processEvents (this=0x7fff02809870, flags=...) at /g/kdegit/qt/src/corelib/kernel/qeventloop.cpp:149
#41 0x00007fc619648a4f in QEventLoop::exec (this=0x7fff02809870, flags=...) at /g/kdegit/qt/src/corelib/kernel/qeventloop.cpp:201
#42 0x00007fc61964b416 in QCoreApplication::exec () at /g/kdegit/qt/src/corelib/kernel/qcoreapplication.cpp:1064
#43 0x00007fc6184f9e6c in QApplication::exec () at /g/kdegit/qt/src/gui/kernel/qapplication.cpp:3755
#44 0x000000000044c01a in main (argc=1, argv=0x7fff0280a038) at /g/kdegit/extragear/graphics/kphotoalbum/main.cpp:89

Reported using DrKonqi
Comment 1 Miika Turkia 2011-08-12 04:28:04 UTC
The "crash" occurs on sanity check Q_ASSERT (ThumbnailView/ThumbnailModel.cpp):

DB::Id ThumbnailView::ThumbnailModel::imageAt( int index ) const
{
    Q_ASSERT( index >= 0 && index < imageCount() );
    return _displayList.at(index);
}