Okular crashing when opening PDF file

Okular is crashing when I try to open a pdf file. I get the following error. This happens with this particular file.

ajayc% okular WL_Endt_V3.pdf
zsh: segmentation fault (core dumped)  okular WL_Endt_V3.pdf
ajayc% okular --version
okular 23.04.0

The same file I able to open in manjaro with okular. Do not what is wrong with EOS.
my system specs are.

System:
Kernel: 6.1.29-hardened1-1-hardened arch: x86_64 bits: 64 compiler: gcc
v: 13.1.1 Desktop: LXQt v: 1.3.0 Distro: EndeavourOS base: Arch Linux
Machine:
Type: Laptop System: ASUSTeK product: VivoBook S14 X430UA v: 1.0
serial: <superuser required>
Mobo: ASUSTeK model: X430UA v: 1.0 serial: <superuser required>
UEFI: American Megatrends v: X430UA.306 date: 04/28/2020
Battery:
ID-1: BAT0 charge: 7.5 Wh (58.6%) condition: 12.8/42.0 Wh (30.5%)
volts: 11.8 min: 11.8 model: ASUSTeK ASUS Battery status: discharging
CPU:
Info: quad core model: Intel Core i5-8250U bits: 64 type: MT MCP
arch: Coffee Lake rev: A cache: L1: 256 KiB L2: 1024 KiB L3: 6 MiB
Speed (MHz): avg: 1800 min/max: 400/3400 cores: 1: 1800 2: 1800 3: 1800
4: 1800 5: 1800 6: 1800 7: 1800 8: 1800 bogomips: 28808
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel UHD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel
arch: Gen-9.5 bus-ID: 00:02.0
Device-2: IMC Networks USB2.0 HD UVC WebCam driver: uvcvideo type: USB
bus-ID: 1-6:3
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.1 driver: X:
loaded: intel unloaded: modesetting dri: i965 gpu: i915
resolution: 1920x1080~60Hz
API: OpenGL v: 4.6 Mesa 23.0.3 renderer: Mesa Intel UHD Graphics 620 (KBL
GT2) direct-render: Yes
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
API: ALSA v: k6.1.29-hardened1-1-hardened status: kernel-api
Server-1: PipeWire v: 0.3.71 status: active
Network:
Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel
bus-ID: 02:00.0
IF: wlp2s0 state: up mac: <filter>
Bluetooth:
Device-1: Intel Bluetooth wireless interface driver: btusb v: 0.8 type: USB
bus-ID: 1-8:4
Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
Local Storage: total: 1.14 TiB used: 5.36 GiB (0.5%)
ID-1: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB
ID-2: /dev/sdb vendor: Micron model: 1100 MTFDDAV256TBN size: 238.47 GiB
Partition:
ID-1: / size: 29.3 GiB used: 3.37 GiB (11.5%) fs: btrfs dev: /dev/sdb7
ID-2: /boot/efi size: 256 MiB used: 37 MiB (14.5%) fs: vfat dev: /dev/sdb1
ID-3: /home size: 29.3 GiB used: 3.37 GiB (11.5%) fs: btrfs dev: /dev/sdb7
ID-4: /var/log size: 29.3 GiB used: 3.37 GiB (11.5%) fs: btrfs
dev: /dev/sdb7
Swap:
ID-1: swap-1 type: zram size: 1024 MiB used: 0 KiB (0.0%) dev: /dev/zram0
ID-2: swap-2 type: zram size: 1024 MiB used: 0 KiB (0.0%) dev: /dev/zram1
Sensors:
System Temperatures: cpu: 40.0 C pch: 39.5 C mobo: N/A
Fan Speeds (RPM): cpu: 2500
Info:
Processes: 242 Uptime: 10m Memory: available: 7.65 GiB
used: 1.54 GiB (20.1%) Init: systemd Compilers: gcc: 13.1.1 Packages: 1147
Shell: Zsh v: 5.9 inxi: 3.3.27
1 Like

have you tried to reinstall okular? Does okular open other pdf files in EOS?

what do your journals show?

I reinstalled okular as you suggested but did not solve the issue.
Yes, it can open other pdf file. The issue seems to be with this file. While manjaro has no issue even with this file. And MasterPDFEditor can open this file without any issue.

Here is the journal log/

ajayc% okular WL_Endt_V31.pdf
zsh: segmentation fault (core dumped)  okular WL_Endt_V31.pdf
ajayc% journalctl -p 3 -b
May 25 03:04:08 ajayc-x430ua kernel: x86/cpu: SGX disabled by BIOS.
May 25 03:04:08 ajayc-x430ua kernel: blacklist: Problem blacklisting hash (-13)
May 25 03:04:08 ajayc-x430ua kernel: blacklist: Problem blacklisting hash (-13)
May 25 03:04:08 ajayc-x430ua kernel: blacklist: Problem blacklisting hash (-13)
May 25 03:04:08 ajayc-x430ua kernel: blacklist: Problem blacklisting hash (-13)
May 24 21:34:10 ajayc systemd[1]: bpf-lsm: Failed to load BPF object: No such process
May 24 21:34:10 ajayc systemd-udevd[480]: /etc/udev/rules.d/40-libsane.rules:26: GOTO="libsane_rules_end" has no matching lab>
May 24 21:34:10 ajayc systemd-udevd[480]: /etc/udev/rules.d/S99-2000S1.rules:26: GOTO="libsane_rules_end" has no matching lab>
May 24 21:34:11 ajayc kernel: i2c_hid_acpi i2c-ELAN1300:00: device returned incorrect report (2 vs 14 expected)
May 24 21:37:34 ajayc systemd-coredump[1277]: [🡕] Process 1266 (okular) of user 1000 dumped core.
May 24 21:37:39 ajayc systemd-coredump[1295]: [🡕] Process 1284 (okular) of user 1000 dumped core.
May 25 07:09:31 ajayc kernel: Bluetooth: hci0: Malformed MSFT vendor event: 0x02
May 25 07:11:22 ajayc konsole[2770]: kf.xmlgui: Shortcut for action  "" "Show Quick Commands" set with QAction::setShortcut()>
May 25 07:11:22 ajayc konsole[2770]: kf.xmlgui: Shortcut for action  "" "Show SSH Manager" set with QAction::setShortcut()! U>
May 25 07:14:19 ajayc konsole[3354]: kf.xmlgui: Shortcut for action  "" "Show Quick Commands" set with QAction::setShortcut()>
May 25 07:14:19 ajayc konsole[3354]: kf.xmlgui: Shortcut for action  "" "Show SSH Manager" set with QAction::setShortcut()! U>
May 25 07:15:40 ajayc systemd-coredump[3614]: [🡕] Process 3603 (okular) of user 1000 dumped core.
May 25 07:16:14 ajayc systemd-coredump[3703]: [🡕] Process 3692 (okular) of user 1000 dumped core.

Edit: The issue seems to be with digitally singed pdf from packages other than okular. While okular in manjaro has no issues and masterpdfeditor works fine as well, Okular in EOS is crashing. The okular version is same in both linux. The issue happens even with latest LTS kernel in EOS only.

This has happened before (a year ago), and it was a problem with poppler.

Perhaps Manjaro, due to its release cycle, has an older version of poppler.

I am not seeing any recent bug reports about this, but perhaps you are simply the first person to discover it.

I think you might have trouble downgrading poppler due to dependency issues, but you could try downgrading okular to a previous version and see if that works.

1 Like

@Stagger_Lee

Unfortunately even downgrading to okular 22.12.3 version does not help.

1 Like

Yeah, you probably need to downgrade poppler, but that will likely have dependency issues.

That’s assuming that this is indeed the problem. Is the version of poppler in Manjaro the older version?

1 Like

Working fine here: installed on 5/14, haven’t been updated since:

[2023-05-14T10:06:08-0700] [ALPM] installed okular (23.04.1-1)
[2023-05-14T10:05:56-0700] [ALPM] installed poppler (23.05.0-1)

Last system update was this morning.

EDIT: looks like mine is newer than yours.

I updated okular and have the same version as you but the issue still persists

ajayc% pacman -Qs poppler
local/poppler 23.05.0-1
PDF rendering library based on xpdf 3.0
local/poppler-data 0.4.12-1
Encoding data for the poppler PDF rendering library
local/poppler-glib 23.05.0-1
Poppler glib bindings
local/poppler-qt5 23.05.0-1
Poppler Qt5 bindings
ajayc% pacman -Qs okular
local/okular 23.04.1-1 (kde-applications kde-graphics)
Document Viewer
1 Like

The poppler version in manjaro is

    ~  pacman -Qs okular poppler                                                                                                             ✔ 
    ~  pacman -Qs okular                                                                                                                   1 ✘ 
local/okular 23.04.0-1 (kde-applications kde-graphics)
    Document Viewer
    ~  pacman -Qs poppler                                                                                                                    ✔ 
local/poppler 23.03.0-1
    PDF rendering library based on xpdf 3.0
local/poppler-data 0.4.12-1
    Encoding data for the poppler PDF rendering library
local/poppler-glib 23.03.0-1
    Poppler glib bindings
local/poppler-qt5 23.03.0-1
    Poppler Qt5 bindings

Yep, Manjaro is at poppler 23.03.0-1 while your EOS has poppler 23.05.0-1. This might be why opening digitally signed documents works in Manjaro but not for you in EndeavourOS.

You can try downgrading poppler; you’ll probably have to downgrade a couple of other packages as well in order to do it. Pacman will inform you if there are any packages preventing the downgrade; if the situation isn’t too bad we can give it a try.

1 Like

I am on the latest Okular (23.04.1-1, from 10th May) and Poppler (23.05.0-1, from 13th May) packages and I haven’t yet encountered a PDF that causes Okular to crash.

This is a pretty specific use case:

Unfortunately I don’t have any digitally signed pdf documents, so I cannot confirm whether this is a problem on my system.

1 Like

Your suggestion has solved the issue. I downgraded popper to 23.03.0-1 and it works.

Many Thanks.

2 Likes

You are very welcome. :smiley:

Mark it solved!

EDIT: Thanks!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.