I can't open Sioyek , a pdf viewer

System:
  Kernel: 6.7.6-arch1-1.1 arch: x86_64 bits: 64 compiler: gcc v: 13.2.1 clocksource: tsc
    avail: acpi_pm parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux
    root=UUID=b6b92ddd-1165-4684-927f-b9ae66d45eff rw rootflags=subvol=@ quiet
    rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3 mitigations=off
    sysrq_always_enabled=1 elevator=noop ibt=off
  Desktop: GNOME v: 45.4 tk: GTK v: 3.24.41 wm: gnome-shell tools: gsd-screensaver-proxy dm: GDM
    v: 45.0.1 Distro: Garuda base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: X540LA v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: X540LA v: 1.0 serial: <superuser required> part-nu: ASUS-NotebookSKU
    uuid: <superuser required> UEFI: American Megatrends v: X540LA.303 date: 08/31/2018
Battery:
  ID-1: BAT0 charge: 23.6 Wh (100.0%) condition: 23.6/33.2 Wh (71.2%) volts: 10.8 min: 10.8
    model: ASUSTeK ASUS Battery type: Li-ion serial: N/A status: not charging cycles: 788
CPU:
  Info: model: Intel Core i3-5005U bits: 64 type: MT MCP arch: Broadwell gen: core 5 level: v3
    note: check built: 2015-18 process: Intel 14nm family: 6 model-id: 0x3D (61) stepping: 4
    microcode: 0x2F
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 798 min/max: 500/1900 scaling: driver: intel_cpufreq governor: ondemand
    cores: 1: 798 2: 798 3: 798 4: 798 bogomips: 15971
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel HD Graphics 5500 vendor: ASUSTeK driver: i915 v: kernel arch: Gen-8
    process: Intel 14nm built: 2014-15 ports: active: DP-1 off: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0
    chip-ID: 8086:1616 class-ID: 0300
  Device-2: IMC Networks USB2.0 VGA UVC WebCam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:4 chip-ID: 13d3:5a11 class-ID: 0e02
  Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4 compositor: gnome-shell
    driver: X: loaded: modesetting alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: 0
  Monitor-1: DP-1 model: Samsung SyncMaster serial: <filter> built: 2009 res: 1600x900 dpi: 92
    gamma: 1.2 size: 443x249mm (17.44x9.8") diag: 508mm (20") ratio: 16:9 modes: max: 1600x900
    min: 720x400
  Monitor-2: eDP-1 model: ChiMei InnoLux 0x15dc built: 2015 res: 1366x768 dpi: 101 gamma: 1.2
    size: 344x193mm (13.54x7.6") diag: 394mm (15.5") ratio: 16:9 modes: 1366x768
  API: EGL v: 1.5 hw: drv: intel iris platforms: device: 0 drv: iris device: 1 drv: swrast
    surfaceless: drv: iris wayland: drv: iris x11: drv: iris inactive: gbm
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.0.1-arch1.1.1 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel HD Graphics 5500 (BDW GT2) device-ID: 8086:1616
    memory: 7.44 GiB unified: yes display-ID: :0.0
Audio:
  Device-1: Intel Broadwell-U Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus-ID: 00:03.0
    chip-ID: 8086:160c class-ID: 0403
  Device-2: Intel Wildcat Point-LP High Definition Audio vendor: ASUSTeK driver: snd_hda_intel
    v: kernel bus-ID: 00:1b.0 chip-ID: 8086:9ca0 class-ID: 0403
  API: ALSA v: k6.7.6-arch1-1.1 status: kernel-api tools: N/A
  Server-1: PipeWire v: 1.0.3 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: ASUSTeK driver: r8169 v: kernel
    pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 4000 bus-ID: 02:00.2 chip-ID: 10ec:8136
    class-ID: 0200
  IF: enp2s0f2 state: down mac: <filter>
  Device-2: Realtek RTL8723BE PCIe Wireless Network Adapter vendor: Lite-On driver: rtl8723be
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 03:00.0 chip-ID: 10ec:b723
    class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  Info: services: NetworkManager, systemd-timesyn
cd, wpa_supplicant
Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 2.1 speed: 12 Mb/s lanes: 1
    mode: 1.1 bus-ID: 1-4:3 chip-ID: 0bda:b721 class-ID: e001 serial: <filter>
  Report: btmgmt ID: hci0 rfk-id: 5 state: up address: <filter> bt-v: 4.0 lmp-v: 6 status:
    discoverable: no pairing: no class-ID: 6c010c
Drives:
  Local Storage: total: 704.24 GiB used: 651.03 GiB (92.4%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: TeamGroup model: T253256GB size: 238.47 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s tech: SSD serial: <filter> fw-rev: 227N
    scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WD5000LPCX-80VHAT1 size: 465.76 GiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s tech: HDD rpm: 5400 serial: <filter>
    fw-rev: 1A02 scheme: GPT
Partition:
  ID-1: / raw-size: 24.91 GiB size: 24.91 GiB (100.00%) used: 10.83 GiB (43.5%) fs: btrfs
    dev: /dev/sda1 maj-min: 8:1
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) used: 584 KiB (0.1%) fs: vfat
    dev: /dev/sda4 maj-min: 8:4
  ID-3: /home raw-size: 9.8 GiB size: 9.8 GiB (100.00%) used: 4.44 GiB (45.3%) fs: btrfs
    dev: /dev/sda2 maj-min: 8:2
  ID-4: /var/log raw-size: 24.91 GiB size: 24.91 GiB (100.00%) used: 10.83 GiB (43.5%) fs: btrfs
    dev: /dev/sda1 maj-min: 8:1
  ID-5: /var/tmp raw-size: 24.91 GiB size: 24.91 GiB (100.00%) used: 10.83 GiB (43.5%) fs: btrfs
    dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 180 (default 60) cache-pressure: 50 (default 100) zswap: no
  ID-1: swap-1 type: zram size: 7.62 GiB used: 293.7 MiB (3.8%) priority: 100 comp: zstd
    avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 4 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 38.0 C pch: 33.5 C mobo: N/A
  Fan Speeds (rpm): cpu: 1900
Info:
  Memory: total: 8 GiB available: 7.62 GiB used: 3.56 GiB (46.7%)
  Processes: 269 Power: uptime: 2d 13h 5m states: freeze,mem,disk suspend: deep avail: s2idle
    wakeups: 4 hibernate: platform avail: shutdown, reboot, suspend, test_resume image: 3.04 GiB
    services: gsd-power, power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
    tool: systemctl
  Packages: 1224 pm: pacman pkgs: 1214 libs: 313 tools: pamac,paru pm: flatpak pkgs: 10
    Compilers: gcc: 13.2.1 Client: shell wrapper v: 5.2.26-release inxi: 3.3.33
Garuda (2.6.23-1):
  System install date:     2023-11-27
  Last full system update: 2024-02-28 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:            archlinux-keyring-wkd-sync.service 

error i get when opening from the terminal

sioyek                                                                                           ✔ 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
default_config_path: /etc/sioyek/prefs.config
default_keys_path: /etc/sioyek/keys.config
user_config_path: [ 0 ] /etc/xdg/sioyek/prefs_user.config
user_config_path: [ 1 ] /home/houssem/.config/sioyek/prefs_user.config
user_keys_path: [ 0 ] /etc/xdg/sioyek/keys_user.config
user_keys_path: [ 1 ] /home/houssem/.config/sioyek/keys_user.config
database_file_path: /home/houssem/.local/share/sioyek/test.db
local_database_file_path: /home/houssem/.local/share/sioyek/local.db
global_database_file_path: /home/houssem/.local/share/sioyek/shared.db
tutorial_path: /usr/share/sioyek/tutorial.pdf
last_opened_file_address_path: /home/houssem/.local/share/sioyek/last_document_path.txt
shader_path: /usr/share/sioyek/shaders
Creating shared memory block...
Shared memory created: this is the primary application.
Starting IPC server...
IPC server started.
cannot create context: incompatible header (1.23.5) and library (1.23.11) versions
could not create mupdf context

It seems likely this app is not compatible with wayland. Try to launch it with,

QT_QPA_PLATFORM=wayland sioyek

if it works set QT_QPA_PLATFORM=wayland as your environment variable (easily doable in /etc/environment file)

If it fails then,

QT_QPA_PLATFORM=xcb sioyek

It will launch sioyek with xwayland and might be blurry. If this works then yes wayland is your issue. You can two options,

  1. Switch to x11. When booting up from sddm just below the password field there is a small drop box to switch between x11 and wayland.
  2. make a copy of sioyek .desktop file (present in /usr/share/applications/) and store it in ~/.local/share/applications and edit it. Go to the Exec= field and edit it to include this env. variable so that it lauches your program in xwayland mode when you click it’s launch icon.
2 Likes

neither options worked when running on wayland with the same errors above


EDIT:
Hey just found this bug mentioned on AUR,

https://aur.archlinux.org/packages/sioyek#comment-957588

It seems sioyek-git works right now. No hackery needed for it. Just do a,

paru -Sa sioyek-git

can you try,

sudo downgrade jbig2dec

and downgrade jbig2dec just one version the current version it’s on? The curr ver can be checked with

pacman -Qs jbig2dec

This seems to be a recurring issue for mupdf and everytime jbig2dec seems to be the culprit.

If this is not the culprit you can simply update it again,

sudo pacman -S jbig2dec

If that doesn’t work check this out,

Although what they suggest is for zathura you can apply it to sioyek as well. Just use paru to pull the AUR package like this,

paru -Sa sioyek
2 Likes

i’m having errors while installing from aur

paru -S --skipreview sioyek-git                                                     ✘ 1 │  4m 57s 
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

:: Conflicts found:
    sioyek-git: sioyek  

:: Conflicting packages will have to be confirmed manually

Aur (1) sioyek-git-2.0.0.r830.g35f0d63-1

:: Proceed with installation? [Y/n]: 

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
fetching devel info...
==> Making package: sioyek-git 2.0.0.r830.g35f0d63-1 (Wed 28 Feb 2024 08:46:56 PM CET)
==> Retrieving sources...
  -> Cloning sioyek git repo...
Cloning into bare repository '/home/houssem/.cache/paru/clone/sioyek-git/sioyek'...
remote: Enumerating objects: 12002, done.
remote: Counting objects: 100% (3964/3964), done.
remote: Compressing objects: 100% (603/603), done.
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 6447 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
==> ERROR: Failure while downloading sioyek git repo
    Aborting...
error: failed to download sources for 'sioyek-git-2.0.0.r830.g35f0d63-1': 
error: packages failed to build: sioyek-git-2.0.0.r830.g35f0d63-1

Hmm :thinking: how about git cloning the AUR repo and running makepkg -si in it?

Just ran the same paru command you ran and it seems to work perfectly no problem? Maybe you just have bad net.

Yeah sioyek-git seems to work for me as well.

I’m using zathura, simple app, good for viewing and printing on hyprland.

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