Python has stopped working

Khanh Nguyen 0 Reputation points
2023-08-28T16:28:55.8+00:00

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
Developer technologies .NET .NET Runtime
{count} votes

1 answer

Sort by: Most helpful
  1. Jadav Netra Piyush 0 Reputation points
    2023-08-29T09:54:08.06+00:00

    You should try encountering hardware and software diagnosis with this you can even try changing the version because this platform isn't really supporting the deprecated version.

    After updating version just start running with -.exe command.

    Hope this help you


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.