PyQt6 App crashes on windows due to stack buffer overrun
-
wrote on 20 Jun 2024, 13:20 last edited by
I have a simple python application using PyQt6 for a GUI framework that is packaged into an exe using pyinstaller.
The program runs fine on my development PC and a few production machines in Windows 10 Enterprise LTSC. However, on some production machines running Window 10 Enterprise 2016 LTSB the program crashes as soon as I make any calls to anything in QtCore like .isRunning() or start(). The windows error log has the following:
Sig[0].Name=Application Name
Sig[0].Value=datalogger.exe
Sig[1].Name=Application Version
Sig[1].Value=0.1.4.0
Sig[2].Name=Application Timestamp
Sig[2].Value=667340f9
Sig[3].Name=Fault Module Name
Sig[3].Value=Qt6Core.dll
Sig[4].Name=Fault Module Version
Sig[4].Value=6.7.1.0
Sig[5].Name=Fault Module Timestamp
Sig[5].Value=663b5bfb
Sig[6].Name=Exception Offset
Sig[6].Value=0000000000025508
Sig[7].Name=Exception Code
Sig[7].Value=c0000409
Sig[8].Name=Exception Data
Sig[8].Value=0000000000000007
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=10.0.14393.2.0.0.256.125
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1033
DynamicSig[22].Name=Additional Information 1
DynamicSig[22].Value=ce64
DynamicSig[23].Name=Additional Information 2
DynamicSig[23].Value=ce64f5808a4df595b5b54fc8c2342a6f
DynamicSig[24].Name=Additional Information 3
DynamicSig[24].Value=b544
DynamicSig[25].Name=Additional Information 4
DynamicSig[25].Value=b5447422a04d91cb71947b30f1ebcc35Its a buffer overrun according to the exception code. Any idea why this would be happening? Is it a Windows issue?
-
wrote on 20 Jun 2024, 19:20 last edited by
Found the issue here. Turned out to be not initializing the a class properly and then tried to refer to it later in the code. Odd that it threw this error instead of an error in python
-
Hi and welcome to devnet,
What kind of object was not properly initialized ?
1/3