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

QSGCanvas floods command line output with long and repetitive warnings when XCB platform plugin is enabled

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.0.0
    • Quick: SceneGraph
    • None

    Description

      XCB platform plugin is currently the default Qt 5 platform on Linux. XCB plugin doesn't apparently support threaded rendering, which causes QSGCanvas to print following warnings every time a new canvas object is created:

      QWARN  : tst_myclass::testcase1() QSGCanvas: platform does not support threaded rendering!
      QWARN  : tst_myclass::testcase1() QSGCanvas: using non-threaded render loop. Be very sure to not access scene graph objects outside the QSGItem::updatePaintNode() call. Failing to do so will cause your code to crash on other platforms!
      PASS   : tst_myclass::testcase1()
      QWARN  : tst_myclass::testcase2() QSGCanvas: platform does not support threaded rendering!
      QWARN  : tst_myclass::testcase2() QSGCanvas: using non-threaded render loop. Be very sure to not access scene graph objects outside the QSGItem::updatePaintNode() call. Failing to do so will cause your code to crash on other platforms!
      ...
      

      Printed out warning lines are long and make the command line trace outputs unreadable without applying some additional filtering. This is especially apparent and annoying when executing autotests, where often each test case creates it's own canvas. Either warnings should be turned off or XCB plugin fixed.

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            jpetrell Joona Petrell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes