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

feh can crash the system #520

Closed
kpcee opened this issue Apr 7, 2020 · 2 comments
Closed

feh can crash the system #520

kpcee opened this issue Apr 7, 2020 · 2 comments

Comments

@kpcee
Copy link

kpcee commented Apr 7, 2020

I like to use feh very much but one behaviour is very annoying and can even lead to a system crash. If you open a directory with feh which also contains video files (.mp4, .mkv perhaps others too) the following happens:

If the next file is a video file, it will be loaded into memory completely, no matter how big it is. feh is completely blocked during this time and cannot be terminated, nor the file can be skipped.
Since the file is loaded into memory completely, this can cause a system crash if the video is very large or the memory is low.

The console will then display the error message

feh WARNING: ... - No Imlib2 loader for that file format

I would appreciate it very much if feh would ignore videos in a future version, or at least files above a certain size.

System: Arch Linux
Version: feh 3.3-2

@mallniya
Copy link

mallniya commented May 7, 2020

it's a duplicate of #505.

@kpcee
Copy link
Author

kpcee commented May 11, 2020

The problem can easily be solved by the following call:
find . -type f -iregex ".*\.\(jpg\|jpeg|bmp|png|pnm|tiff|gif\)$" -size -30M -print0 | xargs -0 feh

@kpcee kpcee closed this as completed May 11, 2020
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