You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python 3.13 Qt segfault after QWidget.screen() on the comments figure #1063
On Ubuntu with Python 3.13, the test suite crashed with a segmentation fault in Qt when a QDialog was built after the comments figure of pop_comments (#929) had been destroyed.
The crash needed the call dialog.screen() in build_comments_figure (src/eegprep/functions/guifunc/qt_comments.py).
PR #1062 replaces it with QApplication.primaryScreen(), which avoids the crash, but the root cause is not fixed.
Reproduction
Linux, Python 3.13.18, PySide6 6.11.0 (the locked packages), with dialog.screen() in build_comments_figure.
Not established.
A plausible cause is the ownership of the QScreen wrapper that dialog.screen() returns under Python 3.13.
Observations so far:
the same call on an ordinary dialog (qt.py, _apply_spec_size) does not crash,
a standalone script that repeats the test does not crash,
and defining the dialog class once instead of at every call did not help.
Remaining exposure
src/eegprep/functions/guifunc/qt.py:1371 (dialog.screen().availableGeometry() in _apply_spec_size, which sizes every dialog that build_dialog renders) still calls screen() on a dialog and is the remaining exposure.
Regression guard
The Python 3.13 Ubuntu CI job is the regression guard: it stopped at 63% with the segmentation fault before #1062.
Agentic AI tools were used. Workflows follow the Research Skills (doi:10.5281/zenodo.20696515). The author assumes full responsibility for this content and associated changes.
Activity
[GUI] Point the comments figure screen comment to #1063