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

QML Loader black screen WASM WebGL bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.3.0 Beta3
    • 6.2.0 Beta3
    • None
    • Chrome and Firefox
    • WebAssembly
    • 67385c04ce272cf553bc2e8aa8e923cd7851fc66

    Description

      Changing a QML Loader's source can cause the window to go black and report the following error in WASM builds:

      WebGL: INVALID_OPERATION: drawElements: no buffer is bound to enabled attribute

      Attached is a GIF demonstrating the issue in the particles3d example project along with an image of the console output from Chrome.

      When you open some of the demos in the project and then click back the screen goes black but the application does not crash. It is still possible to interact with the scene and if you are able to re-click on another item in this example the issue can go away.

      Also note that not all of the demos in the particles 3d project cause the problem. Only the following demos cause the issue:

      • Snowing
      • HeartTrail
      • Qt Cube Burst
      • Fire and Smoke
      • Speedometer
      • Sorting
      • Model-Blend Particles
      • Colorful Particles
      • Attractor Shapes
      • Fading In/Out
      • Emit And Burst
      • ParticleSystem
      • Aligned Particles
      • TrailEmitter Burst
      • Animated Sprite

      While the following do not:

      • Giant Ocean Spider
      • Emitter Shapes

      "Model Shape" simply fails to load in my case with shader errors.

       

      Note that I have also observed the same issue in one of my own projects mostly when loading 3D QML scenes but some normal 2D scenes as well. Unsure which version of Qt 6.2 the particles3d wasm example is using but in my case I was using 6.2.0 Beta3.

       

       

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            haiku Ollie Dawes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes