Skip to content

Debug option for Cairo issues #188

@ChristopherFoerster

Description

@ChristopherFoerster

Using the synchronise elements pipeline with your latest docker image for capella2polarion we receive the follow issue:
cairocffi.CairoError: cairo returned CAIRO_STATUS_INVALID_SIZE: b'invalid value (typically too big) for the size of the input (surface, pattern, etc.)'

Is there any option to define a debug parameter for "synchronise elements" in order to get more details? Is a dedicated log file created that we can attach to artefacts in gitlab ci?

TRACE ---->
called by capella2polarion

File "/app/lib/python3.13/site-packages/capella2polarion/data_model/work_item_attachments.py", line 262, in content_bytes
self._content_bytes = cairosvg.svg2png(
~~~~~~~~~~~~~~~~^
self._svg_attachment.content_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/app/lib/python3.13/site-packages/cairosvg/init.py", line 54, in svg2png
return surface.PNGSurface.convert(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
bytestring=bytestring, file_obj=file_obj, url=url, dpi=dpi,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
invert_images=invert_images, unsafe=unsafe, write_to=write_to,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
output_width=output_width, output_height=output_height)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.13/site-packages/cairosvg/surface.py", line 133, in convert
instance = cls(
tree, output, dpi, None, parent_width, parent_height, scale,
output_width, output_height, background_color,
map_rgba=negate_color if negate_colors else None,
map_image=invert_image if invert_images else None)
File "/app/lib/python3.13/site-packages/cairosvg/surface.py", line 204, in init
self.cairo, self.width, self.height = self._create_surface(
~~~~~~~~~~~~~~~~~~~~^
width * self.device_units_per_user_units,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
height * self.device_units_per_user_units)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.13/site-packages/cairosvg/surface.py", line 526, in _create_surface
cairo_surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height)
File "/app/lib/python3.13/site-packages/cairocffi/surfaces.py", line 731, in init
Surface.init(self, pointer, target_keep_alive=data)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.13/site-packages/cairocffi/surfaces.py", line 158, in init
self._check_status()
~~~~~~~~~~~~~~~~~~^^
File "/app/lib/python3.13/site-packages/cairocffi/surfaces.py", line 170, in _check_status
_check_status(cairo.cairo_surface_status(self._pointer))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.13/site-packages/cairocffi/init.py", line 100, in _check_status
raise exception(message, status)
cairocffi.CairoError: cairo returned CAIRO_STATUS_INVALID_SIZE: b'invalid value (typically too big) for the size of the input (surface, pattern, etc.)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions