Bug 400104 - Crash when opening a link to a local pdf
Summary: Crash when opening a link to a local pdf
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.5.2
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-21 12:20 UTC by nuntius35
Modified: 2018-10-21 20:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Contains one link to "file.pdf". Triggers a crash when link is clicked. (23.58 KB, application/pdf)
2018-10-21 12:20 UTC, nuntius35
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nuntius35 2018-10-21 12:20:53 UTC
Created attachment 115801 [details]
Contains one link to "file.pdf". Triggers a crash when link is clicked.

SUMMARY

I use pandoc to create pdfs that link to other pdfs. When trying to open such a link, okular crashes.

STEPS TO REPRODUCE
1. Create a pdf with a link to another pdf in the local file system. I do this with pandoc and use the markdown code "[Crash](file.pdf)". I have included such a file ("crash.pdf") in the attachment.
2. Move file.pdf (any pdf file) and crash.pdf to the same folder.
3. Open crash.pdf with okular.
4. Click on the (red) link called "Crash".

OBSERVED RESULT
Okular crashes. If file.pdf is not present, an error message says that /path/to/file.pdf cannot be found.

EXPECTED RESULT
Okular opens file.pdf in a new window. If file.pdf is not present, the error message if course fine.

SOFTWARE VERSIONS
KDE Plasma Version: 5.14.1
KDE Frameworks Version: 5.51.0
Qt Version: 5.11.2
Kernel-Version: 4.18.14-arch1-1-ARCH
Comment 1 Albert Astals Cid 2018-10-21 20:01:38 UTC
Working on it
Comment 2 Albert Astals Cid 2018-10-21 20:26:37 UTC
Git commit 27197b5f76be367acd2ae7ca030857842fb663d8 by Albert Astals Cid.
Committed on 21/10/2018 at 20:25.
Pushed by aacid into branch 'Applications/18.08'.

Fix crash if processing a link closes the document

M  +13   -2    core/document.cpp
M  +6    -0    core/document.h

https://commits.kde.org/okular/27197b5f76be367acd2ae7ca030857842fb663d8