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. QtCreator crash & no debug info
QtWS25 Last Chance

QtCreator crash & no debug info

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 325 Views
  • 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
    Dariusz
    wrote on last edited by Dariusz
    #1

    Hey

    I'm a bit lost. I have a QGraphicsView / scene with some items in it. When I try to do an operation on it I get a crash, but the debug looks like this :

    c95c1d67-9c12-42a2-a663-25cc5030715c-image.png

    I tried stepping line by line, but as far as I can tell, once I release mouse everything runs as it should in my code, then it goes into Qt internal code and crashes there...

    How can I debug it?


    Edit VS provide this ertror :

    3b471bd9-9f3a-41b3-aa71-41ef74c1e0f8-image.png

    aha_1980A 1 Reply Last reply
    0
    • D Dariusz

      Hey

      I'm a bit lost. I have a QGraphicsView / scene with some items in it. When I try to do an operation on it I get a crash, but the debug looks like this :

      c95c1d67-9c12-42a2-a663-25cc5030715c-image.png

      I tried stepping line by line, but as far as I can tell, once I release mouse everything runs as it should in my code, then it goes into Qt internal code and crashes there...

      How can I debug it?


      Edit VS provide this ertror :

      3b471bd9-9f3a-41b3-aa71-41ef74c1e0f8-image.png

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @Dariusz,

      looks like some recursion here...

      Is there anything meaningful when you click More on the stack view?

      Otherwise you'll need to show some code.

      Regards

      Qt has to stay free or it will die.

      D 1 Reply Last reply
      1
      • aha_1980A aha_1980

        Hi @Dariusz,

        looks like some recursion here...

        Is there anything meaningful when you click More on the stack view?

        Otherwise you'll need to show some code.

        Regards

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

        @aha_1980 said in QtCreator crash & no debug info:

        Hi @Dariusz,

        looks like some recursion here...

        Is there anything meaningful when you click More on the stack view?

        Otherwise you'll need to show some code.

        Regards

        Sadly nothing I could use... mostly what you can see above.

        I will try looking for recussion, I know I fire lots of "update()" calls during the action but not sure.

        Essentially I do a connector drag - mousemove/release calls to simulate node editor connection move.

        Will try to narrow it down somehow.

        TIA

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Dariusz
          wrote on last edited by
          #4

          Still getting dem crashes...

          I think the issues is that I call update() from graphicsItem, and then I do delete item. So perhaps I have racing condition when the QT try to update the viewport but fails because I called delete on the item?

          I don't see any deleteLater() on graphics items so how should I remove them from the viewport?

          TIA

          aha_1980A 1 Reply Last reply
          0
          • D Dariusz

            Still getting dem crashes...

            I think the issues is that I call update() from graphicsItem, and then I do delete item. So perhaps I have racing condition when the QT try to update the viewport but fails because I called delete on the item?

            I don't see any deleteLater() on graphics items so how should I remove them from the viewport?

            TIA

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Dariusz

            As said above, without showing you code it's just guessing.

            If you cannot show the whole code, try to create a minimal reproducing example. Often you find the solution while doing so.

            Regards

            Qt has to stay free or it will die.

            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