Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Debug crash from stack trace that only shows Qt code
Forum Updated to NodeBB v4.3 + New Features

Debug crash from stack trace that only shows Qt code

Scheduled Pinned Locked Moved General and Desktop
debugcrash
5 Posts 3 Posters 1.8k 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.
  • Joel BodenmannJ Offline
    Joel BodenmannJ Offline
    Joel Bodenmann
    wrote on last edited by Joel Bodenmann
    #1

    Hello folks,

    Every so often when I close my Qt program it crashes. I immediately fired up the debugger to fix the problem ASAP. However, I'm totally lost on this one. The stack trace does not show any of my custom code: screenshot
    I'm really not sure where to begin (and how) for tracking this issue down in order to fix it.

    The other thing I noticed is the following output on the console which I highly assume is related to the problem:

    HEAP[uGFXStudio.exe]:
    HEAP: Free Heap block 15F094D0 modified at 15F09504 after it was freed
    

    Any help would be appreciated.

    Industrial process automation software: https://simulton.com
    Embedded Graphics & GUI library: https://ugfx.io

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

      Hi,

      What kind of model are you using ?

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

      Joel BodenmannJ 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What kind of model are you using ?

        Joel BodenmannJ Offline
        Joel BodenmannJ Offline
        Joel Bodenmann
        wrote on last edited by
        #3

        @SGaist I subclassed the QAbstractItemModel.

        Industrial process automation software: https://simulton.com
        Embedded Graphics & GUI library: https://ugfx.io

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

          Then, are you modifying some data after it's being freed ?

          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
          • S Offline
            S Offline
            stereomatchingkiss
            wrote on last edited by
            #5

            1 : Could you post minimum codes to generate the errors?

            2 : If this question seem stupid please ignore it, did you try to static link to the dll of Qt?

            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