Bug 334992 - Select color space -> other -> crash
Summary: Select color space -> other -> crash
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Showfoto-Plugins (show other bugs)
Version: 4.0.0
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-05-18 15:13 UTC by Feth Arezki
Modified: 2022-02-05 04:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.12.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Feth Arezki 2014-05-18 15:13:50 UTC
Application: showfoto (4.0.0)
KDE Platform Version: 4.12.4
Qt Version: 4.8.6
Operating System: Linux 3.14-1-amd64 x86_64
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
I had opened a back and white flat PNG and wanted to see if I could select a colorspace.
Color Menu -> (drop down) -> Convert colorimetric space -> other -> crash

This is reproducible even withou an image loaded.

The crash can be reproduced every time.

-- Backtrace:
Application: showFoto (showfoto), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7feb1ae8f980 (LWP 17358))]

Thread 2 (Thread 0x7feafb6ea700 (LWP 17359)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007feb17f9a7a6 in wait (time=18446744073709551615, this=0xf12760) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xf66118, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007feb1a8c430a in ?? () from /usr/lib/digikam/libdigikamcore.so.4.0.0
#4  0x00007feb17f9a2bf in QThreadPrivate::start (arg=0xf66100) at thread/qthread_unix.cpp:349
#5  0x00007feb15a7d062 in start_thread (arg=0x7feafb6ea700) at pthread_create.c:312
#6  0x00007feb17436bfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7feb1ae8f980 (LWP 17358)):
[KCrash Handler]
#6  0x00007feb1a6dbc2e in Digikam::DImg::DImg(Digikam::DImg const&) () from /usr/lib/digikam/libdigikamcore.so.4.0.0
#7  0x00007feb1a6dc55e in Digikam::DImg::copy() const () from /usr/lib/digikam/libdigikamcore.so.4.0.0
#8  0x00007feb1a91e2e0 in Digikam::ImageRegionItem::ImageRegionItem(Digikam::ImageRegionWidget*) () from /usr/lib/digikam/libdigikamcore.so.4.0.0
#9  0x00007feb1a91d6b0 in Digikam::ImageRegionWidget::ImageRegionWidget(QWidget*) () from /usr/lib/digikam/libdigikamcore.so.4.0.0
#10 0x00007feafa7b0f23 in ?? () from /usr/lib/kde4/digikamimageplugin_color.so
#11 0x00007feafa7bd341 in ?? () from /usr/lib/kde4/digikamimageplugin_color.so
#12 0x00007feb180b06aa in QMetaObject::activate (sender=sender@entry=0x11a31d0, m=m@entry=0x7feb195451c0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff4c744d80) at kernel/qobject.cpp:3567
#13 0x00007feb18a9b572 in QAction::triggered (this=this@entry=0x11a31d0, _t1=false) at .moc/release-shared/moc_qaction.cpp:276
#14 0x00007feb18a9cf43 in QAction::activate (this=this@entry=0x11a31d0, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#15 0x00007feb18ec7959 in QMenuPrivate::activateCausedStack (this=this@entry=0x11fc4f0, causedStack=..., action=action@entry=0x11a31d0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1037
#16 0x00007feb18ecbea9 in QMenuPrivate::activateAction (this=0x11fc4f0, action=0x11a31d0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1129
#17 0x00007feb18ecf885 in QMenu::mouseReleaseEvent (this=this@entry=0x11fc190, e=e@entry=0x7fff4c7454b0) at widgets/qmenu.cpp:2371
#18 0x00007feb1987af75 in KMenu::mouseReleaseEvent (this=0x11fc190, e=0x7fff4c7454b0) at ../../kdeui/widgets/kmenu.cpp:464
#19 0x00007feb18af0cca in QWidget::event (this=this@entry=0x11fc190, event=event@entry=0x7fff4c7454b0) at kernel/qwidget.cpp:8389
#20 0x00007feb18ecfd0b in QMenu::event (this=0x11fc190, e=0x7fff4c7454b0) at widgets/qmenu.cpp:2480
#21 0x00007feb18aa16cc in QApplicationPrivate::notify_helper (this=this@entry=0xc297a0, receiver=receiver@entry=0x11fc190, e=e@entry=0x7fff4c7454b0) at kernel/qapplication.cpp:4570
#22 0x00007feb18aa7e3a in QApplication::notify (this=this@entry=0x7fff4c745e20, receiver=receiver@entry=0x11fc190, e=e@entry=0x7fff4c7454b0) at kernel/qapplication.cpp:4113
#23 0x00007feb197c476a in KApplication::notify (this=0x7fff4c745e20, receiver=0x11fc190, event=0x7fff4c7454b0) at ../../kdeui/kernel/kapplication.cpp:311
#24 0x00007feb1809c41d in QCoreApplication::notifyInternal (this=0x7fff4c745e20, receiver=receiver@entry=0x11fc190, event=event@entry=0x7fff4c7454b0) at kernel/qcoreapplication.cpp:953
#25 0x00007feb18aa7633 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#26 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x11fc190, event=event@entry=0x7fff4c7454b0, alienWidget=alienWidget@entry=0x0, nativeWidget=nativeWidget@entry=0x11fc190, buttonDown=buttonDown@entry=0x7feb195802d8 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#27 0x00007feb18b1966c in QETWidget::translateMouseEvent (this=this@entry=0x11fc190, event=event@entry=0x7fff4c7457f0) at kernel/qapplication_x11.cpp:4474
#28 0x00007feb18b17dac in QApplication::x11ProcessEvent (this=0x7fff4c745e20, event=event@entry=0x7fff4c7457f0) at kernel/qapplication_x11.cpp:3663
#29 0x00007feb18b3f712 in x11EventSourceDispatch (s=0xc295f0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x00007feb11a72e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007feb11a73048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007feb11a730ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007feb180c9655 in QEventDispatcherGlib::processEvents (this=0xba7990, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#34 0x00007feb18b3f7c6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007feb1809afef in QEventLoop::processEvents (this=this@entry=0x7fff4c745bc0, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007feb1809b2e5 in QEventLoop::exec (this=this@entry=0x7fff4c745bc0, flags=...) at kernel/qeventloop.cpp:204
#37 0x00007feb180a0ab9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#38 0x0000000000420759 in ?? ()
#39 0x00007feb17372b45 in __libc_start_main (main=0x4201b0, argc=2, argv=0x7fff4c745f58, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff4c745f48) at libc-start.c:287
#40 0x0000000000420f6f in _start ()

Reported using DrKonqi
Comment 1 caulier.gilles 2014-05-18 15:48:43 UTC
It miss full debug trace with digiKam to investiguate.

Run digiKam as explained here and give us a better bactrace :

http://www.digikam.org/contrib

Gilles Caulier
Comment 2 Feth Arezki 2014-05-18 19:28:47 UTC
Installed some debugging symbols, and updated digikam to 4:4.0.0-1 in the process :
if I run showfoto from digikam, it says that color management is disabled.
If I run showfoto standalone, it does not get better as this :

 gdb showfoto 
GNU gdb (GDB) 7.6.2 (Debian 7.6.2-1.1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/showfoto...(no debugging symbols found)...done.
(gdb) catch throw
Function "__cxa_throw" not defined.
Catchpoint 1 (throw)
(gdb) run
Starting program: /usr/bin/showfoto 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffd87ab700 (LWP 16307)]
showfoto(16285)/digikam (core) Digikam::EditorCore::getImg: d->image is NULL 

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff77d7c2e in Digikam::DImg::DImg(Digikam::DImg const&) () from /usr/lib/digikam/libdigikamcore.so.4.0.0
(gdb) bt
#0  0x00007ffff77d7c2e in Digikam::DImg::DImg(Digikam::DImg const&) () from /usr/lib/digikam/libdigikamcore.so.4.0.0
#1  0x00007ffff77d855e in Digikam::DImg::copy() const () from /usr/lib/digikam/libdigikamcore.so.4.0.0
#2  0x00007ffff7a1a2e0 in Digikam::ImageRegionItem::ImageRegionItem(Digikam::ImageRegionWidget*) () from /usr/lib/digikam/libdigikamcore.so.4.0.0
#3  0x00007ffff7a196b0 in Digikam::ImageRegionWidget::ImageRegionWidget(QWidget*) () from /usr/lib/digikam/libdigikamcore.so.4.0.0
#4  0x00007fffd784af23 in ?? () from /usr/lib/kde4/digikamimageplugin_color.so
#5  0x00007fffd7857341 in ?? () from /usr/lib/kde4/digikamimageplugin_color.so
#6  0x00007ffff51ab6aa in QMetaObject::activate (sender=sender@entry=0xc621b0, m=m@entry=0x7ffff66401c0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fffffffce20) at kernel/qobject.cpp:3567
#7  0x00007ffff5b96572 in QAction::triggered (this=this@entry=0xc621b0, _t1=false) at .moc/release-shared/moc_qaction.cpp:276
#8  0x00007ffff5b97f43 in QAction::activate (this=this@entry=0xc621b0, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#9  0x00007ffff5fc2959 in QMenuPrivate::activateCausedStack (this=this@entry=0xca5100, causedStack=..., action=action@entry=0xc621b0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1037
#10 0x00007ffff5fc6ea9 in QMenuPrivate::activateAction (this=0xca5100, action=0xc621b0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1129
#11 0x00007ffff5fca885 in QMenu::mouseReleaseEvent (this=this@entry=0xca4ef0, e=e@entry=0x7fffffffd550) at widgets/qmenu.cpp:2371
#12 0x00007ffff69760e5 in KMenu::mouseReleaseEvent (this=0xca4ef0, e=0x7fffffffd550) at ../../kdeui/widgets/kmenu.cpp:464
#13 0x00007ffff5bebcca in QWidget::event (this=this@entry=0xca4ef0, event=event@entry=0x7fffffffd550) at kernel/qwidget.cpp:8389
#14 0x00007ffff5fcad0b in QMenu::event (this=0xca4ef0, e=0x7fffffffd550) at widgets/qmenu.cpp:2480
#15 0x00007ffff5b9c6cc in QApplicationPrivate::notify_helper (this=this@entry=0x709710, receiver=receiver@entry=0xca4ef0, e=e@entry=0x7fffffffd550) at kernel/qapplication.cpp:4570
#16 0x00007ffff5ba2e3a in QApplication::notify (this=this@entry=0x7fffffffdec0, receiver=receiver@entry=0xca4ef0, e=e@entry=0x7fffffffd550) at kernel/qapplication.cpp:4113
#17 0x00007ffff68bf8da in KApplication::notify (this=0x7fffffffdec0, receiver=0xca4ef0, event=0x7fffffffd550) at ../../kdeui/kernel/kapplication.cpp:311
#18 0x00007ffff519741d in QCoreApplication::notifyInternal (this=0x7fffffffdec0, receiver=receiver@entry=0xca4ef0, event=event@entry=0x7fffffffd550) at kernel/qcoreapplication.cpp:953
#19 0x00007ffff5ba2633 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#20 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0xca4ef0, event=event@entry=0x7fffffffd550, alienWidget=alienWidget@entry=0x0, nativeWidget=nativeWidget@entry=0xca4ef0, 
    buttonDown=buttonDown@entry=0x7ffff667b2d8 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#21 0x00007ffff5c1466c in QETWidget::translateMouseEvent (this=this@entry=0xca4ef0, event=event@entry=0x7fffffffd890) at kernel/qapplication_x11.cpp:4474
#22 0x00007ffff5c12dac in QApplication::x11ProcessEvent (this=0x7fffffffdec0, event=event@entry=0x7fffffffd890) at kernel/qapplication_x11.cpp:3663
#23 0x00007ffff5c3a712 in x11EventSourceDispatch (s=0x709560, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#24 0x00007fffeeb6de04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fffeeb6e048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fffeeb6e0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007ffff51c4655 in QEventDispatcherGlib::processEvents (this=0x687990, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#28 0x00007ffff5c3a7c6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x00007ffff5195fef in QEventLoop::processEvents (this=this@entry=0x7fffffffdc60, flags=...) at kernel/qeventloop.cpp:149
#30 0x00007ffff51962e5 in QEventLoop::exec (this=this@entry=0x7fffffffdc60, flags=...) at kernel/qeventloop.cpp:204
#31 0x00007ffff519bab9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#32 0x0000000000420759 in ?? ()
#33 0x00007ffff446db45 in __libc_start_main (main=0x4201b0, argc=1, argv=0x7fffffffdff8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdfe8) at libc-start.c:287
#34 0x0000000000420f6f in _start ()

Not a grave problem anyway
Comment 3 caulier.gilles 2014-05-18 20:32:30 UTC
It miss debug symbols from digiKam and Showfoto. No line code is indicated in your backtrace

Gilles Caulier
Comment 4 caulier.gilles 2015-06-25 09:02:19 UTC
New digiKam 4.11.0 is available :

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?
Comment 5 Feth Arezki 2015-06-25 13:03:17 UTC
Problem not occuring anymore with showfoto 4.4.0 !