Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exiting immersive session yields GL error #27276

Closed
jdm opened this issue Jul 14, 2020 · 7 comments
Closed

Exiting immersive session yields GL error #27276

jdm opened this issue Jul 14, 2020 · 7 comments

Comments

@jdm
Copy link
Member Author

@jdm jdm commented Jul 14, 2020

[2020-07-14T21:38:41Z ERROR canvas::webgl_thread] Last GL operation failed: Clear(16640)
Unexpected WebGL error: 0x506 (1286) [Clear(16640)] (thread WebGL thread, at components/canvas/webgl_thread.rs:2237)
@jdm
Copy link
Member Author

@jdm jdm commented Jul 17, 2020

I get a different panic exiting https://de-panther.github.io/unity-webxr-export/Build/ by pressing the VR button when there's a VR window open:

[2020-07-17T14:25:09Z ERROR canvas::webgl_thread] Last GL operation failed: FramebufferTexture2D(36160, 36064, 34037, Some(WebGLTextureId(36)), 0)
Unexpected WebGL error: 0x502 (1282) [FramebufferTexture2D(36160, 36064, 34037, Some(WebGLTextureId(36)), 0)] (thread WebGL thread, at components/canvas/webgl_thread.rs:2237)
@jdm
Copy link
Member Author

@jdm jdm commented Jul 17, 2020

This is a regression from #26927.

@jdm jdm added the P-mac label Jul 17, 2020
@asajeffrey
Copy link
Member

@asajeffrey asajeffrey commented Jul 17, 2020

Hmm, that is probably caused by a frame being begun after the GL resources have been reclaimed, or the GL resources being reclaimed in the middle of an animation frame.

@jdm
Copy link
Member Author

@jdm jdm commented Jul 17, 2020

Full log output for the last complete frame and the broken frame:

[2020-07-17T15:19:22Z DEBUG webxr::glwindow] Begin animation frame for layers [(ContextId(1), LayerId(0))]
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebXRCommand(BeginFrame(WebXRLayerManagerId(1), [(ContextId(1), LayerId(0))], WebGLSender(..)))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing BeginFrame(WebXRLayerManagerId(1), [(ContextId(1), LayerId(0))], WebGLSender(..))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindTexture(34037, Some(WebGLTextureId(7))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindTexture(34037, Some(WebGLTextureId(7))))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindFramebuffer(36160, Explicit(WebGLFramebufferId(2))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindFramebuffer(36160, Explicit(WebGLFramebufferId(2))))
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::bind_framebuffer: 2
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), FramebufferTexture2D(36160, 36064, 34037, Some(WebGLTextureId(7)), 0), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(FramebufferTexture2D(36160, 36064, 34037, Some(WebGLTextureId(7)), 0))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), FramebufferTexture2D(36160, 33306, 3553, Some(WebGLTextureId(3)), 0), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(FramebufferTexture2D(36160, 33306, 3553, Some(WebGLTextureId(3)), 0))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindFramebuffer(36160, Explicit(WebGLFramebufferId(2))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindFramebuffer(36160, Explicit(WebGLFramebufferId(2))))
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::bind_framebuffer: 2
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), Clear(16640), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(Clear(16640))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UseProgram(Some(WebGLProgramId(1))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UseProgram(Some(WebGLProgramId(1))))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), ColorMask(true, true, true, true), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(ColorMask(true, true, true, true))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DepthMask(true), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DepthMask(true))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), StencilMask(0), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(StencilMask(0))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DepthFunc(513), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DepthFunc(513))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindVertexArray(Some(WebGLVertexArrayId(2))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindVertexArray(Some(WebGLVertexArrayId(2))))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(0, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(0, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.3, 0.0, 0.0, 0.0, 0.0, 0.21213204, -0.21213202, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.0, -0.3, -0.5, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.3, 0.0, 0.0, 0.0, 0.0, 0.21213204, -0.21213202, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.0, -0.3, -0.5, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DrawElements { mode: 4, count: 204, type_: 5123, offset: 0 }, WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DrawElements { mode: 4, count: 204, type_: 5123, offset: 0 })
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(1024, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(1024, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.3, 0.0, 0.0, 0.0, 0.0, 0.21213204, -0.21213202, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.0, -0.3, -0.5, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.3, 0.0, 0.0, 0.0, 0.0, 0.21213204, -0.21213202, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.0, -0.3, -0.5, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DrawElements { mode: 4, count: 204, type_: 5123, offset: 0 }, WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DrawElements { mode: 4, count: 204, type_: 5123, offset: 0 })
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UseProgram(Some(WebGLProgramId(4))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UseProgram(Some(WebGLProgramId(4))))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindVertexArray(Some(WebGLVertexArrayId(3))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindVertexArray(Some(WebGLVertexArrayId(3))))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(0, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(0, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, -0.063750006, -0.21885951, -0.5726552, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, -0.063750006, -0.21885951, -0.5726552, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DrawElements { mode: 4, count: 36, type_: 5123, offset: 0 }, WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DrawElements { mode: 4, count: 36, type_: 5123, offset: 0 })
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(1024, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(1024, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, -0.063750006, -0.21885951, -0.5726552, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, -0.063750006, -0.21885951, -0.5726552, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DrawElements { mode: 4, count: 36, type_: 5123, offset: 0 }, WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DrawElements { mode: 4, count: 36, type_: 5123, offset: 0 })
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindVertexArray(Some(WebGLVertexArrayId(8))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindVertexArray(Some(WebGLVertexArrayId(8))))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(0, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(0, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, -0.10875001, -0.21885951, -0.5726552, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, -0.10875001, -0.21885951, -0.5726552, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DrawElements { mode: 4, count: 30, type_: 5123, offset: 156 }, WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DrawElements { mode: 4, count: 30, type_: 5123, offset: 156 })
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(1024, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(1024, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, -0.10875001, -0.21885951, -0.5726552, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, -0.10875001, -0.21885951, -0.5726552, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DrawElements { mode: 4, count: 30, type_: 5123, offset: 156 }, WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DrawElements { mode: 4, count: 30, type_: 5123, offset: 156 })
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindVertexArray(Some(WebGLVertexArrayId(4))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindVertexArray(Some(WebGLVertexArrayId(4))))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(0, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(0, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z DEBUG webxr_api::session] processing RenderAnimationFrame(0)
[2020-07-17T15:19:22Z DEBUG webxr::glwindow] End animation frame for layers [(ContextId(1), LayerId(0))]
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.11625, -0.21885951, -0.5726552, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.11625, -0.21885951, -0.5726552, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DrawElements { mode: 4, count: 30, type_: 5123, offset: 264 }, WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DrawElements { mode: 4, count: 30, type_: 5123, offset: 264 })
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(1024, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(1024, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.11625, -0.21885951, -0.5726552, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.11625, -0.21885951, -0.5726552, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DrawElements { mode: 4, count: 30, type_: 5123, offset: 264 }, WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DrawElements { mode: 4, count: 30, type_: 5123, offset: 264 })
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindVertexArray(Some(WebGLVertexArrayId(5))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindVertexArray(Some(WebGLVertexArrayId(5))))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(0, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(0, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.026249997, -0.21885951, -0.5726552, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.026249997, -0.21885951, -0.5726552, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DrawElements { mode: 4, count: 24, type_: 5123, offset: 888 }, WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DrawElements { mode: 4, count: 24, type_: 5123, offset: 888 })
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(1024, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(1024, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.026249997, -0.21885951, -0.5726552, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.026249997, -0.21885951, -0.5726552, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DrawElements { mode: 4, count: 24, type_: 5123, offset: 888 }, WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DrawElements { mode: 4, count: 24, type_: 5123, offset: 888 })
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindVertexArray(Some(WebGLVertexArrayId(6))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindVertexArray(Some(WebGLVertexArrayId(6))))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(0, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(0, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.07125, -0.21885951, -0.5726552, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.07125, -0.21885951, -0.5726552, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DrawElements { mode: 4, count: 30, type_: 5123, offset: 936 }, WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DrawElements { mode: 4, count: 30, type_: 5123, offset: 936 })
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(1024, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(1024, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.07125, -0.21885951, -0.5726552, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, 0.07125, -0.21885951, -0.5726552, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), DrawElements { mode: 4, count: 30, type_: 5123, offset: 936 }, WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(DrawElements { mode: 4, count: 30, type_: 5123, offset: 936 })
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindVertexArray(Some(WebGLVertexArrayId(7))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindVertexArray(Some(WebGLVertexArrayId(7))))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(0, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(0, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, -0.018750004, -0.21885951, -0.5726552, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, -0.018750004, -0.21885951, -0.5726552, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), SetViewport(1024, 0, 1024, 1524), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(SetViewport(1024, 0, 1024, 1524))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(0, [1.4882813, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0001999, -1.0, 0.0, 0.0, -0.20001999, 0.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(4, [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -0.03, 0.0, 0.0, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, -0.018750004, -0.21885951, -0.5726552, 1.0]), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(UniformMatrix4fv(8, [0.0225, 0.0, 0.0, 0.0, 0.0, 0.015909903, -0.015909903, 0.0, 0.0, 0.21213202, 0.21213204, 0.0, -0.018750004, -0.21885951, -0.5726552, 1.0]))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindVertexArray(None), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindVertexArray(None))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindFramebuffer(36160, Explicit(WebGLFramebufferId(2))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindFramebuffer(36160, Explicit(WebGLFramebufferId(2))))
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::bind_framebuffer: 2
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), FramebufferTexture2D(36160, 36064, 34037, None, 0), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(FramebufferTexture2D(36160, 36064, 34037, None, 0))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebXRCommand(EndFrame(WebXRLayerManagerId(1), [(ContextId(1), LayerId(0))], WebGLSender(..)))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing EndFrame(WebXRLayerManagerId(1), [(ContextId(1), LayerId(0))], WebGLSender(..))
[2020-07-17T15:19:22Z DEBUG webxr::glwindow] Presenting texture 2
[2020-07-17T15:19:22Z DEBUG webxr::glwindow] Begin animation frame for layers [(ContextId(1), LayerId(0))]
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebXRCommand(BeginFrame(WebXRLayerManagerId(1), [(ContextId(1), LayerId(0))], WebGLSender(..)))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing BeginFrame(WebXRLayerManagerId(1), [(ContextId(1), LayerId(0))], WebGLSender(..))
[2020-07-17T15:19:22Z DEBUG webxr_api::session] processing Quit
[2020-07-17T15:19:22Z DEBUG webxr::glwindow] End animation frame for layers [(ContextId(1), LayerId(0))]
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebXRCommand(EndFrame(WebXRLayerManagerId(1), [(ContextId(1), LayerId(0))], WebGLSender(..)))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing EndFrame(WebXRLayerManagerId(1), [(ContextId(1), LayerId(0))], WebGLSender(..))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindTexture(34037, Some(WebGLTextureId(7))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindTexture(34037, Some(WebGLTextureId(7))))
[2020-07-17T15:19:22Z DEBUG webxr::glwindow] Presenting texture 2
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindFramebuffer(36160, Explicit(WebGLFramebufferId(2))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindFramebuffer(36160, Explicit(WebGLFramebufferId(2))))
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::bind_framebuffer: 2
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), FramebufferTexture2D(36160, 36064, 34037, Some(WebGLTextureId(7)), 0), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(FramebufferTexture2D(36160, 36064, 34037, Some(WebGLTextureId(7)), 0))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), FramebufferTexture2D(36160, 33306, 3553, Some(WebGLTextureId(3)), 0), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(FramebufferTexture2D(36160, 33306, 3553, Some(WebGLTextureId(3)), 0))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), BindFramebuffer(36160, Explicit(WebGLFramebufferId(2))), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(BindFramebuffer(36160, Explicit(WebGLFramebufferId(2))))
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::bind_framebuffer: 2
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebGLCommand(WebGLContextId(1), Clear(16640), WebGLCommandBacktrace)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] WebGLImpl::apply(Clear(16640))
[2020-07-17T15:19:22Z ERROR canvas::webgl_thread] Last GL operation failed: Clear(16640)
[2020-07-17T15:19:22Z DEBUG canvas::webgl_thread] (thread ThreadId(16)) Current draw framebuffer binding: 2
Unexpected WebGL error: 0x506 (1286) [Clear(16640)] (thread WebGL thread, at components/canvas/webgl_thread.rs:2237)
[2020-07-17T15:19:22Z DEBUG webxr_api::layer] Dropping LayerManager
@asajeffrey
Copy link
Member

@asajeffrey asajeffrey commented Jul 17, 2020

Ah, the problem is:

[2020-07-17T15:19:22Z DEBUG webxr::glwindow] Begin animation frame for layers [(ContextId(1), LayerId(0))]
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebXRCommand(BeginFrame(WebXRLayerManagerId(1), [(ContextId(1), LayerId(0))], WebGLSender(..)))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing BeginFrame(WebXRLayerManagerId(1), [(ContextId(1), LayerId(0))], WebGLSender(..))
[2020-07-17T15:19:22Z DEBUG webxr_api::session] processing Quit
[2020-07-17T15:19:22Z DEBUG webxr::glwindow] End animation frame for layers [(ContextId(1), LayerId(0))]
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing WebXRCommand(EndFrame(WebXRLayerManagerId(1), [(ContextId(1), LayerId(0))], WebGLSender(..)))
[2020-07-17T15:19:22Z TRACE canvas::webgl_thread] processing EndFrame(WebXRLayerManagerId(1), [(ContextId(1), LayerId(0))], WebGLSender(..))

the Quit is arriving in the middle of the frame, causing EndFrame to be processed too early. If Quit arrives in the middle of a frame we should wait until the frame is ended before quitting.

@jdm jdm self-assigned this Jul 17, 2020
@jdm
Copy link
Member Author

@jdm jdm commented Jul 20, 2020

Fixed by #27316.

@jdm jdm closed this Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.