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. Silent exit on windows, heap corruption error
Forum Updated to NodeBB v4.3 + New Features

Silent exit on windows, heap corruption error

Scheduled Pinned Locked Moved Unsolved Qt for Python
5 Posts 2 Posters 968 Views 1 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.
  • D Offline
    D Offline
    devnul
    wrote on last edited by devnul
    #1

    Hi all, I could use some help.

    The project is python3.9 / pyside6 based running on windows, quite a busy application with alot of moving parts on screen and several qthreads maintaining some if the dynamic parts.

    We get a heap corruption error seemingly at random, the app will run for days without issues but sometimes will exit 10 times in one day of development. There is no stack trace, it's a low level exit somewhere in the underlying c++, I believe.

    The error: Windows fatal exception: code 0xc0000374

    Running with python's faulthandler enabled we see that all the qthreads are often asleep, only qt's run() is actually doing anything which makes me think that the error occurs within qt code. We may have made something that's causes a corruption or access after free situation.

    How should I start? Any guidance would be amazing.

    Thanks

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

      Hi and welcome to devnet,

      You would likely need to go the hard way and build PySide6 yourself in debug mode so you may retrieve more information.

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

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        You would likely need to go the hard way and build PySide6 yourself in debug mode so you may retrieve more information.

        D Offline
        D Offline
        devnul
        wrote on last edited by
        #3

        @SGaist Thanks for replying - yes it seems so. Sorry to appear lazy - do you have a great go-to for information on doing this?

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

          Qt For Python getting started

          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
          2
          • D Offline
            D Offline
            devnul
            wrote on last edited by
            #5

            Cheers, Ill dig in.

            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