Bug 157149 - digikam crash at startup
Summary: digikam crash at startup
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Searches-TimeLine (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-04 11:16 UTC by mangus
Modified: 2012-08-26 14:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mangus 2008-02-04 11:16:08 UTC
Version:           digiKam: 0.10.0-svn (using Devel)
Installed from:    Compiled sources
Compiler:          gcc version 4.2.2 
OS:                Linux

Qt: 4.3.3
KDE: 4.00.60 (KDE 4.0.60 >= 20080129)
digiKam: 0.10.0-svn

digikam crash at startup with no image inside default folder or with some images in it.Here's a backtrace:

Application: digiKam (digikam), signal SIGSEGV
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb50f96d0 (LWP 12758)]
[New Thread 0xb0bfeb90 (LWP 12777)]
[New Thread 0xb312eb90 (LWP 12775)]
[New Thread 0xb2900b90 (LWP 12773)]
[New Thread 0xb3b41b90 (LWP 12761)]
[KCrash handler]
#6  0xb7e1b9a6 in QDateTime::operator= () from /usr/lib/libQtCore.so.4
#7  0x082859c4 in Digikam::TimeLineWidget::slotDatesMap (this=0x866dda0, 
    datesStatMap=@0xbf89b18c)
    at /usr/src/kde4/extragear/graphics/digikam/digikam/timelinewidget.cpp:490
#8  0x0828804d in Digikam::TimeLineWidget::qt_metacall (this=0x866dda0, 
    _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbf89b0f0)
    at /usr/src/kde4/build/extragear/graphics/digikam/digikam/timelinewidget.moc:86
#9  0xb7eda616 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#10 0xb7edabe2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#11 0x081ccef6 in Digikam::AlbumManager::signalDatesMapDirty (this=0x83db360, 
    _t1=@0xbf89b18c)
    at /usr/src/kde4/build/extragear/graphics/digikam/digikam/albummanager.moc:239
#12 0x081d0628 in Digikam::AlbumManager::slotDatesJobData (this=0x83db360, 
    data=@0xbf89bde4)
    at /usr/src/kde4/extragear/graphics/digikam/digikam/albummanager.cpp:1761
#13 0x081d40b5 in Digikam::AlbumManager::qt_metacall (this=0x83db360, 
    _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0xbf89b728)
    at /usr/src/kde4/build/extragear/graphics/digikam/digikam/albummanager.moc:127
#14 0xb7eda616 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#15 0xb7edabe2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#16 0xb7736df9 in KIO::TransferJob::data () from /opt/kde4/lib/libkio.so.5
#17 0xb7737ebe in KIO::TransferJob::slotData () from /opt/kde4/lib/libkio.so.5
#18 0xb7742fcd in KIO::TransferJob::qt_metacall ()
   from /opt/kde4/lib/libkio.so.5
#19 0xb77430b2 in KIO::SpecialJob::qt_metacall ()
   from /opt/kde4/lib/libkio.so.5
#20 0xb7eda616 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#21 0xb7edabe2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#22 0xb77e4853 in KIO::SlaveInterface::data () from /opt/kde4/lib/libkio.so.5
#23 0xb77e72ae in KIO::SlaveInterface::dispatch ()
   from /opt/kde4/lib/libkio.so.5
#24 0xb77e5029 in KIO::SlaveInterface::dispatch ()
   from /opt/kde4/lib/libkio.so.5
#25 0xb77d8222 in KIO::Slave::gotInput () from /opt/kde4/lib/libkio.so.5
#26 0xb77d858d in KIO::Slave::qt_metacall () from /opt/kde4/lib/libkio.so.5
#27 0xb7eda616 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#28 0xb7edabe2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#29 0xb77109f7 in KIO::Connection::readyRead () from /opt/kde4/lib/libkio.so.5
#30 0xb7711bbb in KIO::ConnectionPrivate::dequeue ()
   from /opt/kde4/lib/libkio.so.5
#31 0xb7711e6e in KIO::Connection::qt_metacall ()
   from /opt/kde4/lib/libkio.so.5
#32 0xb7ed4b3b in QMetaCallEvent::placeMetaCall () from /usr/lib/libQtCore.so.4
#33 0xb7ed7491 in QObject::event () from /usr/lib/libQtCore.so.4
#34 0xb5f9f9ed in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#35 0xb5fa21a9 in QApplication::notify () from /usr/lib/libQtGui.so.4
#36 0xb7a57fbd in KApplication::notify () from /opt/kde4/lib/libkdeui.so.5
#37 0xb7ec780b in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#38 0xb7ec8df9 in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#39 0xb7ec913d in QCoreApplication::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#40 0xb7eec36b in ?? () from /usr/lib/libQtCore.so.4
#41 0xb56f0346 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#42 0xb56f36d2 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#43 0xb56f3c8e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#44 0xb7eec762 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#45 0xb6022ce5 in ?? () from /usr/lib/libQtGui.so.4
#46 0xb7ec6bf2 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#47 0xb7ec6cfa in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#48 0xb7ec91fd in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#49 0xb5f9ef67 in QApplication::exec () from /usr/lib/libQtGui.so.4
#50 0x08235200 in main (argc=1, argv=0xbf89cf94)
    at /usr/src/kde4/extragear/graphics/digikam/digikam/main.cpp:330
#0  0xb7f9b410 in __kernel_vsyscall ()
Comment 1 caulier.gilles 2008-02-04 11:19:36 UTC
Crash appears in Timeline...

I will take a look

Gilles Caulier
Comment 2 caulier.gilles 2008-02-04 14:06:16 UTC
mangus,

Today Marcel has fixed a bug timeline (discovered in KDE4 port of relevant code).

Can you checkout svn code, and try again ?

Thanks in advance

Gilles Caulier



Comment 3 FiNeX 2008-02-04 18:13:12 UTC
Ok, I've tried digikam (compiled some days ago) and it crashed with the same backtrace of Mangus.

Now I've recompiled the revision 770899 and it still crash.





Application: digiKam (digikam), signal SIGSEGV
 [?1034hUsing host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb4f546d0 (LWP 23043)]
[New Thread 0xb07a4b90 (LWP 23051)]
[New Thread 0xb2d38b90 (LWP 23049)]
[New Thread 0xb2537b90 (LWP 23048)]
[New Thread 0xb3919b90 (LWP 23045)]
[KCrash handler]
#6  0xb7e099a6 in QDateTime::operator= () from /usr/lib/libQtCore.so.4
#7  0x08278e60 in Digikam::TimeLineWidget::slotDatesMap (this=0x8637410, 
    datesStatMap=@0xbfea9f54)
    at /home/test/KDE4/kdesvn/extragear/graphics/digikam/digikam/timelinewidget.cpp:490
#8  0x0827abe4 in Digikam::TimeLineWidget::qt_metacall (this=0x8637410, 
    _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfea9e60)
    at /home/test/KDE4/kdesvn/build/extragear/graphics/digikam/digikam/timelinewidget.moc:86
#9  0xb7ec8616 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#10 0xb7ec8be2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#11 0x081c7875 in Digikam::AlbumManager::signalDatesMapDirty (this=0x83d3130, 
    _t1=@0xbfea9f54)
    at /home/test/KDE4/kdesvn/build/extragear/graphics/digikam/digikam/albummanager.moc:239
#12 0x081c8864 in Digikam::AlbumManager::slotDatesJobData (this=0x83d3130, 
    data=@0xbfeaabf4)
    at /home/test/KDE4/kdesvn/extragear/graphics/digikam/digikam/albummanager.cpp:1760
#13 0x081d01a7 in Digikam::AlbumManager::qt_metacall (this=0x83d3130, 
    _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0xbfeaa488)
    at /home/test/KDE4/kdesvn/build/extragear/graphics/digikam/digikam/albummanager.moc:127
#14 0xb7ec8616 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#15 0xb7ec8be2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#16 0xb767d6a9 in KIO::TransferJob::data (this=0x8702fe8, _t1=0x8702fe8, 
    _t2=@0xbfeaabf4)
    at /home/test/KDE4/kdesvn/build/kdelibs/kio/jobclasses.moc:355
#17 0xb767e78e in KIO::TransferJob::slotData (this=0x8702fe8, 
    _data=@0xbfeaabf4)
    at /home/test/KDE4/kdesvn/kdelibs/kio/kio/job.cpp:921
#18 0xb768992d in KIO::TransferJob::qt_metacall (this=0x8702fe8, 
    _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfeaa9ec)
    at /home/test/KDE4/kdesvn/build/kdelibs/kio/jobclasses.moc:336
#19 0xb7689a12 in KIO::SpecialJob::qt_metacall (this=0x8702fe8, 
    _c=QMetaObject::InvokeMetaMethod, _id=48, _a=0xbfeaa9ec)
    at /home/test/KDE4/kdesvn/build/kdelibs/kio/jobclasses.moc:815
#20 0xb7ec8616 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#21 0xb7ec8be2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#22 0xb7753533 in KIO::SlaveInterface::data (this=0x877c4e8, _t1=@0xbfeaabf4)
    at /home/test/KDE4/kdesvn/build/kdelibs/kio/slaveinterface.moc:135
#23 0xb7757bf8 in KIO::SlaveInterface::dispatch (this=0x877c4e8, _cmd=100, 
    rawdata=@0xbfeaabf4)
    at /home/test/KDE4/kdesvn/kdelibs/kio/kio/slaveinterface.cpp:163
#24 0xb7753b3f in KIO::SlaveInterface::dispatch (this=0x877c4e8)
    at /home/test/KDE4/kdesvn/kdelibs/kio/kio/slaveinterface.cpp:90
#25 0xb774387f in KIO::Slave::gotInput (this=0x877c4e8)
    at /home/test/KDE4/kdesvn/kdelibs/kio/kio/slave.cpp:319
#26 0xb77445ed in KIO::Slave::qt_metacall (this=0x877c4e8, 
    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfeab128)
    at /home/test/KDE4/kdesvn/build/kdelibs/kio/slave.moc:74
#27 0xb7ec8616 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#28 0xb7ec8be2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#29 0xb764dfa7 in KIO::Connection::readyRead (this=0x8797df8)
    at /home/test/KDE4/kdesvn/build/kdelibs/kio/connection.moc:83
#30 0xb764fc60 in KIO::ConnectionPrivate::dequeue (this=0x871a5c0)
    at /home/test/KDE4/kdesvn/kdelibs/kio/kio/connection.cpp:82
#31 0xb764fd1e in KIO::Connection::qt_metacall (this=0x8797df8, 
    _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x846ed98)
    at /home/test/KDE4/kdesvn/build/kdelibs/kio/connection.moc:71
#32 0xb7ec2b3b in QMetaCallEvent::placeMetaCall () from /usr/lib/libQtCore.so.4
#33 0xb7ec5491 in QObject::event () from /usr/lib/libQtCore.so.4
#34 0xb5e0a9ed in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
#35 0xb5e0d1a9 in QApplication::notify () from /usr/lib/libQtGui.so.4
#36 0xb79ff8ed in KApplication::notify (this=0xbfeab92c, receiver=0x8797df8, 
    event=0x8870288)
    at /home/test/KDE4/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:311
#37 0xb7eb580b in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
#38 0xb7eb6df9 in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#39 0xb7eb713d in QCoreApplication::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
#40 0xb7eda36b in ?? () from /usr/lib/libQtCore.so.4
#41 0xb5552346 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#42 0xb55556d2 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#43 0xb5555c8e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#44 0xb7eda762 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
#45 0xb5e8dce5 in ?? () from /usr/lib/libQtGui.so.4
#46 0xb7eb4bf2 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#47 0xb7eb4cfa in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#48 0xb7eb71fd in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#49 0xb5e09f67 in QApplication::exec () from /usr/lib/libQtGui.so.4
#50 0x0822b7aa in main (argc=1, argv=0xbfeabd84)
    at /home/test/KDE4/kdesvn/extragear/graphics/digikam/digikam/main.cpp:330
#0  0xb7f8b410 in __kernel_vsyscall ()
Comment 4 caulier.gilles 2008-02-04 18:17:17 UTC
I'm still not able to reproduce the crash on my computer...

Marcel, do you can see the problem ???

Gilles
Comment 5 caulier.gilles 2008-02-04 18:20:49 UTC
FiNex,

we need more informations to debug. Are you few images in your collection or do you start with a clean root album path ?

Also, can you start digiKam under valgrin like it's explained in HACKING file to get more informations about the crash ?

Gilles Caulier
Comment 6 Marcel Wiesweg 2008-02-04 19:04:59 UTC
SVN commit 770908 by mwiesweg:

Don't access QMap::begin() if map is empty.
Gilles: Correct behavior to set min/maxdate to null in this case?
157149: This _might_ fix this bug, please test

CCBUG: 157149


 M  +15 -4     timelinewidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=770908
Comment 7 caulier.gilles 2008-02-04 20:24:24 UTC
SVN commit 770933 by cgilles:

backport commit #157149 from KDE4 by Marcel to KDE3 branch
157149: This _might_ fix this bug, please test...

CCBUG: 157149


 M  +24 -8     timelinewidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=770933
Comment 8 caulier.gilles 2008-02-04 20:26:08 UTC
Mangus, Finex,

I'm waiting your feedback to close this bug report (:=)))

Gilles Caulier
Comment 9 mangus 2008-02-04 22:51:51 UTC
compiled revision 770971 , digikam starts ok now. thank you
can't add folder or picture in the album for now but this is another story and I don't have time now , thank you.
Comment 10 Philippe Arnone 2008-02-05 07:23:56 UTC
Le Monday 04 February 2008 20:26:09 Gilles Caulier, vous avez