Spyrogimp: TypeError on preview tool
Environment/Versions
- GIMP version: GIMP_2_99_16-1348-g017b82b0
- Package: Flatpak and built from source
- Operating System: Linux
Description of the bug
The Preview tool in the Spyrogimp filter does not work on git master. Quite possibly another Color Space Invasion bug since it works as expected in GIMP_2_99_16-1200-gf6ff7321
All other tools in Spyrogimp seem to work correctly.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Open an image
- Filters->Render->Spyrogimp
- Set
Tool
toPreview
…
Expected result: Preview pattern drawn
Actual result: No pattern drawn, "Rendering Pattern" message shown indefinitely in Spyrogimp window.
Additional information
Terminal output:
Traceback (most recent call last):
File "/usr/local/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/spyro-plus/spyro-plus.py", line 2184, in incremental_drawing
self.draw_next_chunk()
File "/usr/local/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/spyro-plus/spyro-plus.py", line 2156, in draw_next_chunk
chunk_size = self.engine.draw_next_chunk(self.drawing_layer, tool=tool)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/spyro-plus/spyro-plus.py", line 1087, in draw_next_chunk
tool.draw(layer, stroke_chunk, color)
File "/usr/local/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/spyro-plus/spyro-plus.py", line 583, in draw
success, foreground = Gimp.context_get_foreground()
^^^^^^^^^^^^^^^^^^^
TypeError: cannot unpack non-iterable Color object
/usr/local/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/spyro-plus/spyro-plus.py:1843: Warning: Source ID 8559 was not found when attempting to remove it
GLib.source_remove(self.idle_task)