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
Crashed Thread: 2
--
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.'
terminating with uncaught exception of type NSException
abort() called
It's very infrequent (<1/100) so it's been difficult to debug, but it's a problem for our CI.
This occurs because execnet does not guarantee that workers are started in the main thread (see /issues/469)
We believe it can be fixed by
detecting when a worker is started in a not-main-thread
restarting the worker until the worker is in the main thread
We have code to do 1, but need help doing 2.
The text was updated successfully, but these errors were encountered:
our crash condition occurs when a pytest-xdist worker is running in a thread that is not the main thread (as reported by others in the pytest-xdist issue)
What I'm hoping to obtain is assistance with figuring out how to restart workers that are not in the main thread, in the short term to fix our crash, and in the long term to help others in the future who may also have issues with non-main-thread workers. If a github issue is not the appropriate place to get this kind of assistance, please let me know a better place to post this.
I see an intermittent parallel test crash on macOS 10.14.
pytest==6.2.2
pytest-cov==2.10.1
pytest-forked==1.3.0
pytest-xdist==2.2.1
It's very infrequent (<1/100) so it's been difficult to debug, but it's a problem for our CI.
This occurs because execnet does not guarantee that workers are started in the main thread (see /issues/469)
We believe it can be fixed by
We have code to do 1, but need help doing 2.
The text was updated successfully, but these errors were encountered: