Bug 450842 - Peruse crashes in PDFGenerator::doCloseDocument() when trying to open any PDF
Summary: Peruse crashes in PDFGenerator::doCloseDocument() when trying to open any PDF
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-25 20:33 UTC by Nate Graham
Modified: 2022-02-28 21:24 UTC (History)
1 user (show)

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 Nate Graham 2022-02-25 20:33:30 UTC
When I click on any PDF document in Peruse (built from source) to open it in the embedded Okular Mobile view, the app crashes with the following backtrace:

#0  0x00007fff91311040 in PDFGenerator::doCloseDocument (this=0x7fbf674dcbd0)
    at /home/nate/kde/src/okular/generators/poppler/generator_pdf.cpp:741
#1  0x00007fff9185da80 in Okular::PixmapGenerationThread::run (this=0x1ed9910)
    at /usr/src/debug/okular-21.12.2-1.fc35.x86_64/core/generator_p.cpp:59
#2  0x00007ffff5fd74c6 in QThreadPrivate::start (arg=0x1ed9910) at thread/qthread_unix.cpp:329
#3  0x00007ffff59d2b1a in start_thread (arg=<optimized out>) at pthread_create.c:443
#4  0x00007ffff5a57650 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Comment 1 Albert Astals Cid 2022-02-26 10:58:44 UTC
This backtrace shows your installation is broken, you're mixing up your own built library ( /home/nate/kde/... )  and the system library (  /usr/src/debug/okular-21.12.2-1.fc35.x86_64/... )
Comment 2 Nate Graham 2022-02-26 14:24:53 UTC
Ah ok, I had to get okular mobile from my package manager because I couldn't figure out how to build it from source. How do I do that?
Comment 3 Albert Astals Cid 2022-02-27 11:25:12 UTC
CMakeLists.txt:set(OKULAR_UI "" CACHE STRING "Which Okular user interface to build. Possible values: desktop, mobile, both. Default: desktop (except on Android, where it is 'mobile')")
Comment 4 Nate Graham 2022-02-28 21:24:00 UTC
Thanks Albert! I was looking for something with "mobile" or "kirigami" in the name and didn't find that.