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

Qt3D - Scene3D - Will not render correctly when RenderSettings.OnDemand is used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9
    • 5.8.0, 5.9.0 RC
    • Qt3D
    • None
    • Windows 7, Linux Ubuntu 16.04 with the latest 5.9 pull (as of 3/23).
    • b5800ac037321e161d31ee362688aef179c8d9d2

    Description

      I have tested under both the 5.8 release and the 5.9 RC that if you trying to set a Scene3D to use a renderPolicy of OnDemand. The renderer will not update correctly. This appears to work correctly when using the Qt3DQuickWindow but I need to integrate it with other QML so I need it to support this functionality in the Scene3D view object.

      What is happening when this setting is used with Scene3D is inconsistent, but generally the scene3D will render inconsistently and then stop rendering or will not render at all when items are updated. However, when you close the window you will see the following:
      ASSERT: "!m_noRender" in file backend\renderqueue.cpp, line 109
      Invalid parameter passed to C runtime function.
      Invalid parameter passed to C runtime function.
      QWaitCondition: Destroyed while threads are still waiting
      QWaitCondition: Destroyed while threads are still waiting
      QWaitCondition: Destroyed while threads are still waiting
      QWaitCondition: Destroyed while threads are still waiting

      We confirmed this functionality on Windows7 with 5.8 as well as 5.9 with Linux and Android deployments and all of the platforms seem to be having problem with this OnDemand render setting when use in conjuction with the Scene3D item.

      I have attached code samples for the change to the simple-qml that I was able to use and reproduce this problem.

      This is my first bug report, so let me know if you need anything else.

      Attachments

        1. main.cpp
          3 kB
        2. main.qml
          7 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            juan.casafranca Juan José Casafranca
            ferazel Brett Klooster
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes