Python 3.12 script crashes on windows 11 with 14900ks cpu

I have a django application with python 3.12 and when i ran a management command the python crashes because i can see the crash in the event viewer

I think it is the cpu and the windows thread detector because i run the same script to an older machine the cpu i9 9900k an it runs without errors

Does newer python version supports the windows 11 thread detector ?

Windows Thread director?

Can you setup to attach a debugger to the python process so you can see what the stack looks like when it crashes?

i tried to add pdb inside the django management command and in the windows event viewer i get error

Faulting application name: python.exe, version: 3.12.8150.1013, time stamp: 0x674f5d01
Faulting module name: python312.dll, version: 3.12.8150.1013, time stamp: 0x674f5ca1
Exception code: 0xc0000005
Fault offset: 0x00000000000f1f62
Faulting process id: 0x5AF4
Faulting application start time: 0x1DB771B9A253CFA
Faulting application path: C:\Python312\python.exe
Faulting module path: C:\Python312\python312.dll
Report Id: 2e19ff79-2af8-4812-9850-f18809255d50
Faulting package full name:
Faulting package-relative application ID:

Could this be a permissions issue perhaps?

Yeah, it quite likely is. The CPU you’re running on has a known issue:

Have you applied the CPU microcode update (often via a BIOS update) required to fix this?

If it is that CPU issue, then it’s probably too late. I think the microcode update is only to stop it getting damaged. If it’s already unstable then it’s already damaged and the microcode update can’t fix that.

Yes i updated the microcode

Permanent damage to the CPU can result frim this issue, but its not a certainty. My son’s CPU stabilised after we applied the BIOS fix.

1 Like

I updated the python version to 13.3.1 , i restored ram speed to default and i get the same error in windows it is Access Violation error so i’ll try to ran with 2 sticks instead of 4 and i’ll update you

You need to use a C level debugger to find the reason for a python crash like microsoft visual studio. It can be setup to attach to a crashing process, search the web for details.

For reference (this is from my own experience, I have a 14700KF), the instability is a consequence of the failure, not the damage resulting from the failure. I had a lot of issues before applying the patch, and they’re gone now. So if anyone hasn’t applied the patch, it is definitely worth doing.

Ah, good to know.

At this point, we’re into the realm of “weird problems”, so here’s a bunch of very random things to try:

  • You tried restoring RAM speed to the default. Have you run a memory test? Grab memtest86 or similar, and see whether it finds any faults.
  • Maybe some of the files are corrupted, perhaps as a result of other problems that have since been resolved. Wipe out Python and the app, and freshly reinstall?
  • Wiping and reinstalling should also give you a chance to ensure that all pip-installed packages are the correct architecture and Python version and compiler and such. Keep an eye out for any errors or warnings during installation.

apart from Access Violation error in django project management command i don’t have any major problems with my pc i play games mostly doom and i don’t have any blue screens i left the pc with only two sticks of ram with the default speed i will ran un the next days a memory test justo to exclude faulty memory and then i will contact intel support

thanks a lot for your comments !!!