Bug 210424 - Occasional crash on startup
Summary: Occasional crash on startup
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Bqm-Rotate (show other bugs)
Version: 1.0.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-13 12:21 UTC by Matti Rintala
Modified: 2022-01-19 03:16 UTC (History)
5 users (show)

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


Attachments
Crash log (15.32 KB, text/x-log)
2009-10-13 12:22 UTC, Matti Rintala
Details
Output of Digikam before the crash (10.47 KB, text/x-log)
2009-10-13 12:23 UTC, Matti Rintala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matti Rintala 2009-10-13 12:21:09 UTC
Version:            (using KDE 4.2.4)
Compiler:          gcc 4.4.1 
OS:                Linux
Installed from:    SuSE RPMs

Digikam compiled from recent trunk (rev 1033809) crashes occasional during startup. It does not happen every time, maybe one out of four. I haven't been able to notice any consistent thing that would trigger the crash (after crash, next time it may startup normally, or then it may crash again).

Unfortunately I haven't been able to cause the crash when running Digikam in gdb, so I cannot provide a gdb stack trace. I'll include output of Digikam before the crash and info provided by the KDE crash handler.

Since this happens only occasionally, my guess would be a concurrency and timing related problem? (I have a dual-core processor, and hardware concurrency has a tendency to show these bugs more easily.)
Comment 1 Matti Rintala 2009-10-13 12:22:41 UTC
Created attachment 37550 [details]
Crash log
Comment 2 Matti Rintala 2009-10-13 12:23:15 UTC
Created attachment 37551 [details]
Output of Digikam before the crash
Comment 3 caulier.gilles 2009-10-13 12:33:48 UTC
Dario,

libc crash...

Gilles
Comment 4 Dario Andres 2009-10-14 03:20:33 UTC
Pasting backtrace inline:
---

Thread 1 (Thread 0x7f22979f2760 (LWP 7104)):
#0  0x00007f2290bdccf1 in nanosleep () from /lib64/libc.so.6
#1  0x00007f2290bdcaec in sleep () from /lib64/libc.so.6
#2  0x00007f229382b95f in ?? () from /usr/lib64/libkdeui.so.5
#3  0x00007f229382c2ba in KCrash::defaultCrashHandler(int) () from /usr/lib64/libkdeui.so.5
#4  <signal handler called>
#5  0x00007f2290b6d645 in raise () from /lib64/libc.so.6
#6  0x00007f2290b6ec33 in abort () from /lib64/libc.so.6
#7  0x00007f2290ba98e8 in ?? () from /lib64/libc.so.6
#8  0x00007f2290baf108 in ?? () from /lib64/libc.so.6
#9  0x00007f2290bb0c66 in free () from /lib64/libc.so.6
#10 0x00007f22929f38c7 in ?? () from /usr/lib64/libQtCore.so.4
#11 0x00007f224e471c61 in ?? () from /usr/lib64/kde4/kipiplugin_jpeglossless.so
#12 0x00007f224e469588 in ?? () from /usr/lib64/kde4/kipiplugin_jpeglossless.so
#13 0x000000000068139d in Digikam::DigikamApp::slotKipiPluginPlug (this=0xd525a0) at /home/bitti/nobackup/src/digikam/graphics/digikam/digikam/digikamapp.cpp:2303
#14 0x000000000066968f in Digikam::DigikamApp::qt_metacall (this=0xd525a0, _c=QMetaObject::InvokeMetaMethod, _id=32, _a=0x7fff142e5680)
    at /home/bitti/nobackup/src/digikam/digikambuild/digikam/digikam/digikamapp.moc:215
#15 0x00007f22929e8454 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#16 0x00007f22963aab7b in KIPI::PluginLoader::replug (this=0x4d4c690) at /home/bitti/nobackup/src/digikam/kdelibbuild/libs/libkipi/libkipi/pluginloader.moc:95
#17 0x00007f22963abfe3 in KIPI::PluginLoader::loadPlugins (this=0x4d4c690) at /home/bitti/nobackup/src/digikam/kdegraphics/libs/libkipi/libkipi/pluginloader.cpp:271
#18 0x0000000000680b79 in Digikam::DigikamApp::loadPlugins (this=0xd525a0) at /home/bitti/nobackup/src/digikam/graphics/digikam/digikam/digikamapp.cpp:2246
#19 0x000000000066b7e3 in DigikamApp (this=0xd525a0) at /home/bitti/nobackup/src/digikam/graphics/digikam/digikam/digikamapp.cpp:240
#20 0x0000000000784138 in main (argc=1, argv=0x7fff142e6028) at /home/bitti/nobackup/src/digikam/graphics/digikam/digikam/main.cpp:163


-- 

To me it looks like a Kipi-plugins related issue (jpeg loseless). The backtrace could be related to the one in https://bugs.kde.org/show_bug.cgi?id=200159#c12

If you can reproduce the crash at will (or you experience this regularly), can you install the "kipi-plugins-debuginfo" package and post a complete backtrace here? Thanks
Comment 5 Marcel Wiesweg 2009-10-14 18:37:55 UTC
Also ensure that you updated to a recent version of libkipi and kipi-plugins.
Maybe some binary incompatibility.
Comment 6 Matti Rintala 2009-10-15 15:57:57 UTC
Hmmm... Marchel, you may have something there.

I compile libkipi and kipi-plugins from svn.

However, on my KDE 4.2.4 machine, Digikam's cmake does not find necessary libraries to compile calendar kipi-plugin (is some extra configuration needed, I think I should have all necessary lib and devel packages installed?). So, Digikam build is configured not to compile the calendar plugin.

Now it seems that when I run Digikam, it still tries to load the calendar plugin and find the KDE 4.2.4 version. I'm not sure if that might be the reason for my problems.

Or maybe I'm configuring something wrong in the build process, digikam.org's compilation pages (http://www.digikam.org/drupal/download?q=download/KDE4) are not very complete in this respect, I think. Especially if and when I want to install Digikam and necessary libraries somewhere else than /usr/lib (I wouldn't like to put development stuff from svn there).
Comment 7 caulier.gilles 2009-10-15 16:50:06 UTC
Matti,

remove your CMakeCache.txt file from your root source code dir, and start cmake again...

Gilles Caulier
Comment 8 Nicolas L. 2009-12-17 16:23:56 UTC
is this still valid for you ?
Comment 9 Matti Rintala 2009-12-17 18:37:47 UTC
Nicolas,

I had complete forgotten this bug report. It can be closed, I managed to get rid of the problem with help from Marcel. I had installed Digikam to a non-default location and apparently it managed to find a couple of old kipi-plugins from elsewhere in the system.

Matti