Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blank page and crash #896

Open
KMIJPH opened this issue Dec 30, 2023 · 6 comments
Open

blank page and crash #896

KMIJPH opened this issue Dec 30, 2023 · 6 comments

Comments

@KMIJPH
Copy link

KMIJPH commented Dec 30, 2023

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)
@ahrm
Copy link
Owner

ahrm commented Dec 30, 2023

What do you have in .local/share/sioyek? Maybe there is a config that is causing the crash?

@KMIJPH
Copy link
Author

KMIJPH commented Dec 30, 2023

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?

@ahrm
Copy link
Owner

ahrm commented Dec 31, 2023

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 ?

@KMIJPH
Copy link
Author

KMIJPH commented Dec 31, 2023

I am using the NixOS build. It does not happen when using the appImage builds. Is there any way I can provide more information?

@KMIJPH
Copy link
Author

KMIJPH commented Dec 31, 2023

Okay this is weird. I had toggle_scrollbar and toggle_custom_colorin my config as startup_commands. Removing the line fixed the issue aswell..

@KMIJPH
Copy link
Author

KMIJPH commented Jan 2, 2024

Nevermind, the error persists.. It is very hard to pin down where it is/how to reproduce. Might be related to this however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants