Bug 380256 - digikam crash when adding new collection
Summary: digikam crash when adding new collection
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-Collections (show other bugs)
Version: 5.5.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-27 18:30 UTC by michel42
Modified: 2017-08-09 20:29 UTC (History)
1 user (show)

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


Attachments
gdb visu (19.24 KB, text/plain)
2017-05-30 08:31 UTC, michel42
Details
bt gdb add-on (8.39 KB, text/plain)
2017-05-30 08:36 UTC, michel42
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michel42 2017-05-27 18:30:35 UTC
install xubuntu zesty 17.04, adding digikam 5.5 with ppa philip5..
classic configuration
when i clik on the button add a new collection digikam crash
Comment 1 caulier.gilles 2017-05-27 20:04:42 UTC
We need a GDB backtrace to hack. See here for details :

https://www.digikam.org/contribute/

Gilles Caulier
Comment 2 caulier.gilles 2017-05-27 20:28:04 UTC
*** Bug 380261 has been marked as a duplicate of this bug. ***
Comment 3 michel42 2017-05-30 08:31:09 UTC
Created attachment 105774 [details]
gdb visu

unable to access the backtrace command in gdb !! sorry.. the digikam process is running 
michel    4212  0.4  4.9 257816 197972 pts/0   S    10:18   0:03 gdb digikam
michel    4218  1.2 10.2 3865584 412220 pts/0  Sl+  10:19   0:08 /usr/bin/digikam
Comment 4 michel42 2017-05-30 08:33:10 UTC
when a click on the button  "new local collection" unable to continue to use digikam
Comment 5 michel42 2017-05-30 08:36:32 UTC
Created attachment 105775 [details]
bt gdb add-on

finally, after Ctrl-C in gdb console, access to BT.. see result file
thanks
Comment 6 caulier.gilles 2017-05-30 08:42:57 UTC
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007fffe94f103f in g_cond_wait () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffe94d30e7 in g_once_init_enter () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffbac849d8 in gdk_window_get_type () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#4  0x00007fffbac84f39 in gdk_window_get_display () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#5  0x00007fffbacbb420 in gdk_x11_window_get_xid () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#6  0x00007fffbb86e779 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes/libqgtk3.so
#7  0x00007fffbb871291 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platformthemes/libqgtk3.so
#8  0x00007ffff53199c0 in QDialogPrivate::setNativeDialogVisible(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007ffff532c0d2 in QFileDialog::setVisible(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007ffff531a8f1 in QDialog::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007ffff532d454 in QFileDialog::getExistingDirectoryUrl(QWidget*, QString const&, QUrl const&, 

This open a file dialog through GTK because you use a GTK based desktop. The crash is inside GTK code. Nice...

This problem must be fixed in 5.6.0 where we drop desktop based file dialog to use in this case.

Please test the last pre-release 5.6.0 Linux AppImage bundle which include this fix.

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

Gilles Caulier
Comment 7 michel42 2017-05-30 21:11:35 UTC
thanks to gilles !! after launch the patch.. you can use digikam 5.5.0 with new local collections.. or prefer to test the 5.6
very good job