Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PyQt6 App crashes on windows due to stack buffer overrun

PyQt6 App crashes on windows due to stack buffer overrun

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 2 Posters 1.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    iff7378
    wrote on last edited by
    #1

    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=b5447422a04d91cb71947b30f1ebcc35

    Its a buffer overrun according to the exception code. Any idea why this would be happening? Is it a Windows issue?

    1 Reply Last reply
    0
    • I Offline
      I Offline
      iff7378
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        What kind of object was not properly initialized ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved