pwmt / zathura

Document viewer
https://pwmt.org/projects/zathura
zlib License
1.86k stars 127 forks source link

running zathura with tabbed causes default binds to break #432

Open sebastinas opened 6 months ago

sebastinas commented 6 months ago

On GitLab by @tokisuno on Dec 7, 2023, 16:51


If I launch zathura wrapped in devour, ^u and ^d work fine. Typically if I run tabbed zathura, I use a function called "tab" in my fish config.fish, which just executes:

tabbed -c zathura {$argv} -e

The same behaviour happens when I type `tabbed -c zathura * -e` in the directory with all my pdfs.

sebastinas commented 6 months ago

On GitLab by @jonathannerat on Dec 15, 2023, 21:22


Same things happens to me. I have a .desktop file with Exec=tabbed -c -r 2 zathura -e "" %U. Whenever I open any document looks like the mappings work (like o to open a document, or /something to search for something), but nothings happens until I switch to another tab and come back. Seems like rendering is stuck inside tabbed.

sebastinas commented 6 months ago

On GitLab by @adrianfd on Dec 19, 2023, 22:53


Exactly the same. I have to switch to fullscreen mode in order zathura to be responsive. Freezes when launching with tabbed

sebastinas commented 6 months ago

On GitLab by @RyanC1098 on Dec 20, 2023, 02:49


If I understand the initial bug report correctly, then I am experiencing the same problem. Tabbed works fine with other applications (e.g. st), Zathura works fine when not run inside Tabbed. But as of a week the two do not play well together. Some commands, like scrolling up and down, do work; but others only work if I switch back and forth between tabs, or if I wait for about 60 seconds. Even when opening a file there is about a 60 second delay. I tried rolling back to previous versions of Zathura, but the problem persists.

sebastinas commented 4 months ago

On GitLab by @caleb-lindgren on Feb 12, 2024, 22:44


Experiencing the same bug as described by @jonathannerat. Downgrading to zathura 0.5.3 fixed it.

sebastinas commented 3 months ago

On GitLab by @xezav on Mar 23, 2024, 22:14


I have the same issue as @jonathannerat. Press / to try searching, nothing happens and the pdf freezes, but if I tab to a different pdf and come back, the original pdf is no longer frozen and the search can proceed.

I don't use a desktop file, instead a script based on zathura-tabbed from https://web.archive.org/web/20180927142054/http://taitran.ca/vim/latex/markdown/2015/03/11/vim-latex-and-markdown-preview-scripts.html

I thought it may be possible to use feedkeys to try debugging this, but it creates a segfault when I try to bind it.

I tried adding some debug code to tabbed as well, but I had trouble getting it to show what keypresses it was passing or how it was processing them.

The problem does not appear in zathura by itself (untabbed), so maybe this isn't a bug in zathura. Still, zathura is the only program which doesn't behave correctly in tabbed, so hopefully something can be done to fix the integration between these great softwares.