<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>232169</bug_id>
          
          <creation_ts>2021-10-22 13:30:25 -0700</creation_ts>
          <short_desc>iOS15 Internal error compiling shader with Metal backend.</short_desc>
          <delta_ts>2021-10-25 13:14:38 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebGL</component>
          <version>Safari 15</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>229378</dup_id>
          
          <bug_file_loc>https://github.com/IdeaSpaceVR/aframe-particle-system-component/issues/61</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>spreadpando</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>kpiddington</cc>
    
    <cc>spreadpando</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1807851</commentid>
    <comment_count>0</comment_count>
    <who name="">spreadpando</who>
    <bug_when>2021-10-22 13:30:25 -0700</bug_when>
    <thetext>Production iOS 15 throws:
&quot;THREE.WebGLProgram: shader error:  1281 35715 false gl.getProgramInfoLog Internal error compiling shader with Metal backend&quot;

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1808304</commentid>
    <comment_count>1</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-10-24 23:39:26 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1808430</commentid>
    <comment_count>2</comment_count>
    <who name="">spreadpando</who>
    <bug_when>2021-10-25 09:44:31 -0700</bug_when>
    <thetext>Live Examples
https://ideaspacevr.github.io/aframe-particle-system-component/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1808545</commentid>
    <comment_count>3</comment_count>
    <who name="Kyle Piddington">kpiddington</who>
    <bug_when>2021-10-25 13:13:56 -0700</bug_when>
    <thetext>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 &apos;and&apos; is conflicting with a metal symbol. We&apos;ve fixed this in ToT Webkit.

To fix this, rename the &apos;and&apos; 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 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1808547</commentid>
    <comment_count>4</comment_count>
    <who name="Kyle Piddington">kpiddington</who>
    <bug_when>2021-10-25 13:14:38 -0700</bug_when>
    <thetext>Thank you for the report ! I really appreciate it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>