Python script bucket fill works on 2.10.12, fails on 2.10.14
GIMP version: 2.10.14
Note: bug reporters are expected to have verified the bug still exists either in the last stable version of GIMP or on updated development code (master branch).
Operating System: Linux
Package: Both Arch Linux package and Flatpak package
Description of the bug
I have confirmed a regression by using Flatpak. I was receiving this error when running a script I wrote which worked fine before I updated GIMP:
Opening pngs/three.png and writing to styleB/three.1.png
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
GeglBuffer* gimp_pickable_contiguous_region_by_seed(GimpPickable*, gboolean, gfloat, gboolean, GimpSelectCriterion, gboolean, gint, gint): foo took 0.0000 seconds
gimp-2.10: GEGL-WARNING: (../gegl/buffer/gegl-tile-handler-cache.c:1076):gegl_tile_cache_destroy: runtime check failed: (g_queue_is_empty (&cache_queue))
EEEEeEeek! 29 GeglBuffers leaked
The expected stdout is similar, just without the line about gimp_pickable_contiguous_region_by_seed
.
The problem line appears during running of command:
pdb.gimp_edit_bucket_fill(im.active_drawable, 0, 0, 100, 255, True, 1.0, 1.0)
The script is run via:
gimp -idf --batch-interpreter=python-fu-eval -b - < styleB.py
I was able to avoid the problem temporarily by not using my system GIMP. I first tried running stable GIMP from Flatpak this way:
flatpak install https://flathub.org/repo/appstream/org.gimp.GIMP.flatpakref
Then run my script via:
flatpak run org.gimp.GIMP -idf --batch-interpreter=python-fu-eval -b - < styleB.py
But I got the same dreaded gimp_pickable_contiguous_region_by_seed
error. I had to downgrade my Flatpak GIMP:
sudo flatpak update --commit=798d8cd8a6a2ccf1bf21c0f5e9749dd4d97ecd511a3af1922d6fedf6c26e3a7c org.gimp.GIMP
Now it works.
$ ./styleB.sh pngs/three.png 11 1
Gtk-Message: 11:32:40.677: Failed to load module "canberra-gtk-module"
GIMP-Error: Error while parsing '/home/fred/.var/app/org.gimp.GIMP/config/GIMP/2.10/templaterc' in line 9: unexpected number '300', expected number (float) - fatal parse error
GIMP-Error: Skipping '/home/fred/.var/app/org.gimp.GIMP/config/GIMP/2.10/pluginrc': wrong GIMP protocol version.
Gtk-Message: 11:32:41.227: Failed to load module "canberra-gtk-module"
Opening pngs/three.png and writing to styleB/three.1.png
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
using gegl copy
gimp-2.10: GEGL-WARNING: (gegl-tile-handler-cache.c:1076):gegl_tile_cache_destroy: runtime check failed: (g_queue_is_empty (&cache_queue))
EEEEeEeek! 31 GeglBuffers leaked
But this is not a long term solution. I hope it can be fixed.
I attached some files. This is a very bad bug, I hope it can be fixed.build.zip