Bug 515655

Summary: Crash on viewing certain page of PDF
Product: [Applications] okular Reporter: Tristan Miller <psychonaut>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: crash    
Priority: NOR    
Version First Reported In: 25.12.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: PDF file that makes Okular crash.
Backtrace

Description Tristan Miller 2026-02-06 21:28:43 UTC
Created attachment 189300 [details]
PDF file that makes Okular crash.

SUMMARY

Okular crashes when viewing a certain page of a PDF I have.  I used pdftk to extract the page in question to a separate PDF file; having Okular view the file with this single-page PDF also makes it crash.

STEPS TO REPRODUCE
1. Open the attached foo.pdf.

OBSERVED RESULT

Okular crashes with the following error:

terminate called after throwing an instance of 'std::length_error'
  what():  vector::_M_default_append

EXPECTED RESULT

Okular should display the file without crashing.  (Other PDF viewers, such as Evince, are able to do so.)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.5.5 
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.2

ADDITIONAL INFORMATION

See attached backtrace.
Comment 1 Tristan Miller 2026-02-06 21:29:12 UTC
Created attachment 189301 [details]
Backtrace