-
Notifications
You must be signed in to change notification settings - Fork 328
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
crash after opening certain images #621
Comments
@dkwo What version are you using and on what platform? Unfortunately, there has been a lot of instability due to ui pausing with shell commands lately which is likely related to your issue. You may try searching previous issues for some solutions and you should also pay attention to the versions in the issues while you are searching as there has been multiple changes lately regarding the terminal handling. |
Version r22, on void linux:
|
If you think this is not a bug, but a question, could you point me to some other issue where it is solved? |
@dkwo Sorry, I have a tendency to initially mark things as question and move them to duplicate, bug, or enhancement in time. I still can't reproduce this on my machine but I'm still marking this as a bug so we might get more feedback from others. There was #592 but it was fixed in r22. Are you building from source by any chance? If so, can you confirm you are building as a Go module? Tcell upstream changed back to Also, can you check your log files to see if there is anything related? |
To give more details, it only happens with feh/pictures.
I'm using it inside st/tmux, with dwm as window manager.
|
I'm using the package from my distro, see I could build it myself, if any change is needed. I do not see any logs from lf, is there a specific place to look? A peculiarity of my system is that it uses runit and musl-libc (instead of glibc), if that matters. |
@dkwo Thanks for all the details. I'm now able to reproduce the issue myself now. One thing I realized is that it happens much more frequently in bigger images. Before, I was trying it with small images and then it happens rarely in this case, maybe like 1 in 50 or 100. I have been opening images using
Note, the issue also happens in other applications like Details about log files is in contributing wiki page. In my log files, the only error is the following:
This error happens after each shell command. This has been like so ever since tcell switched from |
Thanks for investigating this. |
I'm using the package from my distro, see
https://github.com/void-linux/void-packages/blob/master/srcpkgs/lf/template
which I believe builds as a go module, see
https://github.com/void-linux/void-packages/blob/master/common/build-style/go.sh
I could build it myself, if any change is needed.
I do not see any logs from lf, is there a specific place to look?
A peculiarity of my system is that it uses runit and musl-libc (instead of glibc), if that matters.
|
I have also noticed this a few times and I think it happens because the command finishes too quickly after the window is deleted, and while using a tiling wm. I have tested this with |
I have now switched our tcell to upstream v2.3.1 which uses the |
im experiencing this also intermittently with sxiv. bug doesnt seem to happen at commit 1b93f22 |
@jonsykkel So then 4c0efdc seems to be the commit we introduced this bug which we bumped our tcell from v2.0.0 to v2.2.0 to use the new suspend/resume API changes. |
I have solved this issue by implementing the open command found in #384 and setting xdg-open as my $OPENER environment variable. Not familiar with how openers are usually handled especially given that this is cross-platform, but maybe this should be set as the default open command and automatically set the opener variable to the correct value. |
Opening and closing an image through lf might crash lf and use all of the user's CPU. This is a known error: see gokcehan/lf#621. Adding a small delay seems to fix this bug.
@gokcehan i cannot reproduce this issue after moving to wayland some years ago. |
Sometimes, if I open 3 or 4 .jpg images in a row, when I close feh with
q
,lf
returns to an empty terminal, using all of my cpu.What is a way to debug this?
Thanks.
my config:
The text was updated successfully, but these errors were encountered: