Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Weird recursive issue in startup #2224

Open
Labels
@filmor

Description

@filmor

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp