On Windows GIMP 2.10.24 Script-fu plug-in crashes at startup
OS: Windows 10 64 bits
GIMP: 2.10.24 installed from the installer that's at this moment not officially published yet but available.
When starting GIMP the Script-fu plug-in crashes at startup. This also makes it impossible to run any script-fu script in GIMP.
This was working fine in 2.10.22. The location where it crashes in script-fu hasn't changed in a long time. Maybe there was a change in how it was built? This seems to be a Windows only issue since Jehan couldn't reproduce on Linux.
Based on the crashlog (see below) it crashes when initializing the script-fu plug-in when it is apparently allocating memory.
The console (when running with --verbose --console-messages
) shows:
(...)
Parsing 'C:\Users\Jacob\AppData\Roaming\GIMP\2.10\pluginrc'
Querying plug-in: 'D:\ProgramData\GIMP 2\lib\gimp\2.0\plug-ins\file-rawtherapee\file-rawtherapee.exe'
Querying plug-in: 'D:\ProgramData\GIMP 2\lib\gimp\2.0\plug-ins\file-darktable\file-darktable.exe'
Initializing plug-in: 'D:\ProgramData\GIMP 2\lib\gimp\2.0\plug-ins\file-rawtherapee\file-rawtherapee.exe'
Initializing plug-in: 'D:\ProgramData\GIMP 2\lib\gimp\2.0\plug-ins\file-heif\file-heif.exe'
Initializing plug-in: 'D:\ProgramData\GIMP 2\lib\gimp\2.0\plug-ins\file-darktable\file-darktable.exe'
Writing 'C:\Users\Jacob\AppData\Roaming\GIMP\2.10\pluginrc'
Starting extension: 'extension-script-fu'
D:\ProgramData\GIMP 2\bin\gimp-2.10.exe: LibGimpBase-WARNING: gimp-2.10.exe: gimp_wire_read(): error
GIMP-Error: Plug-in crashed: "script-fu.exe"
(D:\ProgramData\GIMP 2\lib\gimp\2.0\plug-ins\script-fu\script-fu.exe)
The dying plug-in may have messed up GIMP's internal state. You may want to save your images and restart GIMP to be on the safe side.
INIT: gui_restore_after_callback
(...)
The crashlog shows:
Error occurred on Tuesday, March 30, 2021 at 13:14:55.
script-fu.exe caused an Access Violation at location 00007FF73291C480 in module script-fu.exe Writing to location 0000000030502880.
AddrPC Params
00007FF73291C480 0000002D069FF850 00007FF99D339C9C 0000002D069FF9B4 script-fu.exe!alloc_cellseg [W:/msys64-gtk2/home/ender/gimp/gimp-2.10.24/plug-ins/script-fu/tinyscheme/scheme.c @ 646]
00007FF732926AB6 0000020C2FCA6780 0000000000000000 0000000000000000 script-fu.exe!scheme_init_custom_alloc [W:/msys64-gtk2/home/ender/gimp/gimp-2.10.24/plug-ins/script-fu/tinyscheme/scheme.c @ 4970]
00007FF73291B323 0000002D069FF9C0 0000020C2FCA5BE0 00007FF732911980 script-fu.exe!tinyscheme_init [W:/msys64-gtk2/home/ender/gimp/gimp-2.10.24/plug-ins/script-fu/scheme-wrapper.c @ 144]
00007FF7329117C8 0000002D069FF9D0 0000020C2FC85A10 0000020C2E230860 script-fu.exe!script_fu_run [W:/msys64-gtk2/home/ender/gimp/gimp-2.10.24/plug-ins/script-fu/script-fu.c @ 196]
00007FF939842A46 0000000000000005 0000000000000002 00007FF732947518 libgimp-2.0-0.dll!gimp_main [W:/msys64-gtk2/home/ender/gimp/gimp-2.10.24/libgimp/gimp.c @ 2453]
00007FF7329113C1 0000000000000000 0000000000000000 0000000000000000 script-fu.exe!__tmainCRTStartup [C:/_/M/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c @ 321]
00007FF7329114D6 0000000000000000 0000000000000000 0000000000000000 script-fu.exe!WinMainCRTStartup [C:/_/M/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c @ 176]
00007FF99F1C7034 0000000000000000 0000000000000000 0000000000000000 KERNEL32.DLL!BaseThreadInitThunk
00007FF99F302651 0000000000000000 0000000000000000 0000000000000000 ntdll.dll!RtlUserThreadStart
script-fu.exe 2.10.24.0
ntdll.dll 10.0.19041.844
KERNEL32.DLL 10.0.19041.804
KERNELBASE.dll 10.0.19041.804
apphelp.dll 10.0.19041.572
msvcrt.dll 7.0.19041.546
USER32.dll 10.0.19041.746
win32u.dll 10.0.19041.867
GDI32.dll 10.0.19041.746
libgimpconfig-2.0-0.dll
libgimpui-2.0-0.dll
libgimp-2.0-0.dll
gdi32full.dll 10.0.19041.746
msvcp_win.dll 10.0.19041.789
libgimpbase-2.0-0.dll
ucrtbase.dll 10.0.19041.789
ole32.dll 10.0.19041.746
libgimpcolor-2.0-0.dll
libgimpwidgets-2.0-0.dll
RPCRT4.dll 10.0.19041.746
WS2_32.dll 10.0.19041.546
combase.dll 10.0.19041.844
SHELL32.dll 10.0.19041.844
libglib-2.0-0.dll 2.68.0.0
libgio-2.0-0.dll 2.68.0.0
libgimpmath-2.0-0.dll
ADVAPI32.dll 10.0.19041.610
sechost.dll 10.0.19041.789
SHLWAPI.dll 10.0.19041.746
libgobject-2.0-0.dll 2.68.0.0
libintl-8.dll 0.19.8.0
libgimpmodule-2.0-0.dll
libgdk-win32-2.0-0.dll 2.24.33.0
libcairo-2.dll
libbabl-0.1-0.dll
IMM32.dll 10.0.19041.546
libgdk_pixbuf-2.0-0.dll 2.42.2.0
libgexiv2-2.dll
exchndl.dll 0.8.2.0
PSAPI.DLL 10.0.19041.546
libgtk-win32-2.0-0.dll 2.24.33.0
libgegl-0.4-0.dll
comdlg32.dll 10.0.19041.844
shcore.dll 10.0.19041.746
liblcms2-2.dll
libpango-1.0-0.dll 1.48.4.0
libpangocairo-1.0-0.dll 1.48.4.0
libffi-7.dll
DNSAPI.dll 10.0.19041.746
IPHLPAPI.DLL 10.0.19041.546
libiconv-2.dll 1.16.0.0
libwinpthread-1.dll 1.0.0.0
libpcre-1.dll
zlib1.dll
libgmodule-2.0-0.dll 2.68.0.0
libgcc_s_seh-1.dll
libfontconfig-1.dll
libfreetype-6.dll 2.10.4.0
MSIMG32.dll 10.0.19041.546
libpixman-1-0.dll
libpng16-16.dll
libstdc++-6.dll
libexiv2.dll
gdiplus.dll 10.0.19041.789
mgwhelp.dll 0.8.2.0
VERSION.dll 10.0.19041.546
COMCTL32.dll 5.82.19041.844
libatk-1.0-0.dll 2.36.0.0
WINSPOOL.DRV 10.0.19041.746
libpangowin32-1.0-0.dll 1.48.4.0
libfribidi-0.dll
libharfbuzz-0.dll
libthai-0.dll
libpangoft2-1.0-0.dll 1.48.4.0
libexpat-1.dll
libbrotlidec.dll
libbz2-1.dll
dbghelp.dll 6.3.9600.17298
libcurl-4.dll
CRYPT32.dll 10.0.19041.844
WLDAP32.dll 10.0.19041.546
libgraphite2.dll
USP10.dll 10.0.19041.546
libdatrie-1.dll
libbrotlicommon.dll
libcrypto-1_1-x64.dll 1.1.1.11
libidn2-0.dll
libnghttp2-14.dll
libpsl-5.dll
libssh2-1.dll
libssl-1_1-x64.dll 1.1.1.11
libzstd.dll
libunistring-2.dll 0.9.10.0
NSI.dll 10.0.19041.610
windows.storage.dll 10.0.19041.844
Wldp.dll 10.0.19041.662
kernel.appcore.dll 10.0.19041.546
bcryptPrimitives.dll 10.0.19041.662
uxtheme.dll 10.0.19041.746
A-Volute.NahimicDevProps2.dll 2.5.11.0
OLEAUT32.dll 10.0.19041.804
CFGMGR32.dll 10.0.19041.546
clbcatq.dll 2001.12.10941.16384
propsys.dll 7.0.19041.867
profapi.dll 10.0.19041.844
BCRYPT.DLL 10.0.19041.662
winhttp.dll 10.0.19041.844
Windows 10.0.19041
DrMingw 0.8.2
@schumaml on IRC confirmed that this is also happening for him "confirming, script-fu doesn't work at all, any script-fu entry in the menus".
I re installed 2.10.22 to make sure it worked there and yes, script-fu doesn't crash there and script-fu scripts work.