Skip to content

Crash on macOs Sonoma #557

Open
Open
@zoltanszocs

Description

@zoltanszocs

Hi!

We have been using Pytest-qt for a long time now and we did not have any issues until now. However, after upgrading to macOs Sonoma, I get random crashes during test execution, and the last call is always inside pytestqt. My colleagues executing the same tests on macOs Ventura do not get these crashes. I tried adding an autouse fixture to close all open top level windows, but it did not help. I see it closes several windows, but I still get the crash.

I get tracebacks like this:

Fatal Python error: Segmentation fault

Current thread 0x00007ff8502d9fc0 (most recent call first):
    File "python3.10/site-packages/pytestqt/plugin.py", line 219 in _process_events
    File "python3.10/site-packages/pytestqt/plugin.py", line 202 in pytest_runtest_teardown
    File "python3.10/site-packages/pluggy/_callers.py", line 87 in _multicall
    File "python3.10/site-packages/pluggy/_manager.py", line 119 in _hookexec
    File "python3.10/site-packages/pluggy/_hooks.py", line 501 in __call__
    (long stacktrace, all pytest related)

Fatal Python error: Segmentation fault

Current thread 0x00007ff8502d9fc0 (most recent call first):
    File "python3.10/site-packages/pytestqt/qt_compat.py", line 162 in exec
    File "python3.10/site-packages/pytestqt/wait_signal.py", line 51 in wait
    File "python3.10/site-packages/pytestqt/qtbot.py", line 459 in wait
    (unit test function)

Any ideas? I can not reproduce the crash with a single testcase, it only crashes when running the whole suite, and not always at the same place.

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