Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-52401

ASSERT: "bytes <= bufferSize" in file tools\qringbuffer.cpp, line 74 triggered by Qt Creator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.1
    • 5.6.1, 5.7.0 Alpha
    • None
    • Windows 10, MSVC2015 Update 2 64 bit
    • a4d26cf522b966056e47e47a004b7e4d668e3a2d, c09008d27ca1456fb53a3fc9c71d5f88b1081221

    Description

      When running Qt Creator 4.0 at b7d8d9ba3a4705d845aac86400e2538f93c94b39 against Qt 5.7 qtbase at f68c62c 216f57e , the (notoriously flaky) communication between the Code model and its clang backends frequently triggers:

      ASSERT: "bytes <= bufferSize" in file tools\qringbuffer.cpp, line 74
       Debug Error!
       
       Program: D:\dev\5-vs15-57\qt-creator40\bin\Qt5Cored.dll
       Module: 5.7.0
       File: global\qglobal.cpp
       Line: 3059
       
       ASSERT: "bytes <= bufferSize" in file tools\qringbuffer.cpp, line 74
      
       QRingBuffer::free(qint64 bytes):
      		bytes	701	int64
      		this	0x2fec5f773c0	QRingBuffer *
      			basicBlockSize	4096	int
      			bufferSize	252	int64
      			buffers	<1 items>	QList<QByteArray>
      			head	699	int
      			tail	951	int
      			tailBuffer	0	int
      

      Assert was introduced by "QRingBuffer: avoid allocation in c'tor" c3d8ab78b8bc63cc15b56719fc7bf2ec42c800de https://codereview.qt-project.org/#/c/115719/

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              alex1973tr Alex Trotsenko
              kleint Friedemann Kleint
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes