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.17k stars 236 forks source link

Sioyek crashes when opening a pdf #986

Closed radialserial closed 8 months ago

radialserial commented 8 months ago

Crashing when trying to open this pdf using the sioyek-git package from AUR.

When running using the command line and no config file, the following errors are produced:

/usr/include/c++/13.2.1/bits/stl_vector.h:1125: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
fish: Job 1, 'sioyek vitor,+Gerente+da+revist…' terminated by signal SIGABRT (Abort)

When using a custom prefs/keymaps file, the error is different:

Warning: key defined in /etc/sioyek/keys.config:255 overwritten by /home/roger/.config/sioyek/keys_user.config:6. Overriding command: s: replacing external_search with fit_to_page_height_smart
Warning: key defined in /etc/sioyek/keys.config:227 overwritten by /home/roger/.config/sioyek/keys_user.config:8. Overriding command: <tab>: replacing goto_portal with goto_toc
Warning: key defined in /etc/sioyek/keys.config:152 overwritten by /home/roger/.config/sioyek/keys_user.config:9. Overriding command: <C-f>: replacing search with next_page
Warning: key defined in /etc/sioyek/keys.config:297 overwritten by /home/roger/.config/sioyek/keys_user.config:12. Overriding command: F: replacing keyboard_smart_jump with overview_link
Warning: key defined in /etc/sioyek/keys.config:123 overwritten by /home/roger/.config/sioyek/keys_user.config:13. Overriding command: <C-o>: replacing open_document_embedded with prev_state
Warning: key defined in /etc/sioyek/keys.config:121 overwritten by /home/roger/.config/sioyek/keys_user.config:15. Overriding command: o: replacing open_document with open_document_embedded
Warning: key defined in /etc/sioyek/keys.config:79 overwritten by /home/roger/.config/sioyek/keys_user.config:17. Overriding command: <C-w>: replacing close_window with noop
fish: Job 1, 'sioyek vitor,+Gerente+da+revist…' terminated by signal SIGABRT (Abort)

My prefs file:

# === DRACULA THEME === #

background_color                         0.15686 0.16471 0.21176
dark_mode_background_color               0.15686 0.16471 0.21176
dark_mode_contrast                       0.8

text_highlight_color                     0.94510 0.98039 0.54902
visual_mark_color                        0.15686 0.16471 0.21176 0.8

search_highlight_color                   0.94510 0.98039 0.54902
link_highlight_color                     0.38431 0.44706 0.64314
synctex_highlight_color                  0.31373 0.98039 0.48235

highlight_color_a                        1.00000 0.72157 0.42353
highlight_color_b                        0.31373 0.98039 0.48235
highlight_color_c                        0.54510 0.91373 0.99216
highlight_color_d                        1.00000 0.47451 0.77647
highlight_color_e                        0.74118 0.57647 0.97647
highlight_color_f                        1.00000 0.33333 0.33333
highlight_color_g                        0.94510 0.98039 0.54902

default_dark_mode                        0

font_size                                18
ui_font                                  FiraCode Mono

custom_background_color                  0.2666 0.27843 0.35294
custom_text_color                        0.97255 0.97255 0.94902
custom_color_mode_empty_background_color 0.15686 0.16471 0.21176

ui_text_color                            0.97255 0.97255 0.94902
ui_background_color                      0.15686 0.16471 0.21176
ui_selected_text_color                   0.97255 0.97255 0.94902
ui_selected_background_color             0.26667 0.27843 0.35294

status_bar_font_size                     18
status_bar_color                         0.15686 0.16471 0.21176

# === END DRACULA THEME === #

startup_commands             toggle_custom_color;toggle_statusbar;super_fast_search
search_url_b                 https://search.brave.com/search?q=

My keys file:

toggle_custom_color      <C-r>
rotate_counterclockwise  R
screen_down              <C-d>
screen_up                <C-u>
fit_to_page_height       a
fit_to_page_height_smart s
external_search          S
goto_toc                 <tab>
next_page                <C-f>
previous_page            <C-b>
toggle_statusbar         <C-n>
overview_link            F
prev_state               <C-o>
next_state               <C-i>
open_document_embedded   o

noop <C-w>
ahrm commented 8 months ago

Can't reproduce the issue. Does it happen with the official appimages in the release section of this repo?

radialserial commented 8 months ago

It works just fine!

ahrm commented 8 months ago

Then it might be an issue with the package. You need to report this to the maintainer of the package.