Python console crashes for some pasted code in GIMP 2.99.6
Environment/Versions
- GIMP version: GIMP 2.99.6
- Package: Installer from gimp.org
- Operating System: Windows10
I have no ideas why this plugin crashed in GIMP 2.99.6 in win10 system
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Download codes from https://github.com/Beinsezii/bsz-gimp-plugins into GIMP 2.99.6 (in win10)
- Change file from "sys.path.append(os.path.dirname(os.path.realpath(file)) + '/../')" into real file path of the current plugin file
- Open python-fu from Filters/Development/Python-Fu
- Paste all codes into the console then you would get this bug
…
Expected result: Generate a new plugin under Image/plugin_name
Actual result: Plug-in crashed: "python-console.py" (C:\Program Files\GIMP 2.99\lib\gimp\2.99\plug-ins\python-console\python-console.py)
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.
Additional information
GNU Image Manipulation Program version 2.99.6
git-describe: GIMP_2_99_6
Build: unknown rev 0 for windows
# C compiler #
Using built-in specs.
COLLECT_GCC=W:/msys64-gtk3/mingw64/bin/gcc.EXE
COLLECT_LTO_WRAPPER=W:/msys64-gtk3/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-10.2.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++,jit --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --disable-plugin --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev11, Built by MSYS2 project' --with-bugurl=https://github.com/msys2/MINGW-packages/issues --with-gnu-as --with-gnu-ld --with-boot-ldflags='-pipe -Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high -Wl,--disable-dynamicbase -static-libstdc++ -static-libgcc' 'LDFLAGS_FOR_TARGET=-pipe -Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high' --enable-linker-plugin-flags='LDFLAGS=-static-libstdc++/ -static-libgcc/ -pipe/ -Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high/ -Wl,--stack,12582912'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Rev11, Built by MSYS2 project)
# Libraries #
using babl version 0.1.86 (compiled against version 0.1.86)
using GEGL version 0.4.30 (compiled against version 0.4.30)
using GLib version 2.68.1 (compiled against version 2.68.1)
using GdkPixbuf version 2.42.4 (compiled against version 2.42.4)
using GTK+ version 3.24.29 (compiled against version 3.24.29)
using Pango version 1.48.4 (compiled against version 1.48.4)
using Fontconfig version 2.13.93 (compiled against version 2.13.93)
using Cairo version 1.17.4 (compiled against version 1.17.4)
GIMP-WARNING: gimp-2.99.exe: gimp_wire_read(): error