If there was a crash, please include the traceback here.
Execution Runtime: net-3.5
OpenCover.Console.exe :
At C:\projects\pythonnet\ci\appveyor_run_tests.ps1:22 char:1
+ .$OPENCOVER -register:user -searchdirs:"$RUNTIME_DIR" -output:cs.cove ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Python.Runtime.Runtime.PyGILState_Ensure()
at Python.Runtime.PythonEngine.AcquireLock() in C:\projects\pythonnet\src\runtime\pythonengine.cs:line 309
at Python.Runtime.PyObject.Dispose(Boolean disposing) in C:\projects\pythonnet\src\runtime\pyobject.cs:line 118
at Python.Runtime.PyObject.Dispose() in C:\projects\pythonnet\src\runtime\pyobject.cs:line 129
at Python.Runtime.PyObject.Finalize() in C:\projects\pythonnet\src\runtime\pyobject.cs:line 46
Fatal Python error: take_gil: NULL tstate
...F.Unhandled Exception:
Related to this currently we are running the embedded tests, but ignoring the exit code from nunit.
That is by design till this issue is fixed. Looks to be a race condition from what the links above mention, and how often/rare it shows up. I can't reproduce it locally though
Activity
vmuriart commented on Feb 7, 2017
Related to this currently we are running the embedded tests, but ignoring the exit code from nunit.
That is by design till this issue is fixed. Looks to be a race condition from what the links above mention, and how often/rare it shows up. I can't reproduce it locally though
Fix GC on PyObject during Finalizing
Rebase with master (#2)