[Okular-devel] [Bug 309734] New: Okular crashes on exit when print preview was shown on attached PDF

karaluh karaluh at karaluh.pl
Thu Nov 8 08:18:37 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=309734

            Bug ID: 309734
          Severity: crash
           Version: unspecified
          Priority: NOR
          Assignee: okular-devel at kde.org
           Summary: Okular crashes on exit when print preview was shown on
                    attached PDF
    Classification: Unclassified
                OS: Linux
          Reporter: karaluh at karaluh.pl
          Hardware: Ubuntu Packages
            Status: UNCONFIRMED
         Component: general
           Product: okular

Application: okular (0.15.3)
KDE Platform Version: 4.9.3
Qt Version: 4.8.3
Operating System: Linux 3.5.0-18-generic i686
Distribution: Ubuntu 12.10

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

Open attached testcase, open print preview, close it, and then Okular. From the
comments it looks like it is a duplicate of
https://bugs.kde.org/show_bug.cgi?id=270602

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb4e5a740 (LWP 21211))]

Thread 2 (Thread 0xb0ea0b40 (LWP 21245)):
#0  0xad504b29 in refs_compact (mem=0xafb07aac, pre=0x9f6d71e0,
dpre=0x9f6d71e0, size=39992) at ./psi/igcref.c:688
#1  0xad5045bc in gc_objects_compact (cp=0x9f9fe390, gcst=<optimized out>) at
./psi/igc.c:1346
#2  gs_gc_reclaim (pspaces=0xafbc19d0, global=0) at ./psi/igc.c:475
#3  0xad577dda in context_reclaim (pspaces=0xafbc19d0, global=0) at
./psi/zcontext.c:280
#4  0xad4cfae7 in gs_vmreclaim (global=0, dmem=0xafbc19cc) at
./psi/ireclaim.c:155
#5  ireclaim (dmem=0xafbc19cc, space=-1) at ./psi/ireclaim.c:77
#6  0xad4ca99a in interp_reclaim (pi_ctx_p=pi_ctx_p at entry=0xafb826dc,
space=space at entry=-1) at ./psi/interp.c:432
#7  0xad4cd286 in gs_call_interp (perror_object=0xafb826d0,
pexit_code=0xb0ea000c, user_errors=0, pref=0xafb826d0, pi_ctx_p=0xafb826dc) at
./psi/interp.c:494
#8  gs_interpret (pi_ctx_p=pi_ctx_p at entry=0xafb826dc,
pref=pref at entry=0xb0e9ff88, user_errors=user_errors at entry=0,
pexit_code=pexit_code at entry=0xb0ea000c,
perror_object=perror_object at entry=0xafb826d0) at ./psi/interp.c:459
#9  0xad4c0446 in gs_main_interpret (minst=minst at entry=0xafb82688,
pref=pref at entry=0xb0e9ff88, user_errors=user_errors at entry=0,
pexit_code=pexit_code at entry=0xb0ea000c,
perror_object=perror_object at entry=0xafb826d0) at ./psi/imain.c:241
#10 0xad4c1295 in gs_main_run_string_continue (minst=0xafb82688,
str=str at entry=0xaf8151a0 <buf.3338> "Td\n(!)\n[50.7375\n0] Tj\n1526 393
Td\n(3)\n[50.7375\n0] Tj\n1577 393 Td\n(\\202)\n[50.7375\n0] Tj\n1628 393
Td\n(\\213)\n[50.7375\n0] Tj\n1679 393 Td\n(_)\n[50.7375\n0] Tj\n1730 393
Td\n(W)\n[50.7375\n0] Tj\n1781 393 Td\n(<)\n["..., length=length at entry=32768,
user_errors=user_errors at entry=0, pexit_code=pexit_code at entry=0xb0ea000c,
perror_object=perror_object at entry=0xafb826d0) at ./psi/imain.c:596
#11 0xad4c5137 in gsapi_run_string_continue (lib=lib at entry=0xafba3ad8,
str=str at entry=0xaf8151a0 <buf.3338> "Td\n(!)\n[50.7375\n0] Tj\n1526 393
Td\n(3)\n[50.7375\n0] Tj\n1577 393 Td\n(\\202)\n[50.7375\n0] Tj\n1628 393
Td\n(\\213)\n[50.7375\n0] Tj\n1679 393 Td\n(_)\n[50.7375\n0] Tj\n1730 393
Td\n(W)\n[50.7375\n0] Tj\n1781 393 Td\n(<)\n["..., length=32768,
user_errors=user_errors at entry=0, pexit_code=pexit_code at entry=0xb0ea000c) at
./psi/iapi.c:204
#12 0xaf809350 in spectre_gs_process (gs=gs at entry=0xafb81758,
filename=0x8f4f088 "/tmp/kde-karol/okularN21211.ps", x=x at entry=0, y=y at entry=0,
begin=41859, end=1350600) at spectre-gs.c:127
#13 0xaf809807 in spectre_gs_send_page (gs=gs at entry=0xafb81758, doc=0x8f4fff0,
page_index=page_index at entry=0, x=x at entry=0, y=y at entry=0) at spectre-gs.c:273
#14 0xaf80a563 in spectre_device_render (device=device at entry=0xafb66e28,
page=0, rc=rc at entry=0x8f515e8, x=x at entry=0, y=y at entry=0, width=-1346884480,
height=<optimized out>, page_data=page_data at entry=0xb0ea0200,
row_length=row_length at entry=0xb0ea0204) at spectre-device.c:288
#15 0xaf80aa3d in spectre_page_render (page=0x8f66d80, rc=0x8f515e8,
page_data=0xb0ea0200, row_length=0xb0ea0204) at spectre-page.c:164
#16 0xafe872c9 in GSRendererThread::run (this=0x8eacca8) at
../../../generators/spectre/rendererthread.cpp:71
#17 0xb6075a58 in QThreadPrivate::start (arg=0x8eacca8) at
thread/qthread_unix.cpp:338
#18 0xb5582d4c in start_thread (arg=0xb0ea0b40) at pthread_create.c:308
#19 0xb5de9d3e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb4e5a740 (LWP 21211)):
[KCrash Handler]
#7  QWidget::~QWidget (this=0xbf977074, __in_chrg=<optimized out>) at
kernel/qwidget.cpp:1595
#8  0xb67485c2 in QWidget::~QWidget (this=0xbf977074, __in_chrg=<optimized
out>) at kernel/qwidget.cpp:1701
#9  0xb619ca59 in QObjectPrivate::deleteChildren (this=0x8b7b120) at
kernel/qobject.cpp:1908
#10 0xb6748258 in QWidget::~QWidget (this=0x8b56ff0, __in_chrg=<optimized out>)
at kernel/qwidget.cpp:1677
#11 0xb261acf0 in Sidebar::~Sidebar (this=0x8b56ff0, __in_chrg=<optimized out>)
at ../ui/sidebar.cpp:481
#12 0xb261ad32 in Sidebar::~Sidebar (this=0x8b56ff0, __in_chrg=<optimized out>)
at ../ui/sidebar.cpp:484
#13 0xb7777b6b in KParts::Part::~Part (this=this at entry=0x8b10290,
__vtt_parm=__vtt_parm at entry=0xb2651e6c <VTT for Okular::Part+12>,
__in_chrg=<optimized out>) at ../../kparts/part.cpp:209
#14 0xb7778f1c in KParts::ReadOnlyPart::~ReadOnlyPart
(this=this at entry=0x8b10290, __vtt_parm=__vtt_parm at entry=0xb2651e68 <VTT for
Okular::Part+8>, __in_chrg=<optimized out>) at ../../kparts/part.cpp:460
#15 0xb7779070 in KParts::ReadWritePart::~ReadWritePart (this=0x8b10290,
__vtt_parm=0xb2651e64 <VTT for Okular::Part+4>, __in_chrg=<optimized out>) at
../../kparts/part.cpp:773
#16 0xb25a6afc in Okular::Part::~Part (this=this at entry=0x8b10290,
__in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../part.cpp:800
#17 0xb25a6bb2 in Okular::Part::~Part (this=0x8b10290, __in_chrg=<optimized
out>, __vtt_parm=<optimized out>) at ../part.cpp:833
#18 0xb619ca59 in QObjectPrivate::deleteChildren (this=0x8afbd10) at
kernel/qobject.cpp:1908
#19 0xb6748258 in QWidget::~QWidget (this=0x8ae3c00, __in_chrg=<optimized out>)
at kernel/qwidget.cpp:1677
#20 0xb6b79c7f in QMainWindow::~QMainWindow (this=0x8ae3c00,
__in_chrg=<optimized out>) at widgets/qmainwindow.cpp:388
#21 0xb733e594 in KMainWindow::~KMainWindow (this=0x8ae3c00,
__in_chrg=<optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:467
#22 0xb738571c in KXmlGuiWindow::~KXmlGuiWindow (this=0x8ae3c00,
__vtt_parm=0x8052728 <VTT for Shell+8>, __in_chrg=<optimized out>) at
../../kdeui/xmlgui/kxmlguiwindow.cpp:118
#23 0xb7783019 in KParts::MainWindow::~MainWindow (this=0x8ae3c00,
__vtt_parm=0x8052724 <VTT for Shell+4>, __in_chrg=<optimized out>) at
../../kparts/mainwindow.cpp:76
#24 0x080509e8 in Shell::~Shell (this=0x8ae3c00, __in_chrg=<optimized out>,
__vtt_parm=<optimized out>) at ../../shell/shell.cpp:123
#25 0x08050a80 in Shell::~Shell (this=0x8ae3c00, __in_chrg=<optimized out>,
__vtt_parm=<optimized out>) at ../../shell/shell.cpp:133
#26 0xb619c783 in qDeleteInEventHandler (o=o at entry=0x8ae3c00) at
kernel/qobject.cpp:4277
#27 0xb619ef10 in QObject::event (this=0x8ae3c00, e=0x8f28b48) at
kernel/qobject.cpp:1176
#28 0xb674df4a in QWidget::event (this=0x8ae3c00, event=0x8f28b48) at
kernel/qwidget.cpp:8830
#29 0xb6b7c05c in QMainWindow::event (this=0x8ae3c00, event=0x8f28b48) at
widgets/qmainwindow.cpp:1478
#30 0xb733e284 in KMainWindow::event (this=0x8ae3c00, ev=0x8f28b48) at
../../kdeui/widgets/kmainwindow.cpp:1084
#31 0xb7385262 in KXmlGuiWindow::event (this=0x8ae3c00, ev=0x8f28b48) at
../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#32 0xb66f539c in QApplicationPrivate::notify_helper (this=0x89dbd70,
receiver=0x8ae3c00, e=0x8f28b48) at kernel/qapplication.cpp:4562
#33 0xb66f9e54 in QApplication::notify (this=0x89dbd70, receiver=0x8ae3c00,
e=0x8f28b48) at kernel/qapplication.cpp:4423
#34 0xb7268e91 in KApplication::notify (this=0xbf978254, receiver=0x8ae3c00,
event=0x8f28b48) at ../../kdeui/kernel/kapplication.cpp:311
#35 0xb618878e in QCoreApplication::notifyInternal (this=0xbf978254,
receiver=0x8ae3c00, event=0x8f28b48) at kernel/qcoreapplication.cpp:915
#36 0xb618c97d in sendEvent (event=<optimized out>, receiver=<optimized out>)
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#37 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x89aa370) at kernel/qcoreapplication.cpp:1539
#38 0xb618cc0c in QCoreApplication::sendPostedEvents (receiver=0x0,
event_type=0) at kernel/qcoreapplication.cpp:1432
#39 0xb61ba804 in sendPostedEvents () at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#40 postEventSourceDispatch (s=s at entry=0x89cf5b0) at
kernel/qeventdispatcher_glib.cpp:279
#41 0xb54ad9e3 in g_main_dispatch (context=0x89cfdb0) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:2715
#42 g_main_context_dispatch (context=context at entry=0x89cfdb0) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:3219
#43 0xb54add80 in g_main_context_iterate (context=context at entry=0x89cfdb0,
block=block at entry=1, dispatch=dispatch at entry=1, self=<optimized out>) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:3290
#44 0xb54ade61 in g_main_context_iteration (context=0x89cfdb0, may_block=1) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:3351
#45 0xb61ba981 in QEventDispatcherGlib::processEvents (this=0x89aaef0,
flags=...) at kernel/qeventdispatcher_glib.cpp:424
#46 0xb67ab9aa in QGuiEventDispatcherGlib::processEvents (this=0x89aaef0,
flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#47 0xb618726c in QEventLoop::processEvents (this=this at entry=0xbf976dc0,
flags=...) at kernel/qeventloop.cpp:149
#48 0xb6187561 in QEventLoop::exec (this=0xbf976dc0, flags=...) at
kernel/qeventloop.cpp:204
#49 0xb24e5686 in Okular::Document::closeDocument (this=0x8ecac08) at
../core/document.cpp:1915
#50 0xb25a65e3 in closeUrl (this=0x8eae9b0, promptToSave=<optimized out>) at
../part.cpp:1412
#51 Okular::Part::closeUrl (this=0x8eae9b0, promptToSave=false) at
../part.cpp:1360
#52 0xb25a6b20 in Okular::Part::~Part (this=this at entry=0x8eae9b0,
__in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../part.cpp:806
#53 0xb25a6bb2 in Okular::Part::~Part (this=0x8eae9b0, __in_chrg=<optimized
out>, __vtt_parm=<optimized out>) at ../part.cpp:833
#54 0xb619ca59 in QObjectPrivate::deleteChildren (this=0x8eab710) at
kernel/qobject.cpp:1908
#55 0xb6748258 in QWidget::~QWidget (this=0xbf977074, __in_chrg=<optimized
out>) at kernel/qwidget.cpp:1677
#56 0xb6c35579 in QDialog::~QDialog (this=0xbf977074, __in_chrg=<optimized
out>) at dialogs/qdialog.cpp:318
#57 0xb71b15f4 in KDialog::~KDialog (this=0xbf977074, __in_chrg=<optimized
out>) at ../../kdeui/dialogs/kdialog.cpp:201
#58 0xb25ca5e1 in Okular::FilePrinterPreview::~FilePrinterPreview
(this=0xbf977074, __in_chrg=<optimized out>) at
../ui/fileprinterpreview.cpp:137
#59 0xb259b153 in Okular::Part::slotPrintPreview (this=this at entry=0x8b10290) at
../part.cpp:2195
#60 0xb25a790d in qt_static_metacall (_a=0xbf9771d8, _id=11, _o=0x8b10290,
_c=<optimized out>) at ./part.moc:180
#61 Okular::Part::qt_static_metacall (_o=0x8b10290,
_c=QMetaObject::InvokeMetaMethod, _id=11, _a=0xbf9771d8) at ./part.moc:159
#62 0xb61a0ed6 in QMetaObject::activate (sender=0x8c80120, m=0xb70693b8
<QAction::staticMetaObject>, local_signal_index=1, argv=0xbf9771d8) at
kernel/qobject.cpp:3547
#63 0xb66ee10d in QAction::triggered (this=this at entry=0x8c80120, _t1=false) at
.moc/release-shared/moc_qaction.cpp:277
#64 0xb66ee3ac in QAction::activate (this=0x8c80120, event=QAction::Trigger) at
kernel/qaction.cpp:1257
#65 0xb6ba0225 in QMenuPrivate::activateCausedStack (this=0x8cd3c28,
causedStack=..., action=0x8c80120, action_e=QAction::Trigger, self=true) at
widgets/qmenu.cpp:1028
#66 0xb6ba7326 in QMenuPrivate::activateAction (this=0x8cd3c28,
action=0x8c80120, action_e=QAction::Trigger, self=self at entry=true) at
widgets/qmenu.cpp:1120
#67 0xb6ba8275 in QMenu::mouseReleaseEvent (this=0x8cb95f8, e=0xbf977a64) at
widgets/qmenu.cpp:2360
#68 0xb7340f8c in KMenu::mouseReleaseEvent (this=0x8cb95f8, e=0xbf977a64) at
../../kdeui/widgets/kmenu.cpp:464
#69 0xb674e6df in QWidget::event (this=0x8cb95f8, event=0xbf977a64) at
kernel/qwidget.cpp:8371
#70 0xb6ba876c in QMenu::event (this=0x8cb95f8, e=0xbf977a64) at
widgets/qmenu.cpp:2469
#71 0xb66f539c in QApplicationPrivate::notify_helper (this=0x89dbd70,
receiver=0x8cb95f8, e=0xbf977a64) at kernel/qapplication.cpp:4562
#72 0xb66fa892 in QApplication::notify (this=0x89dbd70, receiver=0x8cb95f8,
e=0xbf977a64) at kernel/qapplication.cpp:4105
#73 0xb7268e91 in KApplication::notify (this=0xbf978254, receiver=0x8cb95f8,
event=0xbf977a64) at ../../kdeui/kernel/kapplication.cpp:311
#74 0xb618878e in QCoreApplication::notifyInternal (this=0xbf978254,
receiver=0x8cb95f8, event=0xbf977a64) at kernel/qcoreapplication.cpp:915
#75 0xb66f6206 in sendEvent (event=<optimized out>, receiver=<optimized out>)
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#76 QApplicationPrivate::sendMouseEvent (receiver=0x8cb95f8, event=0xbf977a64,
alienWidget=0x0, nativeWidget=0x8cb95f8, buttonDown=0xb7086d14
<qt_button_down>, lastMouseReceiver=..., spontaneous=true) at
kernel/qapplication.cpp:3173
#77 0xb678191f in QETWidget::translateMouseEvent (this=0x8cb95f8,
event=0xbf977e8c) at kernel/qapplication_x11.cpp:4556
#78 0xb6780705 in QApplication::x11ProcessEvent (this=0xbf978254,
event=0xbf977e8c) at kernel/qapplication_x11.cpp:3737
#79 0xb67abdc4 in x11EventSourceDispatch (s=s at entry=0x89cf7c0, callback=0x0,
user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#80 0xb54ad9e3 in g_main_dispatch (context=0x89cfdb0) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:2715
#81 g_main_context_dispatch (context=context at entry=0x89cfdb0) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:3219
#82 0xb54add80 in g_main_context_iterate (context=context at entry=0x89cfdb0,
block=block at entry=1, dispatch=dispatch at entry=1, self=<optimized out>) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:3290
#83 0xb54ade61 in g_main_context_iteration (context=0x89cfdb0, may_block=1) at
/build/buildd/glib2.0-2.34.1/./glib/gmain.c:3351
#84 0xb61ba981 in QEventDispatcherGlib::processEvents (this=0x89aaef0,
flags=...) at kernel/qeventdispatcher_glib.cpp:424
#85 0xb67ab9aa in QGuiEventDispatcherGlib::processEvents (this=0x89aaef0,
flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#86 0xb618726c in QEventLoop::processEvents (this=this at entry=0xbf978188,
flags=...) at kernel/qeventloop.cpp:149
#87 0xb6187561 in QEventLoop::exec (this=0xbf978188, flags=...) at
kernel/qeventloop.cpp:204
#88 0xb618ccba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#89 0xb66f2fc4 in QApplication::exec () at kernel/qapplication.cpp:3823
#90 0x0804df96 in main (argc=6, argv=0xbf9783e4) at ../../shell/main.cpp:85

This bug may be a duplicate of or related to bug 270602.

Possible duplicates by query: bug 270602.

Reported using DrKonqi

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list