Bug 377837

Summary: Crashed while using print assistant
Product: [Applications] digikam Reporter: Jiří Martínek <zwo>
Component: Plugin-Generic-PrintCreatorAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: bjoern, caulier.gilles, ewl+kde, myriam
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 5.6.0
Sentry Crash Report:

Description Jiří Martínek 2017-03-20 14:48:02 UTC
Application: gwenview (16.12.2)

Qt Version: 5.7.1
Frameworks Version: 5.32.0
Operating System: Linux 4.9.14-200.fc25.x86_64 x86_64
Distribution: "Fedora release 25 (Twenty Five)"

-- Information about the crash:
- What I was doing when the application crashed: I chose cca 65 pictures and then clicked Modules -> Picture -> Print assistant. There I clicked Labels and chose File names and Gwenview crashed.

The crash can be reproduced every time.

-- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f6cda3a9640 (LWP 19302))]

Thread 4 (Thread 0x7f2cb71d8700 (LWP 19353)):
#0  0x00007f6ce5637460 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f6ce782504a in QWaitCondition::wait(QMutex*, unsigned long) () at /lib64/libQt5Core.so.5
#2  0x00007f6ce900c4f2 in QFileInfoGatherer::run() () at /lib64/libQt5Widgets.so.5
#3  0x00007f6ce78249ca in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#4  0x00007f6ce56316ca in start_thread () at /lib64/libpthread.so.0
#5  0x00007f6ce6c17f7f in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f6cce4cb700 (LWP 19304)):
#0  0x00007f6ce6c0c01d in poll () at /lib64/libc.so.6
#1  0x00007f6cdf8ef166 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#2  0x00007f6cdf8ef27c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f6ce7a126eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007f6ce79c368a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007f6ce78205e3 in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007f6ce80c0739 in QDBusConnectionManager::run() () at /lib64/libQt5DBus.so.5
#7  0x00007f6ce78249ca in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007f6ce56316ca in start_thread () at /lib64/libpthread.so.0
#9  0x00007f6ce6c17f7f in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f6ccfce9700 (LWP 19303)):
#0  0x00007f6ce6c0c01d in poll () at /lib64/libc.so.6
#1  0x00007f6ce4418d10 in _xcb_conn_wait () at /lib64/libxcb.so.1
#2  0x00007f6ce441aaa9 in xcb_wait_for_event () at /lib64/libxcb.so.1
#3  0x00007f6cd3710d69 in QXcbEventReader::run() () at /lib64/libQt5XcbQpa.so.5
#4  0x00007f6ce78249ca in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#5  0x00007f6ce56316ca in start_thread () at /lib64/libpthread.so.0
#6  0x00007f6ce6c17f7f in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f6cda3a9640 (LWP 19302)):
[KCrash Handler]
#6  0x00007f2cbd9bdfa0 in KIPIPrintImagesPlugin::TPhoto::metaIface() () at /usr/lib64/qt5/plugins/kipiplugin_printimages.so
#7  0x00007f2cbd9cc454 in KIPIPrintImagesPlugin::Wizard::captionFormatter(KIPIPrintImagesPlugin::TPhoto*) const () at /usr/lib64/qt5/plugins/kipiplugin_printimages.so
#8  0x00007f2cbd9d3aea in KIPIPrintImagesPlugin::Wizard::paintOnePage(QPainter&, QList<KIPIPrintImagesPlugin::TPhoto*> const&, QList<QRect*> const&, int&, bool, bool) [clone .part.80] () at /usr/lib64/qt5/plugins/kipiplugin_printimages.so
#9  0x00007f2cbd9d4488 in KIPIPrintImagesPlugin::Wizard::previewPhotos() () at /usr/lib64/qt5/plugins/kipiplugin_printimages.so
#10 0x00007f2cbd9d4b45 in KIPIPrintImagesPlugin::Wizard::infopage_updateCaptions() () at /usr/lib64/qt5/plugins/kipiplugin_printimages.so
#11 0x00007f2cbd9e0445 in KIPIPrintImagesPlugin::Wizard::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at /usr/lib64/qt5/plugins/kipiplugin_printimages.so
#12 0x00007f6ce79eb721 in QMetaObject::activate(QObject*, int, int, void**) () at /lib64/libQt5Core.so.5
#13 0x00007f6ce8ee4235 in QComboBox::activated(QString const&) () at /lib64/libQt5Widgets.so.5
#14 0x00007f6ce8ee6676 in QComboBoxPrivate::emitActivated(QModelIndex const&) () at /lib64/libQt5Widgets.so.5
#15 0x00007f6ce8ee9039 in QComboBoxPrivate::_q_itemSelected(QModelIndex const&) () at /lib64/libQt5Widgets.so.5
#16 0x00007f6ce8eee07d in QComboBox::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () at /lib64/libQt5Widgets.so.5
#17 0x00007f6ce79eb721 in QMetaObject::activate(QObject*, int, int, void**) () at /lib64/libQt5Core.so.5
#18 0x00007f6ce8ee49e8 in QComboBoxPrivateContainer::eventFilter(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#19 0x00007f6ce79c44e2 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#20 0x00007f6ce8de5ea5 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#21 0x00007f6ce8dee52d in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#22 0x00007f6ce79c46fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#23 0x00007f6ce8decbbd in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /lib64/libQt5Widgets.so.5
#24 0x00007f6ce8e4835d in QWidgetWindow::handleMouseEvent(QMouseEvent*) () at /lib64/libQt5Widgets.so.5
#25 0x00007f6ce8e4a9a3 in QWidgetWindow::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#26 0x00007f6ce8de5ecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#27 0x00007f6ce8ded671 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#28 0x00007f6ce79c46fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#29 0x00007f6ce7cfb2b3 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib64/libQt5Gui.so.5
#30 0x00007f6ce7cfcd85 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /lib64/libQt5Gui.so.5
#31 0x00007f6ce7cddc4b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Gui.so.5
#32 0x00007f6cd37476c0 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5XcbQpa.so.5
#33 0x00007f6cdf8eee52 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#34 0x00007f6cdf8ef1d0 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#35 0x00007f6cdf8ef27c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#36 0x00007f6ce7a126cf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#37 0x00007f6ce79c368a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#38 0x00007f6ce8fd50c7 in QDialog::exec() () at /lib64/libQt5Widgets.so.5
#39 0x00007f2cbd9bd6a0 in KIPIPrintImagesPlugin::Plugin_PrintImages::slotPrintAssistantActivate() () at /usr/lib64/qt5/plugins/kipiplugin_printimages.so
#40 0x00007f6ce79eb721 in QMetaObject::activate(QObject*, int, int, void**) () at /lib64/libQt5Core.so.5
#41 0x00007f6ce8ddf4b2 in QAction::triggered(bool) () at /lib64/libQt5Widgets.so.5
#42 0x00007f6ce8de1ee2 in QAction::activate(QAction::ActionEvent) () at /lib64/libQt5Widgets.so.5
#43 0x00007f6ce8f51cea in QMenuPrivate::activateCausedStack(QVector<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool) () at /lib64/libQt5Widgets.so.5
#44 0x00007f6ce8f593e4 in QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool) () at /lib64/libQt5Widgets.so.5
#45 0x00007f6ce8f5a3b6 in QMenu::mouseReleaseEvent(QMouseEvent*) () at /lib64/libQt5Widgets.so.5
#46 0x00007f6ce8e2d7c0 in QWidget::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#47 0x00007f6ce8f5c753 in QMenu::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#48 0x00007f6ce8de5ecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#49 0x00007f6ce8dee52d in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#50 0x00007f6ce79c46fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#51 0x00007f6ce8decbbd in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /lib64/libQt5Widgets.so.5
#52 0x00007f6ce8e4835d in QWidgetWindow::handleMouseEvent(QMouseEvent*) () at /lib64/libQt5Widgets.so.5
#53 0x00007f6ce8e4a9a3 in QWidgetWindow::event(QEvent*) () at /lib64/libQt5Widgets.so.5
#54 0x00007f6ce8de5ecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#55 0x00007f6ce8ded671 in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#56 0x00007f6ce79c46fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#57 0x00007f6ce7cfb2b3 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib64/libQt5Gui.so.5
#58 0x00007f6ce7cfcd85 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /lib64/libQt5Gui.so.5
#59 0x00007f6ce7cddc4b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Gui.so.5
#60 0x00007f6cd37476c0 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5XcbQpa.so.5
#61 0x00007f6cdf8eee52 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#62 0x00007f6cdf8ef1d0 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
#63 0x00007f6cdf8ef27c in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#64 0x00007f6ce7a126cf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#65 0x00007f6ce79c368a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#66 0x00007f6ce79cb18c in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#67 0x000055676deee4b1 in main ()

Possible duplicates by query: bug 367932.

Reported using DrKonqi
Comment 1 Christoph Feck 2017-03-24 14:22:27 UTC
*** Bug 367932 has been marked as a duplicate of this bug. ***
Comment 2 Maik Qualmann 2017-03-24 18:17:02 UTC
Git commit 394d186e9d8b34f20a591b52f2b790fed6e42435 by Maik Qualmann.
Committed on 24/03/2017 at 18:15.
Pushed by mqualmann into branch 'master'.

fix print assistant if not exist a metadata processor from the host application
FIXED-IN: 5.6.0

M  +2    -1    NEWS
M  +1    -1    printimages/tools/tphoto.cpp
M  +28   -7    printimages/wizard/wizard.cpp

https://commits.kde.org/kipi-plugins/394d186e9d8b34f20a591b52f2b790fed6e42435
Comment 3 null 2017-12-02 00:53:07 UTC
*** Bug 387506 has been marked as a duplicate of this bug. ***