ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
7.11k stars 235 forks source link

Segfault on startup on NixOS with hyprland #1185

Open Sipepper opened 2 weeks ago

Sipepper commented 2 weeks ago

While using Sioyek on my NixOS setup, at some moment it stopped working. When i try to open it from terminal, I am "greeted" with program coredump error. image

Here is the link to coredump https://drive.google.com/file/d/14ZSFoPcY5DakgvbuT7_VQdYL849qk_Sv/view?usp=sharing

configs.tar.gz image

Tried to remove sioyek from home.nix file, then nix-collect-garbage -d and rebuild then bring sioyek back, but it doesn't help.

ahrm commented 2 weeks ago

Does the issue happen with the preview release here: https://github.com/ahrm/sioyek/releases/tag/sioyek3-alpha0?

Sipepper commented 2 weeks ago

Does the issue happen with the preview release here: https://github.com/ahrm/sioyek/releases/tag/sioyek3-alpha0?

idk, maybe this is the problem of sioyek package from nixos-unstable branch. I'm yet figuring out how to declaratively fetch packages from other sources.

It broke down when I've tried to mess with mime.Defaultapplications, but even when I reverted back the configuration, sioyek still don't want to work.

Sipepper commented 2 weeks ago

So, I've managed to, at least, make sioyek work again. Which makes things weirder. When I'm opening certain type of .pdf files, namely the exports from Obsidian.md, first it works as intended but then sioyek cannot be opened from terminal(kitty) or program menu(fuzzel).

So it's mainly the problem of some .pdf's.

I've attached the example which cause problems sls.pdf

essentially I've tried to read the same file, and open sioyek "standalone", and forget about that it opens last viewed file