GIMP crashes after selecting a region and then trying to cut or copy
Submitted by sco..@..ol.com
Link to original bug (#790355)
Description
Created attachment 363652 Blank cash receipt form. Rectangle-select the bottom receipt from just below the dotted line separating the two receipts. "Edit->Cut" or "Edit->Copy" (for me) results in a crash.
I have a scanned .jpeg that has two blank cash receipt forms on it.
I successfully changed the heading for each from "Cash Receipts" to "Cash Receipt" (removing the "s") by rectangle-selecting a small blank area a bit larger than the "s", "copy", "paste", "move tool" the blank copy over the "s", "anchor selection", and repeated the process from "paste" on for the other "s". This worked fine, and I overwrote the original .jpeg and exited.
I then noticed that the bottom receipt was rather close to the dotted line that one would use to cut the top receipt from the bottom one, and re-opened the file.
I rectangle selected the bottom receipt just below the dotted line, and (first) used "cut" to cut it out, and planned to paste and move it (further down), just as I had done with the blank space used to cover up the "s"es.
But... after about (1/2?) of the area disappeared, it paused, and GIMP then disappeared. I tried again, and then tried with "copy". Same thing.
I got almost the same output as in the 10+year-old [similar/identical?] Bug 320945 (https://bugzilla.gnome.org/show_bug.cgi?id=320945) (but I don't know how to do the stack trace. I did install the gimp-dbg package, but don't know exactly what to do with that as well - I did add --debug handlers to the command line, but the output appears about the same...):
scott@scott-Asus-M2N68-AM-PLUS:~$ gimp --sync --debug-handlers --stack-trace-mode always /data/scott/Documents/CashReceiptPage.jpeg
(gimp:6812): GLib-GObject-WARNING **: g_object_set_is_valid_property: object class 'GeglConfig' has no property named 'cache-size'
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 178809 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:6818): LibGimpBase-WARNING **: script-fu: gimp_wire_read(): error
I will attach the .jpeg so that someone can reproduce my results (perhaps with stacktrace).
As far as I can see, the only difference in success was the size of the selection.
scott@scott-Asus-M2N68-AM-PLUS:~$ uname -a
Linux scott-Asus-M2N68-AM-PLUS 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
scott@scott-Asus-M2N68-AM-PLUS:~$ lsb_release -dsc
Ubuntu 17.10
artful
scott@scott-Asus-M2N68-AM-PLUS:~$ echo $DESKTOP_SESSION
QLubuntu
scott@scott-Asus-M2N68-AM-PLUS:~$ gimp --version
GNU Image Manipulation Program version 2.8.22
scott@scott-Asus-M2N68-AM-PLUS:~$ apt-cache policy gimp
gimp:
Installed: 2.8.22-ubu17.10.1~ppa
Candidate: 2.8.22-ubu17.10.1~ppa
Version table:
*** 2.8.22-ubu17.10.1~ppa 500
500 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu artful/main amd64 Packages
100 /var/lib/dpkg/status
2.8.20-1 500
500 http://us.archive.ubuntu.com/ubuntu artful/universe amd64 Packages
Attachment 363652, "Blank cash receipt form. Rectangle-select the bottom receipt from just below the dotted line separating the two receipts. "Edit->Cut" or "Edit->Copy" (for me) results in a crash.":
Version: gimp-2-