I have auto run python script in task scheduler
after the python script run
it show: Python has stopped working
on Event viewer: show
Log Name: Application
Source: .NET Runtime
Date: 28-8-2023 07:45:24 PM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Application: python.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
at Python.Runtime.Runtime.PyObject_TYPE(Python.Runtime.BorrowedReference)
at Python.Runtime.Runtime.NullGCHandles(System.Collections.Generic.IEnumerable`1<IntPtr>)
at Python.Runtime.Runtime.TryCollectingGarbage(Int32, Boolean)
at Python.Runtime.Runtime.Shutdown()
at Python.Runtime.PythonEngine.Shutdown()
at Python.Runtime.Loader.Shutdown(IntPtr, Int32)
Log Name: Application
Source: .NET Runtime
Date: 28-8-2023 07:45:24 AM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Faulting application name: python.exe, version: 3.11.2150.1013, time stamp: 0x63e27bca
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x0d2a4ae0
Faulting process id: 0x1170
Faulting application start time: 0x01d9d9a51379c4f3
Faulting application path: C:\Python311-32\python.exe
Faulting module path: unknown
Report Id: 4036f075-7698-4ad9-90b5-f72e10be76e0
Faulting package full name:
Faulting package-relative application ID:
Log Name: Application
Source: Application Error
Date: 28-8-2023 07:45:25 AM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A