- Notifications
You must be signed in to change notification settings - Fork749
Open
Labels
Description
I'll have to find out whether I can reproduce this, but we are seeing this great error in startup/shutdown in production (Windows, .NET Framework, x64, pythonnet 3.0.1):
Failed to initialize pythonnet: System.NullReferenceException: Object reference not set to an instance of an object. at Python.Runtime.ImportHook.UpdateCLRModuleDict() at Python.Runtime.ImportHook.GetCLRModule() at Python.Runtime.PythonEngine.InitExt() at Python.Runtime.Loader.Initialize(IntPtr data, Int32 size) at Python.Runtime.ImportHook.UpdateCLRModuleDict() at Python.Runtime.ImportHook.GetCLRModule() at Python.Runtime.PythonEngine.InitExt() at Python.Runtime.Loader.Initialize(IntPtr data, Int32 size)Failed to shutdown pythonnet: System.InvalidOperationException: ValueFactory attempted to access the Value property of this instance. at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at Python.Runtime.PythonException.TryDecodePyErr(BorrowedReference typeRef, BorrowedReference valRef, BorrowedReference tbRef) at Python.Runtime.PythonException.FetchCurrentOrNull(ExceptionDispatchInfo& dispatchInfo) at Python.Runtime.PythonException.ThrowLastAsClrException() at Python.Runtime.NewReferenceExtensions.BorrowOrThrow(NewReference& reference) at Python.Runtime.PyModule.Import(String name) at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at Python.Runtime.PythonException.TryDecodePyErr(BorrowedReference typeRef, BorrowedReference valRef, BorrowedReference tbRef) at Python.Runtime.PythonException.FetchCurrentOrNull(ExceptionDispatchInfo& dispatchInfo) at Python.Runtime.PythonException.ThrowLastAsClrException() at Python.Runtime.NewReferenceExtensions.BorrowOrThrow(NewReference& reference) at Python.Runtime.PyObject.ToString() at Python.Runtime.InternString.Shutdown() at Python.Runtime.Runtime.Shutdown() at Python.Runtime.PythonEngine.Shutdown() at Python.Runtime.Loader.Shutdown(IntPtr data, Int32 size) at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at Python.Runtime.PythonException.TryDecodePyErr(BorrowedReference typeRef, BorrowedReference valRef, BorrowedReference tbRef) at Python.Runtime.PythonException.FetchCurrentOrNull(ExceptionDispatchInfo& dispatchInfo) at Python.Runtime.PythonException.ThrowLastAsClrException() at Python.Runtime.NewReferenceExtensions.BorrowOrThrow(NewReference& reference) at Python.Runtime.PyModule.Import(String name) at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at Python.Runtime.PythonException.TryDecodePyErr(BorrowedReference typeRef, BorrowedReference valRef, BorrowedReference tbRef) at Python.Runtime.PythonException.FetchCurrentOrNull(ExceptionDispatchInfo& dispatchInfo) at Python.Runtime.PythonException.ThrowLastAsClrException() at Python.Runtime.NewReferenceExtensions.BorrowOrThrow(NewReference& reference) at Python.Runtime.PyObject.ToString() at Python.Runtime.InternString.Shutdown() at Python.Runtime.Runtime.Shutdown() at Python.Runtime.PythonEngine.Shutdown() at Python.Runtime.Loader.Shutdown(IntPtr data, Int32 size)Exception ignored in atexit callback: <function unload at 0x0000014BC4288E50>