Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. error
Qt 6.12 LTS is out! See what's new in the release blog

error

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 627 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.
  • NevezN Offline
    NevezN Offline
    Nevez
    wrote on last edited by Nevez
    #1
    ASSERT failure in QBitArray::QBitArray: "Size must be greater than or equal to 0."
    

    Why I getting this error ?

    c500181b-9b38-4bf5-8a75-f5e4d81cae5e-image.png

    When I drag the view's scrollbarr to the bottom, the program crashes and gives this error.

    Note: According to my code, the following blank rows should not be on the view. It only happens in some columns.

    Christian EhrlicherC 1 Reply Last reply
    0
    • NevezN Nevez
      ASSERT failure in QBitArray::QBitArray: "Size must be greater than or equal to 0."
      

      Why I getting this error ?

      c500181b-9b38-4bf5-8a75-f5e4d81cae5e-image.png

      When I drag the view's scrollbarr to the bottom, the program crashes and gives this error.

      Note: According to my code, the following blank rows should not be on the view. It only happens in some columns.

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Nevez said in error:

      Why I getting this error ?

      Because you're doing something wrong maybe?

      Use a debugger, fix your code.

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

      1 Reply Last reply
      2
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        It seems creating a qbytearray with negative size will throw such assert/error

        alt text

        so maybe something returns -1 for not found instead of a real size

        1 Reply Last reply
        2

        • Login

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