Skip to content

PySide6 on Linux: segfault in test_colormap_editor.py #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
PierreRaybaut opened this issue Sep 10, 2024 · 0 comments
Closed

PySide6 on Linux: segfault in test_colormap_editor.py #21

PierreRaybaut opened this issue Sep 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@PierreRaybaut
Copy link
Contributor

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
@PierreRaybaut PierreRaybaut added the bug Something isn't working label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant