GIMP-2.10 Crashes During File Export
Environment/Versions
- GIMP version:2.10.24
- Package:
- Operating System: macOS Big Sur Version 11.6
Description of the bug
Reproduction
Is the bug reproducible? Randomly
Reproduction steps: NOTE: This is a procedure for scaling a set of JPEG images. All the images are at the same scale initially and they are all to be converted to the same target scale. I really wish I knew how to write a macro for this.
- Pull down the "Image" menu and type "S" to select "Scale Image...". This opens the "Scale Image" dialog box.
- The existing "Width:", "Height:", "X resolution:", and "Y resolution:" numbers are respectively "2160", "1620", "96", and "96".
- Change "Width:" to "3000". Forward tab to "X resolution:" and change to "100". This automatically updates "Height:" to "2250". Back tab to the "Scale" button. This automatically updates "Y resolution :" to "100". These are the desired numbers.
- Having used back tab to the "Scale" button, left click it by pressing the "Enter" key. The image is scaled properly.
- Press the shortcut keys "Shift+Command+E" to left click the "Export As..." menu. This opens the "Export Image" dialog box.
- Back tab to the "Export" button and left click it by pressing the "Enter" key. This opens a warning box stating that a file with that name already exists. The box's "Replace" button is already selected. Left click it by just pressing the "Enter" key. This opens the "Export Image as JPEG" dialog box.
NOTE: When the crash occurs, it starts at this step. If a crash is not imminent, the warning box disappears and only the "Export Image as JPEG" dialog box is displayed. If a crash will occur, the warning box is layered underneath the dialog box. A successful procedure without a crash continues as follows:
- Back tab to the "Export" button and left click it by pressing the "Enter" key.
NOTE: If a crash will occur, this is when it happens.
- The file will be exported and overwrite its previous version. Press the shortcut keys "Command+W" to left click the "Close View" menu. This opens the "Close" dialog box.
- Forward tab to the "Discard Changes" button and press the "Enter" key to left click it. This closes the exported image and displays the next image for scaling.
Expected result: The file will be properly scaled, overwritten, and closed.
Actual result: On random occasions, GIMP will crash while attempting the overwrite. If Gimp is closed and reopened, the file can be retrieved. Both the retrieved and source file are always properly scaled to the target size. The retrieved version is named "untitled" and can be used to overwrite the source.
Additional information
If you have a backtrace for a crash or a warning, paste it here.
GNU Image Manipulation Program version 2.10.24
git-describe: Unknown, shouldn't happen
Build: org.gimp.GIMP_official rev 0 for macos
# C compiler #
Configured with: --prefix=/Applications/Xcode-10.1.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode-10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
# Libraries #
using babl version 0.1.78 (compiled against version 0.1.78)
using GEGL version 0.4.30 (compiled against version 0.4.30)
using GLib version 2.64.2 (compiled against version 2.64.2)
using GdkPixbuf version 2.40.0 (compiled against version 2.40.0)
using GTK+ version 2.24.33 (compiled against version 2.24.33)
using Pango version 1.44.7 (compiled against version 1.44.7)
using Fontconfig version 2.13.1 (compiled against version 2.13.1)
using Cairo version 1.16.0 (compiled against version 1.16.0)
fatal error: Segmentation fault: 11
Stack trace:
0 libgimpbase-2.0.0.dylib 0x000000010eb11b35 gimp_stack_trace_print + 1509
1 gimp 0x000000010db700c6 gimp_eek + 454
2 gimp 0x000000010db6fefb gimp_fatal_error + 27
3 gimp 0x000000010db70c0d gimp_sigfatal_handler + 45
4 libsystem_platform.dylib 0x00007fff2048ad7d _sigtramp + 29
5 ??? 0x00000000000000cf 0x0 + 207
6 libgtk-quartz-2.0.0.dylib 0x000000010e5d30ed confirmation_confirm_get_info_cb + 509
7 libgtk-quartz-2.0.0.dylib 0x000000010e5d83f0 query_info_callback + 64
8 libgio-2.0.0.dylib 0x000000010f2e8430 g_task_return_now + 64
9 libgio-2.0.0.dylib 0x000000010f2e847e complete_in_idle_cb + 14
10 libglib-2.0.0.dylib 0x000000010f5d4b16 g_main_context_dispatch + 326
11 libglib-2.0.0.dylib 0x000000010f5d4eb2 g_main_context_iterate + 514
12 libglib-2.0.0.dylib 0x000000010f5d520f g_main_loop_run + 239
13 gimp 0x000000010db6f8db app_run + 1083
14 gimp 0x000000010db72f37 main + 1303
15 libdyld.dylib 0x00007fff20460f3d start + 1