Created attachment 130145 [details] Okular crash backtrace I've assigned the hotkey "Ctrl+W" for closing a tab in Settings->Configure keyboard shortcuts->Close. Whenever I close a tab by pressing "Ctrl+W" , Okular crashes and causes all the opened documents to get closed.That only happens when there are at least "2" open documents in the same window.By the way I've enabled the option "Open new files in tabs" if that matters. The output of Okular in its stderr after the crash : ``` KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = okular path = /usr/bin pid = 28214 KCrash: Arguments: /usr/bin/okular some_file.pdf KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi ``` And the full backtrace is included as an attachment although the KDE Crash Handler says it's probably not useful. STEPS TO REPRODUCE: 1. Open Okular 2. Assign a shortcut for "Close" in Settings->Configure keyboard shortcuts 3. Use that shortcut when you have at least two opened documents at the same time. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.3.0 / KDE Neon Unstable KDE Plasma Version: 5.19.80 KDE Frameworks Version: 5.73.0 Qt Version: 5.14.2
Can you install debug packages of okular in kde neon? Also which okular version are you running?
Yes,of course.I've installed the package "okular-backend-odp-dbgsym" and added the new backtrace as the attachment.BTW I use Okular 1.11.70.
Created attachment 130149 [details] Okular crash backtrace with debug symbols
If you're running an unstable version you need to be totally upfront about it. @Simone, is this 423335 ?
Does not seem to be 423335. Does the crash happen if you close the current focused tab with the middle click of the mouse or the X close button?
Yes.Please take a look at the two new attachments.
Created attachment 130156 [details] Okular crash backtrace when pressing the X close button
Created attachment 130157 [details] Okular crash backtrace when closing a tab with the middle-click
Can you execute `gdb okular` then `run` and attach the trace of gdb after the crash. (should say something about an assert failing). Actually seems to be 423335, now that I've read better the trace. This should be fixed in the 20.08 release of Okular.
Created attachment 130167 [details] Okular debugging in GDB
*** This bug has been marked as a duplicate of bug 423335 ***
From what I understand from the gdb backtrace it seems that it fails in the cast after the assert, so does not seem exactly 423335 (sorry for changing my mind three times). I would be good to test this again with the fix to 423335 (I am not sure the version of Okular you are using has that fix yet) and in case reopen this bug.