Bug 396783 - Okular crashes when restoring session if the file has been deleted
Summary: Okular crashes when restoring session if the file has been deleted
Status: RESOLVED DUPLICATE of bug 395765
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.4.3
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-07-23 07:13 UTC by Mayeul C.
Modified: 2018-10-11 14:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mayeul C. 2018-07-23 07:13:24 UTC
Application: okular (1.4.3)

Qt Version: 5.11.1
Frameworks Version: 5.48.0
Operating System: Linux 4.17.8-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
Just booting my system.

My session is set to restore previously open applications. Okular was open last time I closed it, with a temporary document file open (a pdf downloaded and opened from Firefox).

Okular displays a dialog box stating it can't open the file, and apparently crashes (Dr Konqui pops up) when clicking OK.

- Expected behaviour:
Okular should not crash when pressing OK.
Alternatively, Okular could make backup copies of the opened files when saving the session (this could be done for all documents from the moment they are opened, like libreoffice). I am not sure what would be the preffered way of handling large files, though.

The crash can be reproduced every time.

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

Thread 4 (Thread 0x7effe6930700 (LWP 1201)):
#0  0x00007f000563affc in pthread_cond_wait@@GLIBC_2.3.2 () at /usr/lib/libpthread.so.0
#1  0x00007effe74fa124 in  () at /usr/lib/dri/i965_dri.so
#2  0x00007effe74f9e18 in  () at /usr/lib/dri/i965_dri.so
#3  0x00007f0005635075 in start_thread () at /usr/lib/libpthread.so.0
#4  0x00007f00086a853f in clone () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7efff0f19700 (LWP 1166)):
#0  0x00007f0008fb9f54 in  () at /usr/lib/libQt5Core.so.5
#1  0x00007f0003066a49 in g_main_context_prepare () at /usr/lib/libglib-2.0.so.0
#2  0x00007f000306744e in  () at /usr/lib/libglib-2.0.so.0
#3  0x00007f000306763e in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#4  0x00007f0008fba054 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#5  0x00007f0008f6594c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#6  0x00007f0008daea99 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#7  0x00007f000940a976 in  () at /usr/lib/libQt5DBus.so.5
#8  0x00007f0008db8b45 in  () at /usr/lib/libQt5Core.so.5
#9  0x00007f0005635075 in start_thread () at /usr/lib/libpthread.so.0
#10 0x00007f00086a853f in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7efffab74700 (LWP 1152)):
#0  0x00007f000869dea9 in poll () at /usr/lib/libc.so.6
#1  0x00007f0005a5b180 in  () at /usr/lib/libxcb.so.1
#2  0x00007f0005a5ce4b in xcb_wait_for_event () at /usr/lib/libxcb.so.1
#3  0x00007efffd92322a in  () at /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f0008db8b45 in  () at /usr/lib/libQt5Core.so.5
#5  0x00007f0005635075 in start_thread () at /usr/lib/libpthread.so.0
#6  0x00007f00086a853f in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f000c9a3f80 (LWP 1141)):
[KCrash Handler]
#6  0x00007f000adc4c7a in  () at /usr/lib/libKF5ConfigCore.so.5
#7  0x00007f000adc9fbb in  () at /usr/lib/libKF5ConfigCore.so.5
#8  0x00007f000adbe2f9 in  () at /usr/lib/libKF5ConfigCore.so.5
#9  0x00007f000add2f15 in KConfigGroup::readEntry(char const*, QVariant const&) const () at /usr/lib/libKF5ConfigCore.so.5
#10 0x0000562ebbce4dbe in  ()
#11 0x00007f000baf5ca0 in KMainWindow::readPropertiesInternal(KConfig*, int) () at /usr/lib/libKF5XmlGui.so.5
#12 0x00007f000baf5ce4 in KMainWindow::restore(int, bool) () at /usr/lib/libKF5XmlGui.so.5
#13 0x0000562ebbce010e in  ()
#14 0x0000562ebbcdd693 in  ()
#15 0x00007f00085d306b in __libc_start_main () at /usr/lib/libc.so.6
#16 0x0000562ebbcded4a in _start ()

Reported using DrKonqi
Comment 1 Christoph Feck 2018-10-11 14:35:28 UTC

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