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. Application crashing with error in QtCore files

Application crashing with error in QtCore files

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 362 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.
  • I Offline
    I Offline
    indo-soft
    wrote on last edited by
    #1

    Hi, I am working on custom qgroundcontrol. I followed all the steps mentioned in qgc developer guide to build a custom qgc. Now as soon as i connect orange cube plus board using serial connection. the qgc application crashed with error:
    14aa271b-4376-47dd-9aa5-a9e6153a2411-image.png

    Axel SpoerlA 1 Reply Last reply
    0
    • I indo-soft

      Hi, I am working on custom qgroundcontrol. I followed all the steps mentioned in qgc developer guide to build a custom qgc. Now as soon as i connect orange cube plus board using serial connection. the qgc application crashed with error:
      14aa271b-4376-47dd-9aa5-a9e6153a2411-image.png

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      @indo-soft
      Please post the code, that causes the crash.

      Software Engineer
      The Qt Company, Oslo

      I 1 Reply Last reply
      0
      • Axel SpoerlA Axel Spoerl

        @indo-soft
        Please post the code, that causes the crash.

        I Offline
        I Offline
        indo-soft
        wrote on last edited by
        #3

        Hi @Axel-Spoerl
        this is the code snippet

        reference operator[](qsizetype i)
        {
        Q_ASSERT_X(size_t(i) < size_t(d->size), "QList::operator[]", "index out of range");
        // don't detach() here, we detach in data below:
        return data()[i];
        }

        jsulmJ 1 Reply Last reply
        0
        • I indo-soft

          Hi @Axel-Spoerl
          this is the code snippet

          reference operator[](qsizetype i)
          {
          Q_ASSERT_X(size_t(i) < size_t(d->size), "QList::operator[]", "index out of range");
          // don't detach() here, we detach in data below:
          return data()[i];
          }

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @indo-soft Please post the stack trace after crash.
          Somewhere in the code a list index is out of bounds of the list.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          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