Bug 233659 - Crash when closing Okular after "Save Copy As ..."
Summary: Crash when closing Okular after "Save Copy As ..."
Status: RESOLVED DUPLICATE of bug 213008
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-07 23:53 UTC by Dominik
Modified: 2010-05-22 22:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik 2010-04-07 23:53:40 UTC
Application that crashed: okular
Version of the application: 0.9.5
KDE Version: 4.3.5 (KDE 4.3.5)
Qt Version: 4.6.2
Operating System: Linux 2.6.31-gentoo-r10-04 x86_64

What I was doing when the application crashed:
All details in title

 -- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f67a8c51740 (LWP 20228))]

Thread 3 (Thread 0x7f6797958910 (LWP 20243)):
#0  0x00007f67a66f441d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f678f25d3ae in metronom_sync_loop (this=0xd64ed0) at metronom.c:851
#2  0x00007f67a66f02a7 in start_thread () from /lib/libpthread.so.0
#3  0x00007f67a4f816ad in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f677e9e6910 (LWP 20263)):
#0  0x00007f67a4f78896 in poll () from /lib/libc.so.6
#1  0x00007f67a0333b5a in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f67a0335770 in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#3  0x00007f677f7fc7c3 in xv_restore_port_attributes (this_gen=<value optimized out>) at video_out_xcbxv.c:1049
#4  xv_dispose (this_gen=<value optimized out>) at video_out_xcbxv.c:1070
#5  0x00007f678f26a58c in vo_exit (this_gen=<value optimized out>) at video_out.c:1615
#6  0x00007f678f4ee481 in ~VideoWidgetXT (this=0xd6fcb0, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>)
    at /var/tmp/portage/media-sound/phonon-4.3.80-r1/work/phonon-4.3.80/xine/videowidget.cpp:241
#7  0x00007f678f4ba991 in ~QExplicitlySharedDataPointer (this=0xd7d1d0, __in_chrg=<value optimized out>) at /usr/include/qt4/QtCore/qshareddata.h:159
#8  QList<QExplicitlySharedDataPointer<Phonon::Xine::SharedData> >::node_destruct (this=0xd7d1d0, __in_chrg=<value optimized out>) at /usr/include/qt4/QtCore/qlist.h:402
#9  QList<QExplicitlySharedDataPointer<Phonon::Xine::SharedData> >::free (this=0xd7d1d0, __in_chrg=<value optimized out>) at /usr/include/qt4/QtCore/qlist.h:646
#10 ~QList (this=0xd7d1d0, __in_chrg=<value optimized out>) at /usr/include/qt4/QtCore/qlist.h:621
#11 ~KeepReference (this=0xd7d1d0, __in_chrg=<value optimized out>) at /var/tmp/portage/media-sound/phonon-4.3.80-r1/work/phonon-4.3.80/xine/keepreference.h:45
#12 0x00007f67a6ab0ba5 in QObject::event (this=0xd7d1d0, e=0x1) at kernel/qobject.cpp:1223
#13 0x00007f67a5b6b64d in QApplicationPrivate::notify_helper (this=0x62b5b0, receiver=0xd7d1d0, e=0x15c5480) at kernel/qapplication.cpp:4300
#14 0x00007f67a5b6e444 in QApplication::notify (this=0x7fff48e91fa0, receiver=0xd7d1d0, e=0x15c5480) at kernel/qapplication.cpp:3704
#15 0x00007f67a798392b in KApplication::notify (this=0x7fff48e91fa0, receiver=0xd7d1d0, event=0x15c5480)
    at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kdeui/kernel/kapplication.cpp:302
#16 0x00007f67a6a97d8b in QCoreApplication::notifyInternal (this=0x7fff48e91fa0, receiver=0xd7d1d0, event=0x15c5480) at kernel/qcoreapplication.cpp:704
#17 0x00007f67a6a99039 in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x1613200) at kernel/qcoreapplication.h:215
#18 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1613200) at kernel/qcoreapplication.cpp:1345
#19 0x00007f67a6ac7063 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:220
#20 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#21 0x00007f67a24afead in ?? () from /usr/lib/libglib-2.0.so.0
#22 0x00007f67a24b1c85 in ?? () from /usr/lib/libglib-2.0.so.0
#23 0x00007f67a24b1dcc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#24 0x00007f67a6ac6c1c in QEventDispatcherGlib::processEvents (this=0x1601e70, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#25 0x00007f67a6a969b2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#26 0x00007f67a6a96d84 in QEventLoop::exec (this=0x7f677e9e5ff0, flags=...) at kernel/qeventloop.cpp:201
#27 0x00007f67a697f0f7 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#28 0x00007f678f4bca4c in Phonon::Xine::XineThread::run (this=0x1611720) at /var/tmp/portage/media-sound/phonon-4.3.80-r1/work/phonon-4.3.80/xine/xinethread.cpp:143
#29 0x00007f67a6981eb5 in QThreadPrivate::start (arg=0x1611720) at thread/qthread_unix.cpp:248
#30 0x00007f67a66f02a7 in start_thread () from /lib/libpthread.so.0
#31 0x00007f67a4f816ad in clone () from /lib/libc.so.6
#32 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f67a8c51740 (LWP 20228)):
[KCrash Handler]
#5  QAbstractButton::isChecked (this=0x69007600650072) at widgets/qabstractbutton.cpp:769
#6  0x00007f678fbf5b76 in ~KFileAudioPreview (this=0xc1c720, __in_chrg=<value optimized out>)
    at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/interfaces/kmediaplayer/kfileaudiopreview/kfileaudiopreview.cpp:105
#7  0x00007f67a6ab0425 in QObjectPrivate::deleteChildren (this=0xb8a4a0) at kernel/qobject.cpp:1978
#8  0x00007f67a5bcca91 in ~QWidget (this=0xb8a470, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1469
#9  0x00007f67a6026831 in ~QStackedWidget (this=0x69007600650072, __in_chrg=<value optimized out>) at widgets/qstackedwidget.cpp:151
#10 0x00007f67a6ab0425 in QObjectPrivate::deleteChildren (this=0xb89fe0) at kernel/qobject.cpp:1978
#11 0x00007f67a5bcca91 in ~QWidget (this=0xb89f80, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1469
#12 0x00007f67a855a316 in ~KFileMetaPreview (this=0xb89f80, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kio/kfile/kfilemetapreview.cpp:36
#13 0x00007f679f7048b9 in ~Private (this=0xada070, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kfile/kdiroperator.cpp:346
#14 0x00007f679f704b4f in ~KDirOperator (this=0xadac50, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kfile/kdiroperator.cpp:423
#15 0x00007f679f721f9d in ~KFileWidgetPrivate (this=0xa73690, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kfile/kfilewidget.cpp:107
#16 ~KFileWidget (this=0xa73690, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kfile/kfilewidget.cpp:624
#17 0x00007f67a6ab0425 in QObjectPrivate::deleteChildren (this=0xabd500) at kernel/qobject.cpp:1978
#18 0x00007f67a5bcca91 in ~QWidget (this=0x7fff48e90040, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1469
#19 0x00007f67a85536ca in ~KFileDialog (this=0x7fff48e90040, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kio/kfile/kfiledialog.cpp:290
#20 0x00007f67a6ab0425 in QObjectPrivate::deleteChildren (this=0x7137b0) at kernel/qobject.cpp:1978
#21 0x00007f67a5bcca91 in ~QWidget (this=0x713750, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1469
#22 0x00007f679d8bb652 in ?? () from /usr/lib64/kde4/okularpart.so
#23 0x00007f67a88526c7 in ~Part (this=0x706090, __vtt_parm=0x7f679dae94f0, __in_chrg=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.3.5/work/kdelibs-4.3.5/kparts/part.cpp:208
#24 0x00007f679d83a7a0 in ?? () from /usr/lib64/kde4/okularpart.so
#25 0x000000000040b625 in _start ()

Reported using DrKonqi
Comment 1 Pino Toscano 2010-04-08 00:05:13 UTC
(In reply to comment #0)
> What I was doing when the application crashed:
> All details in title

Not really; did you have the preview active in the file saving dialog? If so, what if you disable it?
Comment 2 Dominik 2010-04-08 00:56:08 UTC
On Thu,  8 Apr 2010 00:05:18 +0200 (CEST)
Pino Toscano <pino@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=233659
> 
> 
> 
> 
> 
> --- Comment #1 from Pino Toscano <pino kde org>  2010-04-08 00:05:13
> --- (In reply to comment #0)
> > What I was doing when the application crashed:
> > All details in title
> 
> Not really; did you have the preview active in the file saving
> dialog? If so, what if you disable it?
> 

Sorry, I was in a hurry when I filed the bug, but yet would not want to
miss the opportunity to inform the bug tracker of a problem now that
it's so easy with the automatic bug tracking mechanism in KDE —
particularly as it was the first one I brought through (I had to
compile a lot with -ggdb and splitdebug on to generate useful stack
traces) ... and on top of that: without some routine you just don't know
what really is useful information to pass along.

I tried to reproduce the failure with and without preview on: 

The problem does not occur systematically, not even with preview on;
which leads me to suspect that it has to do with concurrency (maybe
a race condition), and that it may happen if I close Okular while it is
still saving the PDF copy... the files that crashed (3 in number) were
all downloaded VISA account reports — that might be another reason
(something foul in the PS-code? Still, the document showed up
flawlessly, and Okular only crashed immediately after closing the
frame).

I have preview off now and will add to the bug report if crashes still
occur.

Don't hesitate to ask more questions to pinpoint the problem.
Comment 3 Dario Andres 2010-04-09 15:10:58 UTC
BTW, this is probably bug 213008; so with the Previews disabled it shouldn't happen...
Comment 4 Pino Toscano 2010-05-22 22:23:29 UTC
Right, thanks Dario!

*** This bug has been marked as a duplicate of bug 213008 ***