Bug 177953 - Digikam crash when saving current search
Summary: Digikam crash when saving current search
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Engine (show other bugs)
Version: 0.10.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-17 02:54 UTC by Geoff King
Modified: 2012-06-27 11:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 0.10.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff King 2008-12-17 02:54:30 UTC
Version:           Version 0.10.0-beta7 (rev.: 897849) (using KDE 4.1.3)
Compiler:          gcc 
OS:                Linux
Installed from:    Ubuntu Packages

How to reproduce..
Start digikam.
Click on Searches tab on left side.
Type "dog" into "Save Current Search"
Hit Enter and it crashes for me.  

This maybe to  due to the fact that no images were selected and it was not actually a search yet,  I accidentally was saving a blank search. It does crash consistently for me using this procedure.

Geoff
Comment 1 Geoff King 2008-12-17 04:46:01 UTC
Crash Log:

Application: digiKam (digikam), signal SIGSEGV
[Thread debugging using libthread_db enabled]
[New Thread 0xb4a95920 (LWP 7809)]
[New Thread 0xa5fc4b90 (LWP 8054)]
[New Thread 0xab0ffb90 (LWP 7955)]
[New Thread 0xac112b90 (LWP 7954)]
[New Thread 0xadf24b90 (LWP 7823)]
[New Thread 0xad286b90 (LWP 7822)]
[New Thread 0xae726b90 (LWP 7818)]
[New Thread 0xaef27b90 (LWP 7816)]
[New Thread 0xb275eb90 (LWP 7814)]
[New Thread 0xb1f5db90 (LWP 7813)]
[New Thread 0xb33d0b90 (LWP 7810)]
[KCrash handler]
#6  0x0809787b in QString (this=0xbf90c084, other=@0x2c)
    at /usr/include/qt4/QtCore/qstring.h:670
#7  0x081f1598 in Digikam::SAlbum::query (this=0x0)
    at /home/gsking/programs/src/svn/digikam4/graphics/digikam/digikam/album.cpp:512
#8  0x081bf768 in Digikam::SearchTabHeader::saveSearch (this=0xa509130)
    at /home/gsking/programs/src/svn/digikam4/graphics/digikam/utilities/searchwindow/searchtabheader.cpp:464
#9  0x081bf91f in Digikam::SearchTabHeader::qt_metacall (this=0xa509130, 
    _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbf90c148)
    at /home/gsking/programs/src/svn/digikam4/graphics/build/digikam/digikam/searchtabheader.moc:92
#10 0xb7f00a60 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#11 0xb7f017e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#12 0xb63677a7 in QLineEdit::returnPressed () from /usr/lib/libQtGui.so.4
#13 0xb6370406 in QLineEdit::keyPressEvent () from /usr/lib/libQtGui.so.4
#14 0xb7ab777a in KLineEdit::keyPressEvent () from /usr/lib/libkdeui.so.5
#15 0xb602281e in QWidget::event () from /usr/lib/libQtGui.so.4
#16 0xb636e157 in QLineEdit::event () from /usr/lib/libQtGui.so.4
#17 0xb7ab981a in KLineEdit::event () from /usr/lib/libkdeui.so.5
#18 0xb5fca8ec in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#19 0xb5fd3806 in QApplication::notify () from /usr/lib/libQtGui.so.4
#20 0xb79edb2d in KApplication::notify () from /usr/lib/libkdeui.so.5
#21 0xb7eebe61 in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#22 0xb602b3de in ?? () from /usr/lib/libQtGui.so.4
#23 0xb6061bb0 in ?? () from /usr/lib/libQtGui.so.4
#24 0xb6063d26 in ?? () from /usr/lib/libQtGui.so.4
#25 0xb603aaf5 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#26 0xb60657aa in ?? () from /usr/lib/libQtGui.so.4
#27 0xb50d16f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0xb50d4da3 in ?? () from /usr/lib/libglib-2.0.so.0
#29 0xb50d4f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0xb7f16478 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#31 0xb6064ea5 in ?? () from /usr/lib/libQtGui.so.4
#32 0xb7eea52a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#33 0xb7eea6ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#34 0xb7eecda5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#35 0xb5fca767 in QApplication::exec () from /usr/lib/libQtGui.so.4
#36 0x082a8121 in main (argc=1, argv=0xbf90d574)
    at /home/gsking/programs/src/svn/digikam4/graphics/digikam/digikam/main.cpp:184
#0  0xb800e424 in __kernel_vsyscall ()
Comment 2 caulier.gilles 2008-12-17 08:15:22 UTC
SVN commit 897919 by cgilles:

digiKam from trunk : fix crash if user try to save a null search (not processed before)
BUG: 177953


 M  +9 -6      searchtabheader.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=897919