Skip to content

PySide6 on Linux: segfault in test_colormap_editor.py #21

@PierreRaybaut

Description

@PierreRaybaut

This is due to the implementation of the external module sliders.

In _GenericSlider and _GenericRangeSlider, the QAbstractSlider signals valueChanged, sliderMoved and rangeChanged are overriden by instance attributes of thoses classes. This is apparently tolerated by PyQt5 but absolutely not by PySide6 and leads to a segmentation fault.

():~/PlotPy$ python plotpy/tests/features/test_colormap_editor.py
Initialization of a default colormap editor widget
Initialization of a new colormap editor with the previous colormap:  ((0.0, '#0000ff'), (0.5, '#ff0000'), (1.0, '#ffff00'))
((0.0, '#0000ff'), (0.5, '#ff0000'), (1.0, '#ffff00'))
Initialization of a new default colormap editor, modified post-initialization with the previous colormap:  ((0.0, '#0000ff'), (0.5, '#ff0000'), (1.0, '#ffff00'))
Initialization of a new default colormap editor, modified post-initialization with the previous colormap with stops scaled by 255 + 1:  ((1, '#0000ff'), (128, '#ff0000'), (256, '#ffff00'))
Initialization of a new default colormap editor, modified post-initialization with the previous colormap where the red stop is replaced with a green stop:  ((1, '#0000ff'), (128, '#ff0000'), (256, '#ffff00'))
Segmentation fault

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions