<?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>217084</bug_id>
          
          <creation_ts>2020-09-29 04:53:52 -0700</creation_ts>
          <short_desc>iOS 14.2 Beta Webgl Crash</short_desc>
          <delta_ts>2020-10-20 22:12:34 -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>Other</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>216337</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steven Briscoe">stevebriscoe123</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>dino</cc>
    
    <cc>jonlee</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>nb</cc>
    
    <cc>tony</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1692879</commentid>
    <comment_count>0</comment_count>
    <who name="Steven Briscoe">stevebriscoe123</who>
    <bug_when>2020-09-29 04:53:52 -0700</bug_when>
    <thetext>When running iOS 14.2 Beta, webkit crashes when running any webGL example shown here: https://luma.gl/examples
In iOS 14, these run perfectly fine.

I don&apos;t see any issues or errors in the Javascript console. However managed to extract from the following from Xcode:

2020-09-29 10:57:16.105580+0530 RadarX[303:5950] [Process] 0x10485ee18 - [pageProxyID=6, webPageID=7, PID=315] WebPageProxy::processDidTerminate: (pid 315), reason 3
2020-09-29 10:57:16.109550+0530 RadarX[303:5950] [assertion] Error acquiring assertion: &lt;Error Domain=RBSAssertionErrorDomain Code=3 &quot;Target is not running or required target entitlement is missing&quot; UserInfo={RBSAssertionAttribute=&lt;RBSDomainAttribute| domain:&quot;com.apple.webkit&quot; name:&quot;Background&quot; sourceEnvironment:&quot;(null)&quot;&gt;, NSLocalizedFailureReason=Target is not running or required target entitlement is missing}&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1692938</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-09-29 09:10:09 -0700</bug_when>
    <thetext>&lt;rdar://problem/69749724&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1692953</commentid>
    <comment_count>2</comment_count>
    <who name="Tony Tomarchio">tony</who>
    <bug_when>2020-09-29 09:31:24 -0700</bug_when>
    <thetext>WebKit in iOS 14.2 beta crashes similarly on many high traffic sites that work well in 14.0. Since the crash profile is similar, it&apos;s possible that these are related to the same underlying WebGL issue. The impact is to commercial experiences for major brands including Starbucks and LEGO.

LEGO Harry Potter: https://ttbda.com/

Starbucks:  https://www.starbucksrewardsstarland.com/

FIAT: https://stradavirtual.fiat.com.br/

McDonalds: https://byebyeballonger.mcdonalds.se/

Saatchi Art: https://saatchiart.8thwall.app/art-preview/?a=Aleksandra%20Toborowicz&amp;d=0.1&amp;h=70&amp;i=https://images.saatchiart.com/saatchi/486818/art/7864786/6932612-FOUFKARL-7.jpg&amp;l=0&amp;p=327000&amp;s=P1-U486818-A7864786-T1&amp;t=Blacks%20/%20Triptych&amp;w=300</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1693041</commentid>
    <comment_count>3</comment_count>
    <who name="Steven Briscoe">stevebriscoe123</who>
    <bug_when>2020-09-29 11:33:15 -0700</bug_when>
    <thetext>I&apos;m glad this isn&apos;t an isolated case. My business is not as large as Lego, Starbucks, etc. So if this bug goes into production, my business will likely fail due to the negative reviews because my application would be completely unusuable. I hope we can get the bottom of this. Thanks, Steve</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1693049</commentid>
    <comment_count>4</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-09-29 11:51:17 -0700</bug_when>
    <thetext>Crash looks like:

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001a53f2d44
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [583]
Triggered by Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   WebCore                       	0x00000001a53f2d44 WebCore::WebGLRenderingContext::getExtension(WTF::String const&amp;) + 18320 (/Library/Caches/com.apple.xbs/Sources/WebCore/WebCore-7610.2.7/./html/canvas/WebGLExtension.cpp:36)
1   WebCore                       	0x00000001a53efe70 WebCore::WebGLRenderingContext::getExtension(WTF::String const&amp;) + 6332 (/Library/Caches/com.apple.xbs/Sources/WebCore/WebCore-7610.2.7/./html/canvas/WebGLRenderingContext.cpp:161)
2   WebCore                       	0x00000001a4832650 WebCore::jsWebGLRenderingContextPrototypeFunctionGetExtension(JSC::JSGlobalObject*, JSC::CallFrame*) + 456 (/Library/Caches/com.apple.xbs/Binaries/WebCore/install/Symbols/BuiltProducts/DerivedSources/WebCore/JSWebGLRenderingContext.cpp:6472)
3   ???                           	0x0000000ddbcc8244 0 + 59522187844</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1693050</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2020-09-29 11:52:06 -0700</bug_when>
    <thetext>Looks like we have noticed this quickly and already fixed it in Bug 216337. Thanks for the bug report.

*** This bug has been marked as a duplicate of bug 216337 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1693053</commentid>
    <comment_count>6</comment_count>
    <who name="Steven Briscoe">stevebriscoe123</who>
    <bug_when>2020-09-29 12:00:07 -0700</bug_when>
    <thetext>Ok, great to hear. Then I assume it&apos;s going to be bundled up in the next iOS 14.2 beta?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1693054</commentid>
    <comment_count>7</comment_count>
    <who name="Nicholas Butko">nb</who>
    <bug_when>2020-09-29 12:01:32 -0700</bug_when>
    <thetext>Just to confirm, it appears that this is a minimal repro of our issue:

const runIosCrashMinimal = (canvas) =&gt; {
  const gl = canvas.getContext(&apos;webgl&apos;)
  const exts = [
    &apos;WEBGL_compressed_texture_astc&apos;, 
  ];
  (gl.getSupportedExtensions() || []).forEach((e) =&gt; {
    console.log(e)
    exts.indexOf(e) != -1 &amp;&amp; gl.getExtension(e)
  })
}

It looks like the linked patch might be relevant to this, but I just wanted to make sure that it matches everyone&apos;s expectations for the linked issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1693179</commentid>
    <comment_count>8</comment_count>
    <who name="Steven Briscoe">stevebriscoe123</who>
    <bug_when>2020-09-29 15:07:42 -0700</bug_when>
    <thetext>I just downloaded &apos;iOS 14.2 Developer Beta 2&apos; and the fixed has been included in this version. Please keep up the awesome work within the Webkit team and at Apple!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700072</commentid>
    <comment_count>9</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2020-10-20 22:12:34 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 216337 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>