You are not logged in.
I have been using gpicview as image viewer for over a decade. My desktop environment is now KDE, but i like the simplicity of gpicview and hate the KDE image viewer. Recently, I only get segfaults when running "gpicview <path/to/image.png>. It does not matter which file format it is, all are crashing. When I debug this with gdb (no debug build, just the repo build), then I get:
(gdb) run test.png
Starting program: /usr/bin/gpicview test.png
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff32006c0 (LWP 13626)]
[New Thread 0x7fffea8006c0 (LWP 13627)]
[New Thread 0x7ffff28006c0 (LWP 13628)]
[New Thread 0x7ffff1e006c0 (LWP 13629)]
[New Thread 0x7ffff14006c0 (LWP 13630)]
[New Thread 0x7fffebe006c0 (LWP 13631)]
Thread 1 "gpicview" received signal SIGSEGV, Segmentation fault.
0x00007ffff7e6bbf4 in XRootWindowOfScreen () from /usr/lib/libX11.so.6
(gdb) bt full
#0 0x00007ffff7e6bbf4 in XRootWindowOfScreen () at /usr/lib/libX11.so.6
#1 0x0000555555562f8d in ??? ()
#2 0x000055555555b28c in ??? ()
#3 0x00007ffff6ee0cd0 in ??? () at /usr/lib/libc.so.6
#4 0x00007ffff6ee0d8a in __libc_start_main () at /usr/lib/libc.so.6
#5 0x000055555555b4a5 in ??? ()
So it crashes in "XRootWindowOfScreen" function. My suspicion is that there was a recent upgrade for KDE from X11 to wayland and gpicview somehow is not compatible. Is there any way to solve this?
PS: My perfect image viewer only does this:
views all pictures within a directory when the directory is passed as command line argument
I can use left and right arrow keys to navigate through the alphabetically sorted pictures of the current directory.
The arrow key navigation wraps around, i.e. I can go from last picture to first one by pressing right arrow key.
"loupe" fails the first and third one. If you have a replacement suggestions for the (unmaintained?) gpicview which ticks all the points above, please tell me.
Last edited by moep (2024-03-27 21:41:42)
Offline
My suspicion is that there was a recent upgrade for KDE from X11 to wayland and gpicview somehow is not compatible. Is there any way to solve this?
Have you tried to log into as KDE/X11 session (you can still choose that, only the default changed)
PS: My perfect image viewer only does this:
feh?
Offline
Have you tried to log into as KDE/X11 session (you can still choose that, only the default changed)
This actually solved the segmentation fault, but is not a long-term solution.
feh?
Thanks, just added "alias gpicview=feh" to my ~/.bash_aliases file
Offline
Have the same problem but doesn't get the get the solution from the said sentence
just added "alias gpicview=feh" to my ~/.bash_aliases file
Can someone elaborate the solution
Offline
Moep replaced gpicview with feh.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Online