Bug 232169 - iOS15 Internal error compiling shader with Metal backend.
Summary: iOS15 Internal error compiling shader with Metal backend.
Status: RESOLVED DUPLICATE of bug 229378
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad Other
: P1 Blocker
Assignee: Nobody
URL: https://github.com/IdeaSpaceVR/aframe...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-22 13:30 PDT by spreadpando
Modified: 2021-10-25 13:14 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description spreadpando 2021-10-22 13:30:25 PDT
Production iOS 15 throws:
"THREE.WebGLProgram: shader error:  1281 35715 false gl.getProgramInfoLog Internal error compiling shader with Metal backend"

When using aframe particle-system component.

Unresolved as of 10/22/21
Github Issue:
https://github.com/IdeaSpaceVR/aframe-particle-system-component/issues/61

note the error codes do not seem to be consistent, but using the particle-system component will cause crashes or blatant shader glitches in iOS15.
Comment 1 Kimmo Kinnunen 2021-10-24 23:39:26 PDT
Thank you for the report.
Could you link to a simple reproduction? Either a url that runs the particular component or a simple html+js package reproducing the issue?
I could not any examples from the project website with a cursory investigation.
Comment 2 spreadpando 2021-10-25 09:44:31 PDT
Live Examples
https://ideaspacevr.github.io/aframe-particle-system-component/
Comment 3 Kyle Piddington 2021-10-25 13:13:56 PDT
Dup of  https://bugs.webkit.org/show_bug.cgi?id=229378

If you need an immediate workaround...

The problem here is that the function name 'and' is conflicting with a metal symbol. We've fixed this in ToT Webkit.

To fix this, rename the 'and' function below to something else.

// float and(float a, float b) {
//     return a * b;

*** This bug has been marked as a duplicate of bug 229378 ***
Comment 4 Kyle Piddington 2021-10-25 13:14:38 PDT
Thank you for the report ! I really appreciate it.