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

Shader problems when running with latest 5.13 wasm and threads enabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • None
    • 5.13
    • Core: Threads, GUI: OpenGL
    • None
    • WebAssembly

    Description

      Hello,

      with a fresh compiled Qt 5.13, not much works : widgets show a blank screen and I get the following in firefox's log :

      QOpenGLShader::compile(Vertex): ERROR: 0:1: 'undefinedundefined' : syntax error qtloader.js:352:17
      qtloader.js:352:17
      *** Problematic Vertex shader source code *** qtloader.js:352:17
      undefinedundefined qtloader.js:352:17
      *** qtloader.js:352:17
      QOpenGLShader::compile(Fragment): ERROR: 0:1: 'undefinedundefinedundefinedundefined' : syntax error qtloader.js:352:17
      qtloader.js:352:17
      *** Problematic Fragment shader source code *** qtloader.js:352:17
      undefinedundefinedundefinedundefined qtloader.js:352:17
      Error: WebGL warning: linkProgram: Must have a compiled vertex shader attached. qtloader.js line 411 > eval:1:212426
      *** qtloader.js:352:17
      QOpenGLShader::link: Must have a compiled vertex shader attached. qtloader.js:352:17
      Could not link shader program: qtloader.js:352:17
      "Must have a compiled vertex shader attached." qtloader.js:352:17
      Error: WebGL warning: linkProgram: Must have a compiled vertex shader attached. qtloader.js line 411 > eval:1:212426
      QOpenGLShader::link: Must have a compiled vertex shader attached. qtloader.js:352:17
      Error: WebGL warning: drawArrays: The current program is not linked.
      qtloader.js line 411 > eval:1:185925
      TypeError: 'name' member of PermissionDescriptor 'clipboard-read' is not a valid value for enumeration PermissionName. qtloader.js line 411 > eval line 1 > Function:5:26
      TypeError: 'name' member of PermissionDescriptor 'clipboard-write' is not a valid value for enumeration PermissionName. qtloader.js line 411 > eval line 1 > Function:5:26
      Error: WebGL warning: linkProgram: Must have a compiled vertex shader attached. qtloader.js line 411 > eval:1:212426
      QOpenGLShader::link: Must have a compiled vertex shader attached. qtloader.js:352:17
      Error: WebGL warning: drawArrays: The current program is not linked.
      qtloader.js line 411 > eval:1:185925
      Error: WebGL warning: linkProgram: Must have a compiled vertex shader attached. qtloader.js line 411 > eval:1:212426
      QOpenGLShader::link: Must have a compiled vertex shader attached. qtloader.js:352:17
      Error: WebGL warning: drawArrays: The current program is not linked.
      qtloader.js line 411 > eval:1:185925
      Error: WebGL warning: linkProgram: Must have a compiled vertex shader attached. qtloader.js line 411 > eval:1:212426
      QOpenGLShader::link: Must have a compiled vertex shader attached. qtloader.js:352:17
      Error: WebGL warning: drawArrays: The current program is not linked.
      qtloader.js line 411 > eval:1:185925
      Error: WebGL warning: linkProgram: Must have a compiled vertex shader attached. qtloader.js line 411 > eval:1:212426
      QOpenGLShader::link: Must have a compiled vertex shader attached. qtloader.js:352:17
      Error: WebGL warning: drawArrays: The current program is not linked.
      

      Here's a stack trace of the first one :

      _emscripten_glCompileShader file:///tmp/build-wasm/build-wasm/qtloader.js line 411 > eval:9723
      _glCompileShader file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:16134979
      __ZN16QOpenGLFunctions15glCompileShaderEj file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:10350930
      __ZN20QOpenGLShaderPrivate7compileEP13QOpenGLShader file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:10350253
      __ZN13QOpenGLShader17compileSourceCodeEPKc file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:10352536
      __ZN20QOpenGLShaderProgram23addShaderFromSourceCodeE6QFlagsIN13QOpenGLShader13ShaderTypeBitEEPKc file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:10354652
      __ZN20QOpenGLShaderProgram32addCacheableShaderFromSourceCodeE6QFlagsIN13QOpenGLShader13ShaderTypeBitEEPKc file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:10355038
      __ZN28QOpenGLTextureBlitterPrivate12buildProgramENS_12ProgramIndexEPKcS2_ file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:10395529
      __ZN21QOpenGLTextureBlitter6createEv file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:10396498
      __ZN15QWasmCompositor5frameEv file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:4360084
      __ZN15QWasmCompositor5eventEP6QEvent file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:4359413
      __ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:5230874
      __ZN12QApplication6notifyEP7QObjectP6QEvent file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:5230198
      __ZN16SafeQApplication6notifyEP7QObjectP6QEvent file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:445986
      __ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:14457071
      __ZN16QCoreApplication9sendEventEP7QObjectP6QEvent file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:14458699
      __ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:14458405
      __ZN20QEventDispatcherUNIX13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:14619358
      __ZN23QUnixEventDispatcherQPA13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:4379337
      __ZZN20QWasmEventDispatcher16doMaintainTimersEvEN3__18__invokeEPv file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:4351197
      dynCall_vi file:///tmp/build-wasm/build-wasm/qtloader.js line 240 > WebAssembly.compile:16376104
      dynCall_vi file:///tmp/build-wasm/build-wasm/qtloader.js line 411 > eval:16158
      dynCall file:///tmp/build-wasm/build-wasm/qtloader.js line 411 > eval:457
      dynCall_wrapper file:///tmp/build-wasm/build-wasm/qtloader.js line 411 > eval:387
      wrapper file:///tmp/build-wasm/build-wasm/qtloader.js line 411 > eval:8970
      safeSetTimeout
      
      

      Attachments

        1. config.opt
          0.1 kB
          Jean-Michaël Celerier
        2. config.summary
          6 kB
          Jean-Michaël Celerier
        3. wasm-1.png
          48 kB
          Jean-Michaël Celerier
        4. wasm-2.png
          169 kB
          Jean-Michaël Celerier
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lpotter Lorn Potter
            jcelerier Jean-Michaël Celerier
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes