Bug 509163

Summary: Okular crashes when opening a PDF containing many multimedia elements.
Product: [Applications] okular Reporter: Benjamin <b.g01lyon+kde>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: crash    
Priority: NOR    
Version First Reported In: 25.08.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: gdb backtrace

Description Benjamin 2025-09-05 16:07:10 UTC
Created attachment 184750 [details]
gdb backtrace

Hello,

I have a large PDF file (almost 300 MB) containing thousands of audio files. It opens fine with Evince, but with Okular, the software freezes, and I have to manually terminate it without being able to view the file.

If I launch it from the terminal, after a few seconds, I get these messages (and I don't have the courage to wait for it to finish...). By the way, « Trop de fichiers ouverts » means "Too many files open".

okular big_audio_file.pdf
! SyncTeX Error : could not open, error 2147416319

! SyncTeX Error : could not open, error 2147416319

The per-process limit on the number of open file descriptors has been reached.
ERROR: cannot create wakeup pipe
shared memfd open() failed: Trop de fichiers ouverts
Failed to create secure directory (/run/user/1000/pulse): Trop de fichiers ouverts
socket(): Trop de fichiers ouverts
shared memfd open() failed: Trop de fichiers ouverts
Failed to create secure directory (/run/user/1000/pulse): Trop de fichiers ouverts
socket(): Trop de fichiers ouverts
[0000558c8743fb60] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
shared memfd open() failed: Trop de fichiers ouverts
Failed to create secure directory (/run/user/1000/pulse): Trop de fichiers ouverts
socket(): Trop de fichiers ouverts
shared memfd open() failed: Trop de fichiers ouverts
Failed to create secure directory (/run/user/1000/pulse): Trop de fichiers ouverts
socket(): Trop de fichiers ouverts
[0000558c8743fb60] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[0000558c8743fb60] main audio output error: no suitable audio output module
shared memfd open() failed: Trop de fichiers ouverts
Failed to create secure directory (/run/user/1000/pulse): Trop de fichiers ouverts
socket(): Trop de fichiers ouverts
[0000558c8745abf0] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
shared memfd open() failed: Trop de fichiers ouverts
Failed to create secure directory (/run/user/1000/pulse): Trop de fichiers ouverts
socket(): Trop de fichiers ouverts
shared memfd open() failed: Trop de fichiers ouverts
Failed to create secure directory (/run/user/1000/pulse): Trop de fichiers ouverts
socket(): Trop de fichiers ouverts
[0000558c8745abf0] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
[0000558c8745abf0] main audio output error: no suitable audio output module
…
[00005590fa09fe20] main audio output error: no suitable audio output module
The per-process limit on the number of open file descriptors has been reached.
ERROR: cannot create wakeup pipe
ALSA lib conf.c:4644:(snd_config_update_r) cannot access file /usr/share/alsa/alsa.conf
The per-process limit on the number of open file descriptors has been reached.
ERROR: cannot create wakeup pipe
The per-process limit on the number of open file descriptors has been reached.
ERROR: cannot create wakeup pipe
[00005590fa0c9bc0] main audio output error: no suitable audio output module
The per-process limit on the number of open file descriptors has been reached.
ERROR: cannot create wakeup pipe
ALSA lib conf.c:4644:(snd_config_update_r) cannot access file /usr/share/alsa/alsa.conf
The per-process limit on the number of open file descriptors has been reached.
ERROR: cannot create wakeup pipe
The per-process limit on the number of open file descriptors has been reached.
ERROR: cannot create wakeup pipe
[00005590fa0f4700] main audio output error: no suitable audio output module
The per-process limit on the number of open file descriptors has been reached.
ERROR: cannot create wakeup pipe
ALSA lib conf.c:4644:(snd_config_update_r) cannot access file /usr/share/alsa/alsa.conf
The per-process limit on the number of open file descriptors has been reached.
ERROR: cannot create wakeup pipe
The per-process limit on the number of open file descriptors has been reached.
ERROR: cannot create wakeup pipe
…

I provide the gdb backtrace file.

Thank you.