derf / feh

a fast and light image viewer
https://feh.finalrewind.org
Other
1.51k stars 159 forks source link

feh on a remote machine #534

Open hme12 opened 4 years ago

hme12 commented 4 years ago

What I want to do:

Issue a command to a remote raspberry pi to view an image on my local machine.

The versions I use:

Raspbian: Buster
Kernel: 4.19.118-v7+ #1311 feh: 3.1.3 Imlib2: 1.5.1

The command I use:

/usr/bin/feh -g 800x450 -B black --title "%n" $picture

$picture is a jpeg. I tried a png also.

I can connect to the raspberry via vnc. When I issue the command the image appears on the HDMI-display that is connected to the raspberry. That is fine.

When I connect from my local machine (Linux Mint 19.2 Tina) using ssh, the command hangs forever. I have to kill it with signal -9. No image is shown. And yes, I use "-X" with my ssh-command. The command "lxterminal" for instance gives me a terminal on my local display. Other commands with graphical output work also as expected.

Before I updated the raspberry, I had OS-Version Stretch with feh 2.18 and Imlib2 1.4.8.

Then it worked fine.

I downloaded several versions of feh to be able to activate debugging and to insert print-statements to find the problem. I found that the call to "imlib_render_image_on_drawable" in function "gib_imlib_render_image_on_drawable" in the file gib_imlib.c on line 152 hangs and does not return. The arguments are (x = 0, y = 0). I think that's ok.

I tried to compile several versions of imlib2 but had too many errors. So I could not follow the problem into the imlib2 sources. I'm sorry.

What is wrong?

i5513 commented 4 years ago

Try using sshfs , It will work!