Crash opening XCF on master
OS: Windows Home, 64-bit.
GIMP self built current master 2da425ea. Development release 2.99.8 and stable 2.10.30 do not have this crash.
The following XCF, first linked from issue #987, crashes GIMP with the following stacktrace.
Error occurred on Saturday, January 1, 2022 at 13:00:14.
gimp-2.99.exe caused an Access Violation at location 00007FF655C9EC89 in module gimp-2.99.exe Reading from location FFFFFFFFFFFFFFFF.
AddrPC Params
00007FF655C9EC89 000002467B2D5030 00007FF655F88FE0 0000000000000000 gimp-2.99.exe!gimp_item_list_named_new
00007FF655DCD171 0000024640781770 00007FFA1B237246 0000007BB07FE3B8 gimp-2.99.exe!xcf_load_image
00007FF655DC73C0 0000000000000001 000002467B2336C0 00000246753EBCD0 gimp-2.99.exe!xcf_load_stream
00007FF655DC752D 0000024678BC4220 0000024678BAF8E0 0000024600000002 gimp-2.99.exe!xcf_load_invoker
00007FF655D98511 0000000000000002 0000024678BA5468 0000024600000000 gimp-2.99.exe!gimp_procedure_execute
00007FF655D94C0C 0000000000000036 00007FF9F8428E4D 0000000000000000 gimp-2.99.exe!gimp_pdb_execute_procedure_by_name_args
00007FF655D953DF 0000024678B988C0 0000024678BC7270 0000024675341D00 gimp-2.99.exe!gimp_pdb_execute_procedure_by_name
00007FF655CC12D1 0000024675341D00 00007FFA1B219CA0 0000024675341D00 gimp-2.99.exe!file_open_image
00007FF655CC2236 0000000000000000 00000246759D87D0 0000024670F526E0 gimp-2.99.exe!file_open_with_proc_and_display
00007FF655CC2424 0000007BB07FE600 00007FFA1B23A426 0000007BB07FE600 gimp-2.99.exe!file_open_with_display
00007FF655DE7BF9 0000000000000000 000002463E4C0000 0000024678B101E0 gimp-2.99.exe!file_open_recent_cmd_callback
00007FFA1B216F4E 000002463E3702BC 00007FFA049357F6 0000000000000000 libgobject-2.0-0.dll!g_closure_invoke
00007FFA1B229019 0000024678B213C0 00007FFA00000000 00000246759BE8B0 libgobject-2.0-0.dll!g_signal_handler_disconnect
00007FFA1B22ECA4 00000246759BE8B0 00007FFA1B2157B0 0000024600000000 libgobject-2.0-0.dll!g_signal_emit_valist
00007FFA1B22F108 0000024600000000 00007FF655B6FF90 0000007BB07FEA30 libgobject-2.0-0.dll!g_signal_emit
00007FF655B34E36 0000024600000002 00007FFA1B218D5B 0000024677744D90 gimp-2.99.exe!gimp_action_emit_activate
00007FF655B6FFDB 000002463E3702BC 00007FFA049357F6 000000000000014E gimp-2.99.exe!gimp_enum_action_activate
00007FFA1B216F4E 000002467110A500 00007FFA1B21B282 0000024600000000 libgobject-2.0-0.dll!g_closure_invoke
00007FFA1B228CA4 0000024678B21C80 0000000000000000 00000246759BE8B0 libgobject-2.0-0.dll!g_signal_handler_disconnect
00007FFA1B22ECA4 00000246759BE8B0 00007FFA1B21B301 0000024600000000 libgobject-2.0-0.dll!g_signal_emit_valist
00007FFA1B22F108 0000000000000000 00007FF9D04E6068 0000007B00000002 libgobject-2.0-0.dll!g_signal_emit
00007FF9D04E5941 01000246000137B2 0000000000000000 0000000000000000 libgtk-3-0.dll!_gtk_action_emit_activate
00007FFA1B217163 00000246768E5DA0 0000024670F8B0E0 0000007BB07FEEB8 libgobject-2.0-0.dll!g_closure_invoke
00007FFA1B22EFBB 00000246768E5DA0 00000246768E5DA0 0000024600000000 libgobject-2.0-0.dll!g_signal_emit_valist
00007FFA1B22F108 00000246768E5DA0 00007FFA2854F86B 0000000000000000 libgobject-2.0-0.dll!g_signal_emit
00007FF9D04AA68B 00000246754A6DC0 00007FF9D03528F8 0000024600000000 libgtk-3-0.dll!gtk_widget_activate
00007FF9D0356536 00007FF9D0344920 0000024678AD0350 0000024670F8B0E0 libgtk-3-0.dll!gtk_menu_shell_activate_item
00007FF9D035681D 0000007BB07FEFE0 0000000000000000 00000000000137B2 libgtk-3-0.dll!gtk_menu_shell_button_release
00007FF9D01C30C1 00000000000001EE 0000007BB07FF0C0 0000000000000000 libgtk-3-0.dll!_gtk_marshal_BOOLEAN__BOXEDv
00007FFA1B217163 0000000000000000 0000000000000000 0000000000000000 libgobject-2.0-0.dll!g_closure_invoke
00007FFA1B22E54B 0000024670F8B0E0 00007FFA1B21B282 0000024600000000 libgobject-2.0-0.dll!g_signal_emit_valist
00007FFA1B22F108 0000024670F8B0E0 00007FFA1B236AD6 0000000000000000 libgobject-2.0-0.dll!g_signal_emit
00007FF9D04A7645 0000024600000000 00007FF9D04D390A 0000024600000000 libgtk-3-0.dll!gtk_widget_event_internal.part.0
00007FF9D033D87F 0000000000000000 00007FFA049357F6 FFFFFFFF00000000 libgtk-3-0.dll!propagate_event
00007FF9D033F705 0000000000000000 00007FF9E01A34E0 0000000000000000 libgtk-3-0.dll!gtk_main_do_event
00007FF9E016F8AA 0000007BB07FF420 0000024678B2B3B0 00007FFA2A01DFD0 libgdk-3-0.dll!_gdk_event_emit
00007FF9E01A351F 00000246789B55C0 00007FF9F844BB1D 0000000000000000 libgdk-3-0.dll!gdk_event_dispatch
00007FF9F8448E74 0000000000000012 0000024676A6AEF0 0000024678CB1F10 libglib-2.0-0.dll!g_clear_list
00007FF9F844BF36 0000000155F12929 00007FF655A9474F 00000246789B55C0 libglib-2.0-0.dll!g_main_context_check
00007FF9F844C45C 00007FFA2A87AEC0 0000000000000000 0000000000000000 libglib-2.0-0.dll!g_main_loop_run
00007FF655A93BB9 0000000000000026 0000000000000000 000002463E4C0860 gimp-2.99.exe!app_run
00007FF655F0BEC0 0000000000000000 000002463FCE2690 00007FF6560F5F88 gimp-2.99.exe!main
00007FF655A913B1 0000000000000000 0000000000000000 0000000000000000 gimp-2.99.exe!__tmainCRTStartup
00007FF655A914E6 0000000000000000 0000000000000000 0000000000000000 gimp-2.99.exe!mainCRTStartup
00007FFA2A877034 0000000000000000 0000000000000000 0000000000000000 KERNEL32.DLL!BaseThreadInitThunk
00007FFA2AA62651 0000000000000000 0000000000000000 0000000000000000 ntdll.dll!RtlUserThreadStart
gimp-2.99.exe 2.99.9.0
(...)
Windows 10.0.19043
DrMingw 0.9.3
File: flyer-Herd-Canberra-600DPI-different_format.xcf
Part of the console debug output:
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.314: xcf_load_image(235): version=0, width=2339, height=4168, image_type=0, precision=150
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.317: xcf_load_image_props(944): prop compression=1
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.317: xcf_load_image_props(971): prop guide orientation=2 position=577
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.317: xcf_load_image_props(971): prop guide orientation=1 position=144
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.317: xcf_load_image_props(971): prop guide orientation=2 position=2223
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.317: xcf_load_image_props(971): prop guide orientation=2 position=120
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.317: xcf_load_image_props(1079): prop resolution x=600.000000 y=600.000000
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.317: xcf_load_image_props(1101): prop tattoo state=44
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.317: xcf_load_image_props(1146): prop unit=1
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.318: xcf_load_image(257): image props loaded
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.323: xcf_load_layer(2108): width=2339, height=1559, type=1, name='HERD pic'
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.324: xcf_load_layer(2202): layer props loaded
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.324: xcf_load_layer(2244): loading buffer
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.324: xcf_load_level(2596): loading tile 1/925
(...)
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.500: xcf_load_level(2630): loaded tile 165/165
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.500: xcf_load_layer(2250): buffer loaded
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.500: xcf_load_layer(2108): width=2339, height=4168, type=1, name='Layer'
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.501: xcf_load_layer(2202): layer props loaded
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.501: xcf_load_layer(2244): loading buffer
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.501: xcf_load_level(2596): loading tile 1/2442
(...)
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.665: xcf_load_level(2630): loaded tile 2442/2442
(gimp-2.99.exe:10156): xcf-DEBUG: 13:00:14.665: xcf_load_layer(2250): buffer loaded
D:\msys64\home\Jacob\prefix-gimp\bin\gimp-2.99.exe: fatal error: unhandled exception
(script-fu.exe:31568): LibGimpBase-WARNING **: 13:02:22.327: script-fu.exe: gimp_wire_read(): error
Restarting GIMP presents us with a dialog to recover the crashed image. This image looks fine. On comparing with 2.10.30 I see that there are several linked layers. I wonder if something went wrong with the recent changes in that area.