Bug 167621 - digiKam crashes when trying to remove a tag with the context menu
Summary: digiKam crashes when trying to remove a tag with the context menu
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Menus (show other bugs)
Version: 0.10.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-28 22:21 UTC by Andi Clemens
Modified: 2017-07-29 06:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andi Clemens 2008-07-28 22:21:11 UTC
Version:            (using KDE 3.5.9)
Installed from:    Compiled From Sources
Compiler:          gcc-4.3.1 
OS:                Linux

I have an album with 9 images in it. All have one tag. If I select 8 of the images and right click on an image to remove the tag, digiKam immediately crashes when hovering over the menu entry "remove tag". The sub-menu will not be expanded, it crashes right after the mouse touches the area.

Application: digiKam (digikam), signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0xb4f28700 (LWP 8399)]
[New Thread 0xacdd5b90 (LWP 8446)]
[New Thread 0xad5e6b90 (LWP 8445)]
[New Thread 0xaddf6b90 (LWP 8443)]
[New Thread 0xae5f7b90 (LWP 8442)]
[New Thread 0xaf203b90 (LWP 8441)]
[New Thread 0xafa04b90 (LWP 8440)]
[New Thread 0xb025db90 (LWP 8434)]
[New Thread 0xb2d7ab90 (LWP 8433)]
[New Thread 0xb2545b90 (LWP 8432)]
[New Thread 0xb379ab90 (LWP 8408)]
[KCrash handler]
#6  0xb7f312f5 in Digikam::AlbumDB::getItemCommonTagIDs (this=0x89036f8, 
    imageIDList=@0x92f6dd8)
    at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/libs/database/albumdb.cpp:940
#7  0x082f9a10 in Digikam::TagsPopupMenu::slotAboutToShow (this=0x92f6ba8)
    at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/digikam/tagspopupmenu.cpp:423
#8  0x082fb3be in Digikam::TagsPopupMenu::qt_metacall (this=0x92f6ba8, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbf84e5c8)
    at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/digikam/tagspopupmenu.moc:75
#9  0xb684aee5 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#10 0xb684bbf9 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#11 0xb6078b90 in QMenu::aboutToShow () from /usr/lib/libQtGui.so.4
#12 0xb607cef9 in QMenu::popup () from /usr/lib/libQtGui.so.4
#13 0xb607ded6 in QMenu::internalDelayedPopup () from /usr/lib/libQtGui.so.4
#14 0xb60827dd in QMenu::timerEvent () from /usr/lib/libQtGui.so.4
#15 0xb6846118 in QObject::event () from /usr/lib/libQtCore.so.4
#16 0xb5d311df in QWidget::event () from /usr/lib/libQtGui.so.4
#17 0xb6082ab1 in QMenu::event () from /usr/lib/libQtGui.so.4
#18 0xb5cdf8d3 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#19 0xb5ce70a2 in QApplication::notify () from /usr/lib/libQtGui.so.4
#20 0xb6ed4784 in KApplication::notify () from /opt/kdemod/lib/libkdeui.so.5
#21 0xb6837a3a in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#22 0xb686305e in ?? () from /usr/lib/libQtCore.so.4
#23 0xb685f9dd in ?? () from /usr/lib/libQtCore.so.4
#24 0xb54ee0e8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#25 0xb54f1783 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#26 0xb54f1941 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#27 0xb685f94d in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#28 0xb5d6e98e in ?? () from /usr/lib/libQtGui.so.4
#29 0xb683632f in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#30 0xb68364f0 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#31 0xb60828a2 in QMenu::exec () from /usr/lib/libQtGui.so.4
#32 0x082296c6 in Digikam::AlbumIconView::slotRightButtonClicked (
    this=0x8950080, item=0x93084f0, pos=@0xbf84f524)
    at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/digikam/albumiconview.cpp:740
#33 0x0822a227 in Digikam::AlbumIconView::qt_metacall (this=0x8950080, 
    _c=QMetaObject::InvokeMetaMethod, _id=33, _a=0xbf84f44c)
    at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/digikam/albumiconview.moc:190
#34 0xb684aee5 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#35 0xb684bbf9 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#36 0x082b152f in Digikam::IconView::signalRightButtonClicked (this=0x8950080, 
    _t1=0x93084f0, _t2=@0xbf84f524)
    at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/digikam/iconview.moc:113
#37 0x082b3dfd in Digikam::IconView::contentsMousePressEvent (this=0x8950080, 
    e=0xbf84f50c)
    at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/digikam/iconview.cpp:953
#38 0xb7597ece in Q3ScrollView::viewportMousePressEvent ()
   from /usr/lib/libQt3Support.so.4
#39 0xb7599948 in Q3ScrollView::eventFilter () from /usr/lib/libQt3Support.so.4
#40 0xb6836d4b in QCoreApplicationPrivate::sendThroughObjectEventFilters ()
   from /usr/lib/libQtCore.so.4
#41 0xb5cdf8b6 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#42 0xb5ce791f in QApplication::notify () from /usr/lib/libQtGui.so.4
#43 0xb6ed4784 in KApplication::notify () from /opt/kdemod/lib/libkdeui.so.5
#44 0xb6837a3a in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#45 0xb5ce6c16 in QApplicationPrivate::sendMouseEvent ()
   from /usr/lib/libQtGui.so.4
#46 0xb5d49e43 in ?? () from /usr/lib/libQtGui.so.4
#47 0xb5d48bfb in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#48 0xb5d6f208 in ?? () from /usr/lib/libQtGui.so.4
#49 0xb54ee0e8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#50 0xb54f1783 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#51 0xb54f1941 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#52 0xb685f94d in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#53 0xb5d6e98e in ?? () from /usr/lib/libQtGui.so.4
#54 0xb683632f in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#55 0xb68364f0 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#56 0xb6838869 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#57 0xb5cdf784 in QApplication::exec () from /usr/lib/libQtGui.so.4
#58 0x082cf568 in main (argc=1, argv=0xbf850774)
    at /home/andi/Programmieren/workspace/digikam_KDE4/digikam/digikam/main.cpp:303
#0  0xb8036424 in __kernel_vsyscall ()
Comment 1 Marcel Wiesweg 2008-07-30 16:06:57 UTC
SVN commit 839646 by mwiesweg:

Remove extra ++it

BUG: 167561


 M  +0 -1      albumdb.cpp  


--- trunk/extragear/graphics/digikam/libs/database/albumdb.cpp #839645:839646
@@ -938,7 +938,6 @@
     {
         sql += QString(" OR imageid=? ");
         boundValues << (*it);
-        ++it;
     }
 
     sql += QString(";");