Bug 379420 - showPhoto crashed after resize
Summary: showPhoto crashed after resize
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Showfoto-Plugins (show other bugs)
Version: 5.5.0
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-05-01 21:19 UTC by Kai Krakow
Modified: 2022-02-05 04:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.9.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Krakow 2017-05-01 21:19:59 UTC
Application: showfoto (5.5.0)

Qt Version: 5.7.1
Frameworks Version: 5.33.0
Operating System: Linux 4.10.13-ck x86_64
Distribution: "Gentoo Base System release 2.3"

-- Information about the crash:
- What I was doing when the application crashed:

I was resizing a phote, then clicked "Save as", typed a file name and it crashed.

-- Backtrace:
Application: Showfoto (showfoto), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ffaa93a5900 (LWP 9843))]

Thread 4 (Thread 0x7ffaa738e700 (LWP 9844)):
#0  0x0000003f86adf39d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x0000003f89e0c8e2 in poll (__timeout=-1, __nfds=1, __fds=0x7ffaa738dba0) at /usr/include/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x1c981e0, cond=cond@entry=0x1c98220, vector=vector@entry=0x0, count=count@entry=0x0) at /var/tmp/portage/x11-libs/libxcb-1.12-r2/work/libxcb-1.12/src/xcb_conn.c:479
#3  0x0000003f89e0f249 in xcb_wait_for_event (c=0x1c981e0) at /var/tmp/portage/x11-libs/libxcb-1.12-r2/work/libxcb-1.12/src/xcb_in.c:693
#4  0x00007ffaa8a36279 in QXcbEventReader::run (this=0x1ca4540) at qxcbconnection.cpp:1343
#5  0x00000031fbcaeb18 in QThreadPrivate::start (arg=0x1ca4540) at thread/qthread_unix.cpp:368
#6  0x0000003f872073b4 in start_thread (arg=0x7ffaa738e700) at pthread_create.c:333
#7  0x0000003f86ae841d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7ffaa50ae700 (LWP 9846)):
#0  0x00000031fa8a8fc9 in g_mutex_lock (mutex=mutex@entry=0x7ffa98000990) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gthread-posix.c:1336
#1  0x00000031fa853f10 in g_main_context_acquire (context=0x7ffa98000990) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3264
#2  0x00000031fa855025 in g_main_context_iterate (context=context@entry=0x7ffa98000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3879
#3  0x00000031fa85527c in g_main_context_iteration (context=0x7ffa98000990, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3990
#4  0x00000031fbed2a9b in QEventDispatcherGlib::processEvents (this=0x7ffa980008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00000031fbe7ccda in QEventLoop::exec (this=this@entry=0x7ffaa50adc90, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00000031fbca9ec4 in QThread::exec (this=this@entry=0x31fd494780 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:507
#7  0x00000031fd415d95 in QDBusConnectionManager::run (this=0x31fd494780 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00000031fbcaeb18 in QThreadPrivate::start (arg=0x31fd494780 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:368
#9  0x0000003f872073b4 in start_thread (arg=0x7ffaa50ae700) at pthread_create.c:333
#10 0x0000003f86ae841d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7ffa97fff700 (LWP 9848)):
#0  pthread_cond_wait () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00000031fbcafa1b in QWaitConditionPrivate::wait (time=18446744073709551615, this=0x2270380) at thread/qwaitcondition_unix.cpp:143
#2  QWaitCondition::wait (this=this@entry=0x226a900, mutex=mutex@entry=0x226a8f8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:215
#3  0x00007ffab1bc4333 in Digikam::ParkingThread::run (this=0x226a8e0) at /var/tmp/portage/media-gfx/digikam-5.5.0/work/digikam-5.5.0/core/libs/threads/threadmanager.cpp:115
#4  0x00000031fbcaeb18 in QThreadPrivate::start (arg=0x226a8e0) at thread/qthread_unix.cpp:368
#5  0x0000003f872073b4 in start_thread (arg=0x7ffa97fff700) at pthread_create.c:333
#6  0x0000003f86ae841d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7ffaa93a5900 (LWP 9843)):
[KCrash Handler]
#6  0x0000000009a00024 in ?? ()
#7  0x00007ffab1d69e8a in Digikam::EditorTool::~EditorTool (this=0x24e4320, __in_chrg=<optimized out>) at /var/tmp/portage/media-gfx/digikam-5.5.0/work/digikam-5.5.0/core/utilities/imageeditor/editor/editortool.cpp:93
#8  0x00007ffab1dfa2e3 in Digikam::ResizeTool::~ResizeTool (this=0x24e4320, __in_chrg=<optimized out>) at /var/tmp/portage/media-gfx/digikam-5.5.0/work/digikam-5.5.0/core/utilities/imageeditor/tools/transform/resizetool.cpp:313
#9  Digikam::ResizeTool::~ResizeTool (this=0x24e4320, __in_chrg=<optimized out>) at /var/tmp/portage/media-gfx/digikam-5.5.0/work/digikam-5.5.0/core/utilities/imageeditor/tools/transform/resizetool.cpp:316
#10 0x00000031fbea83c3 in QObjectPrivate::deleteChildren (this=this@entry=0x21d2260) at kernel/qobject.cpp:1970
#11 0x00000031fcda4204 in QWidget::~QWidget (this=0x21d1f50, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1694
#12 0x00000031fb487481 in KMainWindow::~KMainWindow (this=0x21d1f50, __in_chrg=<optimized out>) at /var/tmp/portage/kde-frameworks/kxmlgui-5.33.0/work/kxmlgui-5.33.0/src/kmainwindow.cpp:395
#13 0x000000000045cf8e in ShowFoto::ShowFoto::~ShowFoto (this=0x21d1f50, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /var/tmp/portage/media-gfx/digikam-5.5.0/work/digikam-5.5.0/core/showfoto/main/showfoto.cpp:198
#14 0x000000000045cfd9 in ShowFoto::ShowFoto::~ShowFoto (this=0x21d1f50, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /var/tmp/portage/media-gfx/digikam-5.5.0/work/digikam-5.5.0/core/showfoto/main/showfoto.cpp:212
#15 0x00000031fbeaabb0 in QObject::event (this=this@entry=0x21d1f50, e=e@entry=0x448e680) at kernel/qobject.cpp:1254
#16 0x00000031fcda8cab in QWidget::event (this=this@entry=0x21d1f50, event=event@entry=0x448e680) at kernel/qwidget.cpp:9225
#17 0x00000031fcec247b in QMainWindow::event (this=this@entry=0x21d1f50, event=event@entry=0x448e680) at widgets/qmainwindow.cpp:1543
#18 0x00000031fb489e4a in KMainWindow::event (this=this@entry=0x21d1f50, ev=ev@entry=0x448e680) at /var/tmp/portage/kde-frameworks/kxmlgui-5.33.0/work/kxmlgui-5.33.0/src/kmainwindow.cpp:867
#19 0x00000031fb4d9fc5 in KXmlGuiWindow::event (this=0x21d1f50, ev=0x448e680) at /var/tmp/portage/kde-frameworks/kxmlgui-5.33.0/work/kxmlgui-5.33.0/src/kxmlguiwindow.cpp:119
#20 0x00000031fcd5af8c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x21d1f50, e=0x448e680) at kernel/qapplication.cpp:3799
#21 0x00000031fcd62280 in QApplication::notify (this=0x7ffd7bffbc80, receiver=0x21d1f50, e=0x448e680) at kernel/qapplication.cpp:3556
#22 0x00000031fbe7ed28 in QCoreApplication::notifyInternal2 (receiver=0x21d1f50, event=event@entry=0x448e680) at kernel/qcoreapplication.cpp:988
#23 0x00000031fbe8142b in QCoreApplication::sendEvent (event=0x448e680, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#24 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1c05d90) at kernel/qcoreapplication.cpp:1649
#25 0x00000031fbe81898 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1503
#26 0x00000031fbed2673 in postEventSourceDispatch (s=0x1ccf5c0) at kernel/qeventdispatcher_glib.cpp:276
#27 0x00000031fa854f47 in g_main_dispatch (context=0x7ffaa00016f0) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3203
#28 g_main_context_dispatch (context=context@entry=0x7ffaa00016f0) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3856
#29 0x00000031fa8551d0 in g_main_context_iterate (context=context@entry=0x7ffaa00016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3929
#30 0x00000031fa85527c in g_main_context_iteration (context=0x7ffaa00016f0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3990
#31 0x00000031fbed2a7f in QEventDispatcherGlib::processEvents (this=0x1cca700, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#32 0x00000031fbe7ccda in QEventLoop::exec (this=this@entry=0x7ffd7bffba40, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#33 0x00000031fbe8541c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261
#34 0x00000031fc2eb9bc in QGuiApplication::exec () at kernel/qguiapplication.cpp:1633
#35 0x00000031fcd5aee5 in QApplication::exec () at kernel/qapplication.cpp:2975
#36 0x0000000000430972 in main (argc=2, argv=<optimized out>) at /var/tmp/portage/media-gfx/digikam-5.5.0/work/digikam-5.5.0/core/showfoto/main/main.cpp:116

Reported using DrKonqi
Comment 1 caulier.gilles 2017-06-22 21:42:38 UTC
digiKam 5.6.0 is now released and available as bundle for Linux, MacOS and Windows.

https://www.digikam.org/news/2017-06-21-5.6.0-release-announcement/

Can you check if problem still exists with this version ?

Thanks in advance

Gilles Caulier
Comment 2 caulier.gilles 2017-07-23 18:27:55 UTC
New digiKam 5.7.0 are built with current implementation as pre-release bundles:

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM

Problem still reproducible ?
Comment 3 j.alders1946 2017-08-18 13:39:11 UTC
Using PCLinuxOS KDE5 Plasma and showfoto version 5.6.0.
After resizing or cropping a picture and trying to save the modified picture,
Showfoto crashes. Version 5.5.0 does not have this problem.
Sorry, cannot produce a bugreport because PCLinuxOS does not have debug packages
available. Not all picture show this problem but pictures made with 
Casio-Exelim-10x.
Comment 4 j.alders1946 2017-08-23 15:50:08 UTC
Did somebody NOTICED my comment 3 ?
Comment 5 caulier.gilles 2017-08-23 17:22:28 UTC
Do you read comment #2 and #3. We want a feedback with the AppImage Linux bundle that we provide, not with the Linux distro package. We suspect a broken binary compatibility with packages.

Gilles Caulier
Comment 6 caulier.gilles 2017-08-23 17:32:34 UTC
Note : to run showfoto with digiKam appimage, use right arugment on command line :

[gilles@localhost Téléchargements]$ ./digikam-5.7.0-01-x86-64.appimage help
-- digiKam AppImage Bundle
-- Use 'help' as CLI argument to know all available options
digiKam AppImage bundle CLI options:
 without option     : run digiKam.
 <showfoto>         : run Showfoto instead digiKam.
 <debug>            : run digiKam into GDB.
 <debug> <showfoto> : run Showfoto into GDB.
 <help>             : show this help.
Comment 7 Maik Qualmann 2017-08-23 18:12:02 UTC
Git commit 0c3126350693ab219a2b56187492dd7d8e3962b1 by Maik Qualmann.
Committed on 23/08/2017 at 18:10.
Pushed by mqualmann into branch 'master'.

remove parents from the SharpSettings

M  +4    -4    libs/dimg/filters/sharp/sharpsettings.cpp

https://commits.kde.org/digikam/0c3126350693ab219a2b56187492dd7d8e3962b1
Comment 8 j.alders1946 2017-08-23 18:25:06 UTC
Allright, I overlooked comment 2 but can't I simply upload a "problem" picture
taken with my camera?
Comment 9 caulier.gilles 2017-11-30 09:31:01 UTC
Please update this entry from bugzilla with current 5.8.0 pre-release bundle to see if problem remain.

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier
Comment 10 caulier.gilles 2018-03-05 12:16:46 UTC
We need a fresh feddback here using last digiKam AppImage bundle...
Comment 11 j.alders1946 2018-03-05 14:08:01 UTC
Dear Gilles,

I am now using version 5.8.0 and do not face any problems with this version!
So I think I can conclude that this bug has been solved.
Thanks for your effort.
Comment 12 caulier.gilles 2018-03-05 14:58:41 UTC
Thanks for the feedback...