Attempting to crop an image causes Gimp to hang
Environment/Versions
- GIMP version:
- Package: Gimp-2.99 from GIT Master
- Operating System: Fedora 36
Description of the bug
Reproduction
Is the bug reproducible?
Reproduction steps:
- Compile and install GIMP from GIT Master
- Open an image with the intention to crop it.
- Select the area to crop
…
Expected result: When I click on the area of the image that I want to keep, I expect the part of the image outside of the selected area to disappear immediately, leaving only the part that I want to keep.
Actual result: A little circular progess indicator appears, and then, I think more than five minutes later, I finally get what I described under "Expected result"
Additional information
If I don't wait for the image to finish cropping, I need to do "Ctrl-Alt-Backspace" to kill my session, since while GIMP is processing the cropping that I am attempting, my system is unusable. "Ctrl-Alt-Backspace" or rebooting is all I can do. I suppose I could "Ctrl-Alt-F2" and kill GIMP from a console session...
After I create this issue, I will attempt to crop an image and see how long it takes...
I just cropped a 2944x2177 section out of a 3236x2793 original. It took 1 minute 43 seconds to crop. I will try again with a similar image and see what result I get. My attempt at cropping a 6440x5813 image down to 6068x4107 took 2 minutes 43 seconds. These are both normal JPEG images, one from a 600dpi scan and the other from a 1200dpi scan. The 1200dpi original only took one minute more to crop than the 600dpi scan.
For the sake of comparison, if I try to crop those two images, or any other image, on a version of GIMP that I compiled on 2023-02-26, using BABL & GEGL from 2023-02-25, the expected result occurs immediately when I click on the area that I am cropping out of the larger original, as opposed to a one to two minute delay that hangs my graphical session until it completes.
If you have a backtrace for a crash or a warning, paste it here. (gjs:1306395): Gjs-CRITICAL **: 19:00:19.733: JS ERROR: Error: Requiring Gimp, version 3.0: Typelib file for namespace 'Gimp', version '3.0' not found @/usr/local/spu/assorted/g/gimp/gimp-20230514/lib64/gimp/2.99/extensions/org.gimp.extension.goat-exercises/goat-exercise-gjs.js:26:14
(gjs:1306395): Gjs-CRITICAL **: 19:00:19.734: Script /usr/local/spu/assorted/g/gimp/gimp-20230514/lib64/gimp/2.99/extensions/org.gimp.extension.goat-exercises/goat-exercise-gjs.js threw an exception GIMP-WARNING: gimp-2.99: gimp_wire_read(): error
I looked at the file that I sent the output of the terminal to, and the above jumped out at me. I have no idea why, I am NOT a programmer... I installed gjs-devel from the offical Fedora 36 repo, and this appears to have fixed my problem. Perhaps gjs-devel should be a dependency on Fedora 36 and similar distros? Again, I am NOT an expert, just an interested user.