Skip to content
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

Crash on macOs Sonoma #557

Open
zoltanszocs opened this issue May 15, 2024 · 3 comments
Open

Crash on macOs Sonoma #557

zoltanszocs opened this issue May 15, 2024 · 3 comments

Comments

@zoltanszocs
Copy link

zoltanszocs commented May 15, 2024

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.

@nicoddemus
Copy link
Member

Sorry, I have no suggestions at the moment to give here. Those type of crashes (happen randomly and only when running the full suite) are the worst to debug. 😕

@zoltanszocs
Copy link
Author

Do you have any experience with macOs Sonoma? Does it work for others?

@nicoddemus
Copy link
Member

Do you have any experience with macOs Sonoma?

None, sorry.

Does it work for others?

We test with macos-latest on CI, FWIW.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants