[Webkit-unassigned] [Bug 240337] New: Internal error compiling shader with Metal backend

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 12 04:30:09 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=240337

            Bug ID: 240337
           Summary: Internal error compiling shader with Metal backend
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Mac (Intel)
                OS: macOS 12
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: WebGL
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: freddy.chiu at positivegrid.com
                CC: dino at apple.com, kbr at google.com, kkinnunen at apple.com

We are implementing pixi.js on our webview  app. However, this issue only took place when running on Mac OS 12 with intel chip.

Only some simple things are implemented like `new Pixi.application`, but canvas just disappered from DOM. Adding `forceCanvas` won't work either.

e.g. 
```
constructor() {
  this.app = new Pixi.Application({
      width: props.width,
      height: SIGPATH_HEIGHT,
      transparent: true,
      antialias: true,
      autoResize: true,
      resolution: 2
 });
  this.graphic = new Pixi.Graphics();
  this.app.stage.addChild(this.graphic);
  this.app.ticker.add(someDrawFunction);
}

render() {
   this.canvas.appendChild(this.app.view);
}

```

It's quite vague to track the root cause by the errors below:

```
Pixi.js Error: Could not initialize shader.

gl.VALIDATE_STATUS – false

gl.getError() – 1282

Pixi.js Warning: gl.getProgramInfoLog()
"Internal error compiling shader with Metal backend.
Please submit this shader, or website as a bug to https://bugs.webkit.org
"

TypeError: Argument 1 ('program') to WebGLRenderingContext.getProgramParameter must be an instance of WebGLProgram
```

Is there any method for us to debug this issue or provide more informations? Thanks a lot!


### Environment
- **`pixi.js` version**: _4.8.6_
- **Browser & Version**:  navigator.userAgent _"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16) AppleWebKit/605.1.15 (KHTML, like Gecko) BIAS FX/1.0 (Desktop)"_
- **OS & Version**: _mac os Monterey 12.0.1_

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220512/45a7d4b3/attachment.htm>


More information about the webkit-unassigned mailing list