You are not logged in.

#1 2024-02-12 01:19:12

onexused
Member
Registered: 2009-10-07
Posts: 117

GIMP setting causing freezes when opening images?

I think this is caused by a setting in GIMP, though I don't know which one since it's fixed by renaming ~/.config/GIMP.  Does anyone have insight so I can keep all my others?

Sometimes for long periods, trying to open an image with gimp fails.  If I "open with" from Thunar, gimp shows up in `ps` but the window never opens.  If I open gimp then try to open an image from the File > Open dialog, the first thing I notice is that I don't see a thumbnail to the right of the file list as I expect for most files.  It just says it's creating the preview. If I wait long enough, Xorg freezes. Trying to open an image from here doesn't work, either: the Open dialog greys out but doesn't disappear.
I notice a process running "file-png" or "file-jpeg" (depending) which apparently belongs to gimp ( /usr/lib/gimp/2.0/plug-ins/file-png/file-png ) which will *not* die, even with `kill -9` or `kill -11`. If I close gimp, the window disappears, but the process stays open and also will not die.
If I kill X with ctrl+alt+bksp, these processes stay alive. If I do this after X has frozen, I get back to a terminal (I start X with startx) and after waiting for X to shut down get a message that it is taking a long time to stop, then refused to die.
Eventually, file-png, gimp, and Xorg processes will stop and I can restart X.  I think the first time I had this issue was a couple months ago.  I don't know what changed to cause it to start working again.

Slightly older versions (my pacman cache doesn't have anything older than 2.10.32) and the flatpak version from gimp.org do the same thing.
Everything's up to date according to pacman, and I have plenty of space in my root and home partitions.

Edit: Possible leads:
- I remember changing a setting a long time ago at the recommendation of a forum or IRC member having something to do with memory. "shm"? I don't remember why.
- I have a Veikk drawing tablet with a binary driver which shows up in gimp's input devices, though I don't use it with gimp.

Last edited by onexused (2024-02-12 01:26:37)

Offline

#2 2024-02-12 05:38:30

mpan
Member
Registered: 2012-08-01
Posts: 1,612
Website

Re: GIMP setting causing freezes when opening images?

Inability to kill a process suggests it’s already finished (but not collected by its parent) or in non-interruptible sleep (typically I/O). Determining, which state it is in, may help in debugging. If you’re using htop, `ps`, or `top`, the state colum indicates process state: “D” for interruptible sleep, “Z” for zombie.

You noted, that the configuration affects the problem. Did you try to simply diff old and new configuration and find the changes?

The tablet shouldn’t affect file-opening plug-ins (`file-png`, `file-jpeg`). A mention of “/dev/shm” doesn’t ring any bells to me in relation to GIMP.

Offline

#3 2024-02-12 09:21:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,547

Re: GIMP setting causing freezes when opening images?

~/.config/GIMP/ contains one or more subirs w/ a bunch of files in them - have you already tried moving away just  ~/.config/GIMP/2.10/pluginrc ?

Offline

#4 2024-02-12 23:10:46

onexused
Member
Registered: 2009-10-07
Posts: 117

Re: GIMP setting causing freezes when opening images?

I now cannot reproduce the error with either the old nor new configs (renaming the whole directories). This is annoying. Sorry for wasting your time.

Offline

Board footer

Powered by FluxBB