NikitaIvanovV / ctpv

Image previews for lf file manager
https://www.nikitaivanov.com/man1/ctpv
MIT License
264 stars 24 forks source link

Image previews suddenly stopped working #37

Open yogeshdnumb opened 1 year ago

yogeshdnumb commented 1 year ago

It now uses exiftool and stoped using ueberzug I also tried opening lf in kitty but no image preview there too I did'nt change anything it was working fine before I use archlinux and alacritty in x11(dwm)

NikitaIvanovV commented 1 year ago

I tried reproducing the issue using X11, dwm and alacritty but image previews worked fine. Do the previews still not work?

rEnr3n commented 1 year ago

I have this issue now as well with archlinux + alacritty. Didn't make any changes to config.

However, if I open lf in a tmux session it works fine.

Zweihander-Main commented 1 year ago

Same problem for around the last 1-2 weeks, same setup (arch/alacritty/dwm) -- also occured using stpv, st terminal, and switching package from ueberzug to AUR ueberzugpp.

Workarounds which worked:

ueberzug layer (using either package) gave no errors and setting the debug flag in ctpv showed something like:

Running preview: image
Preview failed: image
Exiftool output ...

---- To Add:

$ tail -f /tmp/ue.log | ueberzug layer
$ echo '{"action":"add","identifier":"preview","max_height":0,"max_width":0,"path":"/test.jpg","x":0,"y":0}' >> /tmp/ue.log

works (shows image) using the pip package and under tmux but doesn't in the other mentioned cases. It fails silently showing nothing and sometimes freezes the terminal running ueberzug layer (which then requires a -SIGKILL to get rid of it).

sr-prog commented 1 year ago

Just want to mention I am having the same issue when using ueberzug, and the workaround with tmux works as well. As for ueberzug-bak pip package that doesn't work for me at all with or without tmux even though ueberzug binary is in path. So for now I am using kitty icat.

NikitaIvanovV commented 1 year ago

@rEnr3n @Zweihander-Main @sr-prog It seems like it started happening to you pretty recently. What distros do you use? If it's something like Arch, maybe it updated something and broke?

sr-prog commented 1 year ago

@NikitaIvanovV I'm using Arch, it might have something to do with the python 3.11 upgrade? I'm not sure.

harishnkr commented 1 year ago

Since the author of Ueberzug has decided to archive it, I suggest that to be the problem. Can anyyone try using chafa support and see if it is working properly? I had some random glyphs pop up instead of a clear image.

rEnr3n commented 1 year ago

It suddenly works now. I'm not sure which package caused the issue.

harishnkr commented 1 year ago

I switched from ueberzug to ueberzugpp, works just like before. Donno how it works all fine suddenly @rEnr3n .

rEnr3n commented 1 year ago

I just use ueberzug package on archlinux. I never installed ueberzugpp. Maybe an issue with cache?

rEnr3n commented 1 year ago

I updated my system yesterday and it broke again. It's even broken inside tmux. I've switched to ueberzugpp to make it work again.

harishnkr commented 1 year ago

Yeah. It must be the new default ig

sr-prog commented 1 year ago

same, broke again for me as well after system update

UPDATE: It works again after upgrading to 18.2.2-1 on Arch Linux

harishnkr commented 1 year ago

Same, the newest version update broke everything. Need some stable replacement for ueberzugpp now. Or maybe they'll fix it soon

NikitaIvanovV commented 1 year ago

Can anyone inform me if ueberzug or ueberzugcpp works on your machine?

harishnkr commented 1 year ago

Ueberzugpp works. It's aliased to ueberzug by default. There are bugs from time to time, the image preview pops up on another position in the terminal. Building it is also a pain since one of its optional dependency doesn't work. But that's what I use. Probably want to switch to another option in the future.

yogeshdnumb commented 1 year ago

Can anyone inform me if ueberzug or ueberzugcpp works on your machine?

latest version of ueberzug from arch repo works on my archlinux machine