Bug 319477 - Crash when changing advanced printer settings and canceling in printer dialog
Summary: Crash when changing advanced printer settings and canceling in printer dialog
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.16.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-07 16:59 UTC by Mister Ypsilon
Modified: 2014-01-05 03:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (15.68 KB, text/plain)
2014-01-05 03:56 UTC, JAMES
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mister Ypsilon 2013-05-07 16:59:30 UTC
Application: okular (0.16.2)
KDE Platform Version: 4.10.2 "release 1"
Qt Version: 4.8.4
Operating System: Linux 3.7.10-1.4-desktop x86_64
Distribution: "openSUSE 12.3 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
Steps to reproduce:
1. Print a document
2. In the printing dialog, select "Properties" and change to "Advanced" tab
3. Change any option and press cancel
4. Press "Properties" and "Cancel" again and repeat this. The third time you press "Properties" it will crash

- Unusual behavior I noticed:
If you change the option it will immediately be reset in the list if you press "OK" or click anywhere else. If you change the option and press "Cancel", the new setting will be shown the next time you click "Properties" again, though.

Additional info:
Not only happens with Okular, so I think it's a bug in the printing dialog

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fda96238780 (LWP 7591))]

Thread 3 (Thread 0x7fda80191700 (LWP 7598)):
#0  0x00007fda9117f964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fda93b0a62b in wait (time=18446744073709551615, this=0x29f3ff0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x29e3a80, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fda94af94d6 in QFileInfoGatherer::run (this=0x29e3a70) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007fda93b0a0cc in QThreadPrivate::start (arg=0x29e3a70) at thread/qthread_unix.cpp:338
#5  0x00007fda9117be0f in start_thread () from /lib64/libpthread.so.0
#6  0x00007fda932407dd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fda7dddd700 (LWP 7599)):
#0  0x00007fda9323787d in poll () from /lib64/libc.so.6
#1  0x00007fda8fc8aaa4 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fda8fc8abc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fda93c341f6 in QEventDispatcherGlib::processEvents (this=0x7fda700008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fda93c049ef in QEventLoop::processEvents (this=this@entry=0x7fda7dddcdd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fda93c04c78 in QEventLoop::exec (this=0x7fda7dddcdd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fda93b070f0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#7  0x00007fda93be51af in QInotifyFileSystemWatcherEngine::run (this=0x29f40f0) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007fda93b0a0cc in QThreadPrivate::start (arg=0x29f40f0) at thread/qthread_unix.cpp:338
#9  0x00007fda9117be0f in start_thread () from /lib64/libpthread.so.0
#10 0x00007fda932407dd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fda96238780 (LWP 7591)):
[KCrash Handler]
#6  QModelIndex (amodel=0x2b88700, this=0x7fff0d202730, adata=0x6c616d726f4e0000, acolumn=0, arow=<error reading variable: Cannot access memory at address 0x6c616d726f4e0004>) at ../../src/corelib/kernel/qabstractitemmodel.h:390
#7  createIndex (adata=0x6c616d726f4e0000, acolumn=0, arow=<error reading variable: Cannot access memory at address 0x6c616d726f4e0004>, this=0x2b88700) at ../../src/corelib/kernel/qabstractitemmodel.h:324
#8  QPPDOptionsModel::parent (this=0x2b88700, index=...) at dialogs/qprintdialog_unix.cpp:1174
#9  0x00007fda94b67e93 in parent (this=0x7fff0d2026d0) at ../../src/corelib/kernel/qabstractitemmodel.h:393
#10 mergeIndexes (indexes=...) at itemviews/qitemselectionmodel.cpp:828
#11 0x00007fda94b6de6f in QItemSelectionModelPrivate::_q_layoutChanged (this=0x2b8c1e0) at itemviews/qitemselectionmodel.cpp:900
#12 0x00007fda94b6e221 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:117
#13 QItemSelectionModel::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:96
#14 0x00007fda93c1b1af in QMetaObject::activate (sender=0x2b88700, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3548
#15 0x00007fda94aad60f in QPrintPropertiesDialog::selectPrinter (this=0x2b2d430) at dialogs/qprintdialog_unix.cpp:320
#16 0x00007fda94aad825 in QUnixPrintWidgetPrivate::_q_btnPropertiesClicked (this=0x29dc4b0) at dialogs/qprintdialog_unix.cpp:994
#17 0x00007fda93c1b1af in QMetaObject::activate (sender=0x29d0610, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff0d202b90) at kernel/qobject.cpp:3548
#18 0x00007fda94c72702 in QAbstractButton::clicked (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:220
#19 0x00007fda949c704e in QAbstractButtonPrivate::emitClicked (this=this@entry=0x29de210) at widgets/qabstractbutton.cpp:548
#20 0x00007fda949c7880 in QAbstractButtonPrivate::click (this=this@entry=0x29de210) at widgets/qabstractbutton.cpp:541
#21 0x00007fda949c7aec in QAbstractButton::mouseReleaseEvent (this=0x29d0610, e=0x7fff0d203430) at widgets/qabstractbutton.cpp:1123
#22 0x00007fda9465d149 in QWidget::event (this=0x29d0610, event=0x7fff0d203430) at kernel/qwidget.cpp:8375
#23 0x00007fda9460d86c in QApplicationPrivate::notify_helper (this=this@entry=0x231dcb0, receiver=receiver@entry=0x29d0610, e=e@entry=0x7fff0d203430) at kernel/qapplication.cpp:4562
#24 0x00007fda9461254b in QApplication::notify (this=<optimized out>, receiver=0x29d0610, e=0x7fff0d203430) at kernel/qapplication.cpp:4105
#25 0x00007fda95322146 in KApplication::notify (this=0x7fff0d205b90, receiver=0x29d0610, event=0x7fff0d203430) at /usr/src/debug/kdelibs-4.10.2/kdeui/kernel/kapplication.cpp:311
#26 0x00007fda93c05c9e in QCoreApplication::notifyInternal (this=0x7fff0d205b90, receiver=0x29d0610, event=0x7fff0d203430) at kernel/qcoreapplication.cpp:946
#27 0x00007fda9460e6ab in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#28 QApplicationPrivate::sendMouseEvent (receiver=0x29d0610, event=0x7fff0d203430, alienWidget=0x29d0610, nativeWidget=0x29d9320, buttonDown=0x7fda950e2268 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#29 0x00007fda94688e94 in QETWidget::translateMouseEvent (this=this@entry=0x29d9320, event=event@entry=0x7fff0d203ba0) at kernel/qapplication_x11.cpp:4527
#30 0x00007fda94687c21 in QApplication::x11ProcessEvent (this=0x7fff0d205b90, event=0x7fff0d203ba0) at kernel/qapplication_x11.cpp:3650
#31 0x00007fda946adfa2 in x11EventSourceDispatch (s=0x231bd00, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#32 0x00007fda8fc8a7d5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#33 0x00007fda8fc8ab08 in ?? () from /usr/lib64/libglib-2.0.so.0
#34 0x00007fda8fc8abc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#35 0x00007fda93c341f6 in QEventDispatcherGlib::processEvents (this=0x22f5ad0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#36 0x00007fda946adc1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#37 0x00007fda93c049ef in QEventLoop::processEvents (this=this@entry=0x7fff0d203f80, flags=...) at kernel/qeventloop.cpp:149
#38 0x00007fda93c04c78 in QEventLoop::exec (this=0x7fff0d203f80, flags=...) at kernel/qeventloop.cpp:204
#39 0x00007fda94ac19c8 in QDialog::exec (this=0x29d9320) at dialogs/qdialog.cpp:554
#40 0x00007fda86246415 in Okular::Part::slotPrint (this=0x248eab0) at /usr/src/debug/okular-4.10.2/part.cpp:2500
#41 0x00007fda86246f0a in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /usr/src/debug/okular-4.10.2/build/part.moc:232
#42 Okular::Part::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/okular-4.10.2/build/part.moc:161
#43 0x00007fda93c1b1af in QMetaObject::activate (sender=0x2684910, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff0d2041b0) at kernel/qobject.cpp:3548
#44 0x00007fda94607662 in QAction::triggered (this=this@entry=0x2684910, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#45 0x00007fda94607850 in QAction::activate (this=0x2684910, event=<optimized out>) at kernel/qaction.cpp:1257
#46 0x00007fda94a416e3 in QMenuPrivate::activateCausedStack (this=this@entry=0x270b690, causedStack=..., action=action@entry=0x2684910, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1038
#47 0x00007fda94a47ac9 in QMenuPrivate::activateAction (this=0x270b690, action=0x2684910, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1130
#48 0x00007fda953db1e0 in KMenu::mouseReleaseEvent (this=0x270d3e0, e=0x7fff0d204d50) at /usr/src/debug/kdelibs-4.10.2/kdeui/widgets/kmenu.cpp:464
#49 0x00007fda9465d149 in QWidget::event (this=0x270d3e0, event=0x7fff0d204d50) at kernel/qwidget.cpp:8375
#50 0x00007fda94a48d7b in QMenu::event (this=0x270d3e0, e=0x7fff0d204d50) at widgets/qmenu.cpp:2481
#51 0x00007fda9460d86c in QApplicationPrivate::notify_helper (this=this@entry=0x231dcb0, receiver=receiver@entry=0x270d3e0, e=e@entry=0x7fff0d204d50) at kernel/qapplication.cpp:4562
#52 0x00007fda9461254b in QApplication::notify (this=<optimized out>, receiver=0x270d3e0, e=0x7fff0d204d50) at kernel/qapplication.cpp:4105
#53 0x00007fda95322146 in KApplication::notify (this=0x7fff0d205b90, receiver=0x270d3e0, event=0x7fff0d204d50) at /usr/src/debug/kdelibs-4.10.2/kdeui/kernel/kapplication.cpp:311
#54 0x00007fda93c05c9e in QCoreApplication::notifyInternal (this=0x7fff0d205b90, receiver=0x270d3e0, event=0x7fff0d204d50) at kernel/qcoreapplication.cpp:946
#55 0x00007fda9460e6ab in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:231
#56 QApplicationPrivate::sendMouseEvent (receiver=0x270d3e0, event=0x7fff0d204d50, alienWidget=0x0, nativeWidget=0x270d3e0, buttonDown=0x7fda950e2268 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#57 0x00007fda94688d5c in QETWidget::translateMouseEvent (this=this@entry=0x270d3e0, event=event@entry=0x7fff0d2054c0) at kernel/qapplication_x11.cpp:4461
#58 0x00007fda94687c21 in QApplication::x11ProcessEvent (this=0x7fff0d205b90, event=0x7fff0d2054c0) at kernel/qapplication_x11.cpp:3650
#59 0x00007fda946adfa2 in x11EventSourceDispatch (s=0x231bd00, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#60 0x00007fda8fc8a7d5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#61 0x00007fda8fc8ab08 in ?? () from /usr/lib64/libglib-2.0.so.0
#62 0x00007fda8fc8abc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#63 0x00007fda93c341f6 in QEventDispatcherGlib::processEvents (this=0x22f5ad0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#64 0x00007fda946adc1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#65 0x00007fda93c049ef in QEventLoop::processEvents (this=this@entry=0x7fff0d205890, flags=...) at kernel/qeventloop.cpp:149
#66 0x00007fda93c04c78 in QEventLoop::exec (this=0x7fff0d205890, flags=...) at kernel/qeventloop.cpp:204
#67 0x00007fda93c09918 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#68 0x000000000040895e in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-4.10.2/shell/main.cpp:94

Possible duplicates by query: bug 257154.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2013-05-07 20:54:41 UTC
The crash is deep inside Qt printing dialog, not much we can do here really. There are various reports upstream at the Qt bug site, unfortunately seems there's not much action around them :-/
Comment 2 JAMES 2014-01-05 03:56:34 UTC
Created attachment 84458 [details]
New crash information added by DrKonqi

okular (0.14.3) on KDE Platform 4.8.5 (4.8.5) using Qt 4.8.1

- What I was doing when the application crashed:

I was trying to find out how to change a printer option when Ocular crashed.
Ubuntu 12.04
Ocular parameters not modified, it was my first use of Ocular.

The only difference is that I do not have this problem in other programs that use the Epson Stylus NX305 printer.

I used another document viewer to print out the .PDF document without any problems.

-- Backtrace (Reduced):
#6  QModelIndex (amodel=0x243f5d0, this=0x7fff1fde9e30, adata=0x41, acolumn=0, arow=<error reading variable: Cannot access memory at address 0x45>) at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:390
#7  createIndex (adata=0x41, acolumn=0, arow=<error reading variable: Cannot access memory at address 0x45>, this=0x243f5d0) at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:324
#8  QPPDOptionsModel::parent (this=0x243f5d0, index=...) at dialogs/qprintdialog_unix.cpp:1148
#9  0x00007f54af4cf50b in parent (this=0x7fff1fde9dd0) at ../../include/QtCore/../../src/corelib/kernel/qabstractitemmodel.h:393
#10 mergeIndexes (indexes=...) at itemviews/qitemselectionmodel.cpp:828