blank page and crash
When trying to open test.pdf (happens for others too) the first time, everytime works great. The second time a blank page opens. Trying to interact with it will crash sioyek, reopen, crash again and so on.
Deleting everything from .local/share/sioyek fixes it, but that's not really a workaround..
sioyek 2.0.0 GNU/Linux "NixOS 23.11 (Tapir)"
(process:37279): Gtk-WARNING **: 18:59:13.294: Locale not supported by C library.
Using the fallback 'C' locale.
(sioyek:37279): Gtk-WARNING **: 18:59:13.326: Unable to locate theme engine in module_path: "adwaita",
default_config_path: /nix/store/izsi63m3r5w4gbnhyp017ibsspr0jhic-sioyek-2.0.0/etc/prefs.config
default_keys_path: /nix/store/izsi63m3r5w4gbnhyp017ibsspr0jhic-sioyek-2.0.0/etc/keys.config
user_config_path: [ 0 ] /run/current-system/sw/etc/xdg/sioyek/prefs_user.config
user_config_path: [ 1 ] /nix/var/nix/profiles/default/etc/xdg/sioyek/prefs_user.config
user_config_path: [ 2 ] /etc/profiles/per-user/jk/etc/xdg/sioyek/prefs_user.config
user_config_path: [ 3 ] /home/jk/.local/state/nix/profile/etc/xdg/sioyek/prefs_user.config
user_config_path: [ 4 ] /nix/profile/etc/xdg/sioyek/prefs_user.config
user_config_path: [ 5 ] /home/jk/.nix-profile/etc/xdg/sioyek/prefs_user.config
user_config_path: [ 6 ] /etc/xdg/sioyek/prefs_user.config
user_config_path: [ 7 ] /home/jk/.config/sioyek/prefs_user.config
user_keys_path: [ 0 ] /run/current-system/sw/etc/xdg/sioyek/keys_user.config
user_keys_path: [ 1 ] /nix/var/nix/profiles/default/etc/xdg/sioyek/keys_user.config
user_keys_path: [ 2 ] /etc/profiles/per-user/jk/etc/xdg/sioyek/keys_user.config
user_keys_path: [ 3 ] /home/jk/.local/state/nix/profile/etc/xdg/sioyek/keys_user.config
user_keys_path: [ 4 ] /nix/profile/etc/xdg/sioyek/keys_user.config
user_keys_path: [ 5 ] /home/jk/.nix-profile/etc/xdg/sioyek/keys_user.config
user_keys_path: [ 6 ] /etc/xdg/sioyek/keys_user.config
user_keys_path: [ 7 ] /home/jk/.config/sioyek/keys_user.config
database_file_path: /home/jk/.local/share/sioyek/test.db
local_database_file_path: /home/jk/.local/share/sioyek/local.db
global_database_file_path: /home/jk/.local/share/sioyek/shared.db
tutorial_path: /nix/store/izsi63m3r5w4gbnhyp017ibsspr0jhic-sioyek-2.0.0/share/tutorial.pdf
last_opened_file_address_path: /home/jk/.local/share/sioyek/last_document_path.txt
shader_path: /nix/store/izsi63m3r5w4gbnhyp017ibsspr0jhic-sioyek-2.0.0/share/shaders
Creating shared memory block...
Shared memory created: this is the primary application.
Starting IPC server...
IPC server started.
Segmentation fault (core dumped)
What do you have in .local/share/sioyek? Maybe there is a config that is causing the crash?
these are the files inside .local/share/sioyek (autogenerated i assume)
auto.config
last_document_path.txt
local.db
shared.db
test.db
the issue must be with local.db, because deleting it let's me open the file above without any issue. I can open scientific papers with sioyek without any problem. Files like the above, without any structured layout etc. are causing this issue..
can anyone reproduce this?
I can not reproduce the issue. Which sioyek build are you using? Does the issue happen with the official appimage builds here: https://github.com/ahrm/sioyek/releases/tag/v2.0.0 ?
I am using the NixOS build. It does not happen when using the appImage builds. Is there any way I can provide more information?
Okay this is weird. I had toggle_scrollbar and toggle_custom_colorin my config as startup_commands. Removing the line fixed the issue aswell..
Nevermind, the error persists.. It is very hard to pin down where it is/how to reproduce. Might be related to this however.