gimp-palette-get-colors warning and critical when accessed from Python
Environment/Versions
- GIMP version: self-built current master on Windows 10
Description of the bug
Trying to use gimp-palette-get-colors
in a Python script issue-color-array.py causes warnings and criticals:
--- Starting test run ---
-- Color Array Test --
(issue-color-array.py:64044): LibGimp-WARNING **: 18:41:14.236: _gimp_gp_param_def_to_param_spec: GParamSpec type unsupported 'GParamBoxed'
(issue-color-array.py:64044): LibGimp-CRITICAL **: 18:41:14.236: gimp_procedure_add_return_value: assertion 'G_IS_PARAM_SPEC (pspec)' failed
lookup done
create config done
Palette.get_by_name done
set property done
pdb run done
gimp-palette-get-colors returned SUCCESS
(issue-color-array.py:64044): LibGimpBase-CRITICAL **: 18:41:14.240: gimp_value_array_index: assertion 'index < value_array->n_values' failed
Traceback (most recent call last):
File "E:\gimp-resources\plug-ins-30\issue-color-array\issue-color-array.py", line 101, in run
color_array_tests()
File "E:\gimp-resources\plug-ins-30\issue-color-array\issue-color-array.py", line 60, in color_array_tests
print(f"Color array consists of {count} colors.")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'gobject.GBoxed' object has no attribute '__module__'. Did you mean: '__reduce__'?
It might also be strange that the call returned success if the paramspec is unsupported.