Gimp-Forum.net

Full Version: Gimp 2.10 crashing every time I try to cut or copy
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I hope someone here will help with a problem that repeatedly happens and basically (overnight, it seems!) has made GIMP unusable:

I open a photo.  Highlight some area.  Hit either Edit > Cut, Edit > Copy, or Cntl-x or Cntl-c, and poof, GIMP crashes.  Every time.

It doesn't seem to matter the size of the document or area I'm trying to copy.

I saw some thread on another forum saying if on has CopyQ installed that may cause issues, but I don't believe I do.  (I'm running Lubuntu 20.04LTS, a vanilla install, nothing modified.  It's LXQt, if that matters.  And my system is a newish Dell with 40GB of RAM, so I doubt it's a memory problem.)

I desperately need to fix this or find a work around.  Here's the output when I run GIMP from the command line:

me@home:~$ gimp
using gegl copy

(gimp:248888): Gdk-CRITICAL **: 22:06:25.414: IA__gdk_window_get_events: assertion 'GDK_IS_WINDOW (window)' failed

(gimp:248888): Gdk-CRITICAL **: 22:06:25.414: IA__gdk_window_set_events: assertion 'GDK_IS_WINDOW (window)' failed
The program 'gimp' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 95997 error_code 3 request_code 18 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

(script-fu:248910): LibGimpBase-WARNING **: 22:06:25.457: script-fu: gimp_wire_read(): error

Thank you in advance for any help.
I used to have the same problem when xnviev was open at the same time.
Maybe that's the case for you, too?
Always willing to give a try-out.  Lubuntu 20.04, installed in a VM  Default Gimp is 2.10.18 - is that the version you use.


edit: Another look.
Quote:I open a photo.  Highlight some area.
Large selections, they crash Gimp, 
Copy / paste / cut using menu or ctrl-c / v / x working here. I see the default clipboard is qlipper, that can save images as well as text. You could try clearing / turning that off. Turn qlipper off, seems large (sometimes small - all a bit flakey) graphic clips too much for it.

If you need a basic text only clipboard then parcellite is ok.

As Nelo wrote, some other application maybe causing the problem. Run htop, that might give some clues. screenshot.  https://i.imgur.com/6FcyJRb.jpg
Had a similar problem due to my clipboard manager (klipper). Fixed by telling it to not consider images(*).

(*) Images (and other big stuff) are not really copied to the clipboard, the copying application just publishes a handle, and pasting applications use the handle to copy the data (if ever necessary) directly from the source app.
Thank you all for the suggestions. Sure enough, Qlipper was running in the system tray and when I quit it, I could cut and copy again. HUGE RELIEF. Thank you!!! I've also gone to the Lubuntu icon > Preferences > LXQt Settings > System Settings > Autostart and unclicked the Qlipper option there. So hopefully this will keep that from happening the next time I reboot.

Very appreciative of your help.
(10-23-2020, 12:46 PM)thesun Wrote: [ -> ]Thank you all for the suggestions.  Sure enough, Qlipper was running in the system tray and when I quit it, I could cut and copy again.  HUGE RELIEF.  Thank you!!!  I've also gone to the Lubuntu icon > Preferences > LXQt Settings > System Settings > Autostart and unclicked the Qlipper option there.  So hopefully this will keep that from happening the next time I reboot.  

Very appreciative of your help.

If Qlipper is like Klipper you can keep it around (after all its ivery useful) but it should have an option to not deal with images, which would keep Gimp happy without having to totally disable it.

[attachment=5101]
(10-23-2020, 03:35 AM)thesun Wrote: [ -> ]I hope someone here will help with a problem that repeatedly happens and basically (overnight, it seems!) has made GIMP unusable:

I open a photo.  Highlight some area.  Hit either Edit > Cut, Edit > Copy, or Cntl-x or Cntl-c, and poof, GIMP crashes.  Every time.

It doesn't seem to matter the size of the document or area I'm trying to copy.

I saw some thread on another forum saying if on has CopyQ installed that may cause issues, but I don't believe I do.  (I'm running Lubuntu 20.04LTS, a vanilla install, nothing modified.  It's LXQt, if that matters.  And my system is a newish Dell with 40GB of RAM, so I doubt it's a memory problem.)

I desperately need to fix this or find a work around.  Here's the output when I run GIMP from the command line:

me@home:~$ gimp
using gegl copy

(gimp:248888): Gdk-CRITICAL **: 22:06:25.414: IA__gdk_window_get_events: assertion 'GDK_IS_WINDOW (window)' failed

(gimp:248888): Gdk-CRITICAL **: 22:06:25.414: IA__gdk_window_set_events: assertion 'GDK_IS_WINDOW (window)' failed
The program 'gimp' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 95997 error_code 3 request_code 18 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

(script-fu:248910): LibGimpBase-WARNING **: 22:06:25.457: script-fu: gimp_wire_read(): error

Thank you in advance for any help.

Hi,
I face this problem with gimp when the "Barrier" application is started , or maybe another application you have has the conflict with.
(10-23-2020, 09:32 AM)nelo Wrote: [ -> ]I used to have the same problem when xnviev was open at the same time.
Maybe that's the case for you, too?

Same problem on:


LinuxMint 20.3 Cinnamon
Kernel: 5.4.0-122-generic
Gimp: 2.10.24
XnView MP Linux Version 0.98.4 64bits (May 31 2021)


After XnView was closed, problem with copy to clipboard disappeared.
Thanks for advice.
(07-23-2022, 07:42 AM)Ofnuts Wrote: [ -> ]See: https://gitlab.gnome.org/GNOME/gimp/-/issues/789

Are Folders/Temporary and Folders/Swap correctly set?