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. ASSERT failure in QList...
Qt 6.11 is out! See what's new in the release blog

ASSERT failure in QList...

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 603 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.
  • sankarapandiyanS Offline
    sankarapandiyanS Offline
    sankarapandiyan
    wrote on last edited by sankarapandiyan
    #1

    I am facing this Error , Suggest me for getting out of this ...!

    ASSERT failure in QList<T>::at: "index out of range", file ../../Qt/5.10.1/gcc_64/include/QtCore/qlist.h, line 541
    22:53:22: The program has unexpectedly finished.
    22:53:22: The process was ended forcefully.

       QList<QSerialPortInfo> list;
              list = QSerialPortInfo::availablePorts();
    
              for (int i= 0; i < list.length(); i++)
              {
                ui->comboBox->addItem(list[i].portName());
              }
    
    
    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #4

      https://doc.qt.io/qtcreator/creator-debug-mode.html

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      sankarapandiyanS 1 Reply Last reply
      3
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #2

        The crash does not happen here. Take a look at the backtrace.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        sankarapandiyanS 1 Reply Last reply
        3
        • Christian EhrlicherC Christian Ehrlicher

          The crash does not happen here. Take a look at the backtrace.

          sankarapandiyanS Offline
          sankarapandiyanS Offline
          sankarapandiyan
          wrote on last edited by
          #3

          @Christian-Ehrlicher
          If i click the link (in the error message ) Could not open "../../Qt/5.10.1/gcc_64/include/QtCore/qlist.h" for reading. Either the file does not exist or you do not have the permissions to open it

          i am not able to open that file, Could yu say me how to do it

          1 Reply Last reply
          0
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #4

            https://doc.qt.io/qtcreator/creator-debug-mode.html

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            sankarapandiyanS 1 Reply Last reply
            3
            • Christian EhrlicherC Christian Ehrlicher

              https://doc.qt.io/qtcreator/creator-debug-mode.html

              sankarapandiyanS Offline
              sankarapandiyanS Offline
              sankarapandiyan
              wrote on last edited by sankarapandiyan
              #5

              @Christian-Ehrlicher finally i got it why its came like this by the help of , @mrjj
              In my code

              if (LineToSend >= m_lines.size() ) { // check end of list // here i have gave like this. so ,now its works 
                      qDebug() << "end of list";
                      return;
                  }
              
              1 Reply Last reply
              1

              • Login

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