GIMP plug-ins failing (related to 32-bit libraries)
Submitted by bdr..@..il.com
Link to original bug (#795999)
Description
Created attachment 371885 screenshot of error message
When running a plug-in in GIMP v2.10 with a PF_COLOR parameter, the plugin script works correctly, except it crashes when clicking on the color picker widget in the plugin dialog. It displays a error message "unable to run GimpPdbProgress callback".
The same plug-in script was working correctly in GIMP v2.8. See test script below to reproduce error.
# ---------------------------------------------------
#!/usr/bin/env python
# Dummy script to reproduce the color picker bug
# Copy plug-in file, start GIMP start plugin and click on color picker
from gimpfu import *
def fill_with_color(image, layer, thecolor, thesize):
# prepare for clean up later
prev_layer = image.active_layer
pdb.gimp_image_undo_group_start(image)
pdb.gimp_context_push()
pdb.gimp_context_set_default_colors()
# check if there is any selection
is_selection, x1, y1, x2, y2 = pdb.gimp_selection_bounds(image)
if not (is_selection):
pdb.gimp_message('There is nothing selected, create a selected region and try again.')
else:
# fill new selection with pure white color
pdb.gimp_image_select_item(image,CHANNEL_OP_REPLACE,image.active_layer)
pdb.gimp_context_set_foreground(thecolor)
pdb.gimp_edit_fill(image.active_layer,FOREGROUND_FILL)
# do clean up
pdb.gimp_context_pop()
image.active_layer = prev_layer
image.active_layer.visible = True
pdb.gimp_image_undo_group_end(image)
# pdb.gimp_displays_flush()
register(
"python_fu_test_colorpicker",
"Test Python color picker",
"Test Python color picker",
"BdR",
"BdR",
"2018",
"`<Image>`/Python-Fu/Test Python color picker", #Menu path
"",
[
(PF_COLOR, "thecolor", "select a color:", (0, 128, 255) ),
(PF_INT, "thesize", "Gaussian blur size:", 45)
],
[],
fill_with_color
)
main()
Attachment 371885, "screenshot of error message":
Version: 2.10.0
Edited by lillolollo