This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: python37.dll crashing 0xc000041d
Type: crash Stage: resolved
Components: ctypes, Windows Versions: Python 3.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: Savagery, iritkatriel, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2019-03-28 19:32 by Savagery, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
debug.rar Savagery, 2019-03-28 19:32 My code
Messages (4)
msg339074 - (view) Author: Savagery (Savagery) Date: 2019-03-28 19:32
Faulting application name: python.exe, version: 3.7.2150.1013, time stamp: 0x5c200a7f
Faulting module name: python37.dll, version: 3.7.2150.1013, time stamp: 0x5c200a56
Exception code: 0xc000041d
Fault offset: 0x0011517b
Faulting process ID: 0x4c2c
Faulting application start time: 0x01d4e5999a14e806
Faulting application path: C:\Users\lwilson\AppData\Local\Programs\Python\Python37-32\python.exe
Faulting module path: C:\Users\lwilson\AppData\Local\Programs\Python\Python37-32\python37.dll
Report ID: 511d75b6-febe-4358-a886-ccfd89b1747e
Faulting package full name: 
Faulting package-relative application ID: 

------

I'm using ctypes to create a UI in my code, python is crashing silently. Managed to get some info from windows event log. Have no clue why - seems the more static controls I create, the higher the likelihood of this happening is.
msg339102 - (view) Author: Savagery (Savagery) Date: 2019-03-29 10:41
crash is caused by the WndProc definitions, seems having python code that does anything inside of those WINFUNCTYPE ctypes callbacks increasing the frequency of the python crash with positive correlation to amount of python code in the function.
msg339130 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2019-03-29 18:39
Please provide code which consistently causes the crash, otherwise your use of ctypes makes the very likely not Python's fault and nearly impossible to debug without a working example.
msg401503 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-09-09 17:53
Closing as there isn't enough information here for us to do anything about this.  Also, Python 3.7 is no longer in maintenance. 


If you are still having this problem with a current version (>= 3.9) please create a new issue with information on how we can reproduce the problem.
History
Date User Action Args
2022-04-11 14:59:13adminsetgithub: 80644
2021-09-09 17:53:38iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg401503

resolution: rejected
stage: resolved
2019-03-29 18:40:03brett.cannonsetstatus: pending -> open
nosy: - brett.cannon
2019-03-29 18:39:52brett.cannonsetstatus: open -> pending
nosy: + brett.cannon
messages: + msg339130

2019-03-29 10:42:23Savagerysetcomponents: + Windows
2019-03-29 10:41:48Savagerysetmessages: + msg339102
components: + ctypes, - Windows
2019-03-28 19:32:46Savagerycreate