Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    ASSERT: "index.isValid()" in file c:\ndk_buildrepos\qt-desktop\src\gui\itemviews\qlistview.cpp line 3008

    General and Desktop
    2
    4
    1186
    Loading More Posts
    • 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.
    • T
      tesmai4 last edited by

      My QT based GUI application is crashing with following message;

      ASSERT: "index.isValid()" in file c:\ndk_buildrepos\qt-desktop\src\gui\itemviews\qlistview.cpp, line 3008

      This application has requested the Runtime to terminate it in an unusual way.
      Please contact the application's support team for more information.
      Press <RETURN> to close this window...

      I have tried to remove the problem by looking into the listview that might be generating this exception... but of no use.. Any clue where to look for further?
      Last edited by tesmai4; Today at 14:42.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Without any of your code related to QListView nor the Qt Version/OS version you are using, it's only crystal ball debugging. You need to show use how you use it

        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 Reply Quote 0
        • T
          tesmai4 last edited by

          Thanks for your reply SGalst.

          I can't post my code here as it is a project and I have no ideas where is the crash point.

          A very basic question regarding QT Creator: I don't know how to check where is my program crashing? How can I see the last successfully executed statement or crashing point in my program using QT Creator? (Visual Studio takes you to the crashing line. Is there something like that in QT Creator?)

          Can you give me some clue?

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Run your program in debug mode then when i crashes it will show you where

            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 Reply Quote 0
            • First post
              Last post