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
Working on it
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