Bug 223002 - [Big Sur arm64] WebGL texture-copying-feedback-loops tests crashing in com.apple.AppleMetalOpenGLRenderer GLDContextRec::finishResource
Summary: [Big Sur arm64] WebGL texture-copying-feedback-loops tests crashing in com.ap...
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: webgl2conformance
  Show dependency treegraph
 
Reported: 2021-03-09 15:24 PST by Ryan Haddad
Modified: 2022-02-10 19:48 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Haddad 2021-03-09 15:24:46 PST
The following two WebGL tests appear to have been consistently crashing on Big Sur arm64 bots since they were brought up

webgl/1.0.3/conformance/textures/texture-copying-feedback-loops.html
webgl/2.0.0/conformance/textures/misc/texture-copying-feedback-loops.html

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.AppleMetalOpenGLRenderer	0x0000000157b4d114 GLDContextRec::finishResource(GLRResource*, unsigned int) + 24
1   com.apple.AppleMetalOpenGLRenderer	0x0000000157b3e07c gldReadFramebufferData + 644
2   com.apple.AppleMetalOpenGLRenderer	0x0000000157b3e07c gldReadFramebufferData + 644
3   GLEngine                      	0x00000001e5fff1fc gleTextureImageCopy + 360
4   GLEngine                      	0x00000001e5f19e14 glCopyTexImage2D_Exec + 832
5   libGL.dylib                   	0x00000001e5ee3bb0 glCopyTexImage2D + 76
6   com.apple.WebCore             	0x000000010667df20 rx::TextureGL::copyImage(gl::Context const*, gl::ImageIndex const&, gl::Rectangle const&, unsigned int, gl::Framebuffer*) + 1212 (TextureGL.cpp:756)
7   com.apple.WebCore             	0x000000010667a70c gl::Texture::copyImage(gl::Context*, gl::TextureTarget, int, gl::Rectangle const&, unsigned int, gl::Framebuffer*) + 716 (Texture.cpp:1293)
8   com.apple.WebCore             	0x0000000106468030 gl::Context::copyTexImage2D(gl::TextureTarget, int, unsigned int, int, int, int, int, int) + 356 (Context.cpp:4078)
9   com.apple.WebCore             	0x00000001064cfaac gl::CopyTexImage2D(unsigned int, int, unsigned int, int, int, int, int, int) + 280 (entry_points_gles_2_0_autogen.cpp:655)
10  com.apple.WebCore             	0x00000001059ee76c WebCore::WebGLRenderingContextBase::copyTexImage2D(unsigned int, int, unsigned int, int, int, int, int, int) + 224 (WebGLRenderingContextBase.cpp:5667)
11  com.apple.WebCore             	0x0000000104f311b0 jsWebGLRenderingContextPrototypeFunction_copyTexImage2DBody + 292 (JSWebGLRenderingContext.cpp:5410) [inlined]
12  com.apple.WebCore             	0x0000000104f311b0 call<&WebCore::jsWebGLRenderingContextPrototypeFunction_copyTexImage2DBody, WebCore::CastedThisErrorBehavior::Throw> + 424 (JSDOMOperation.h:53) [inlined]
13  com.apple.WebCore             	0x0000000104f311b0 WebCore::jsWebGLRenderingContextPrototypeFunction_copyTexImage2D(JSC::JSGlobalObject*, JSC::CallFrame*) + 476 (JSWebGLRenderingContext.cpp:5416)
14  ???                           	0x000000011000427c 0 + 4563419772
15  com.apple.JavaScriptCore      	0x000000010a2940ec llint_entry + 141052
16  com.apple.JavaScriptCore      	0x000000010a271728 vmEntryToJavaScript + 264

https://results.webkit.org/?suite=layout-tests&suite=layout-tests&test=webgl%2F2.0.0%2Fconformance%2Ftextures%2Fmisc%2Ftexture-copying-feedback-loops.html&test=webgl%2F1.0.3%2Fconformance%2Ftextures%2Ftexture-copying-feedback-loops.html
Comment 1 Radar WebKit Bug Importer 2021-03-09 15:25:18 PST
<rdar://problem/75237993>
Comment 2 Ryan Haddad 2021-03-09 15:49:15 PST
Skipped these two tests with https://trac.webkit.org/changeset/274182/webkit
Comment 3 Kimmo Kinnunen 2021-03-09 22:48:58 PST
Thanks for filing!
Crashes also on MacBook19,1 Intel
Comment 4 Kimmo Kinnunen 2021-06-30 00:10:53 PDT
Still reproducible on Intel/GL
Not reproducible on AMD/GL
Not reproducible on Metal
Comment 5 Brent Fulgham 2022-02-10 19:48:13 PST
The fix for this issue was needed outside the WebKit project, therefore this is being resolved as 'Moved'.

This should now be fixed in shipping software.