You are not logged in.

#1 2024-03-27 20:16:14

moep
Member
Registered: 2021-03-10
Posts: 3

[solved] gpicview 0.2.5-8 segmentation fault

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

#2 2024-03-27 21:21:17

seth
Member
Registered: 2012-09-03
Posts: 52,276

Re: [solved] gpicview 0.2.5-8 segmentation fault

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

#3 2024-03-27 21:40:57

moep
Member
Registered: 2021-03-10
Posts: 3

Re: [solved] gpicview 0.2.5-8 segmentation fault

seth wrote:

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.

seth wrote:

feh?

Thanks, just added "alias gpicview=feh" to my ~/.bash_aliases file wink

Offline

#4 2024-05-04 16:53:32

gulatihardik10
Member
Registered: 2020-01-14
Posts: 64

Re: [solved] gpicview 0.2.5-8 segmentation fault

Have the same problem but doesn't get the get the solution from the said sentence

moep wrote:

just added "alias gpicview=feh" to my ~/.bash_aliases file

Can someone elaborate the solution

Offline

#5 2024-05-04 17:01:01

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,015

Re: [solved] gpicview 0.2.5-8 segmentation fault

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

Board footer

Powered by FluxBB