| Summary: | REGRESSION (iOS 16): WebGL 2 crashing on glReadPixels | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | George <george> |
| Component: | WebGL | Assignee: | Kimmo Kinnunen <kkinnunen> |
| Status: | RESOLVED FIXED | ||
| Severity: | Major | CC: | dino, kbr, kkinnunen, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 15 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 16 | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=250565 | ||
|
Description
George
2022-09-21 06:49:44 PDT
This is also the code inside my wasm module, if it helps... glBindFramebuffer(GL_READ_FRAMEBUFFER, m_GbufferES.fbo); glReadBuffer(m_GbufferES.color_depth_buffer); // SLOW or CRASHING STEP (IOS 16): glReadPixels(x, y, dim.x, dim.y, GL_RGBA_INTEGER, GL_INT, depth_pixel_v); depth_pixel = depth_pixel_v[0]; glBindFramebuffer(GL_FRAMEBUFFER, 0); Thanks for the report. This seems to be a out-of-memory in our GPU process due to the lack of owner attribution for read pixels memory. While we fix this, you can see if you can reduce the amount of pixels read. I'm observing: - one 1x1 read pixels which likely is not the problem. - one fullscreen read pixels, which likely is the problem. Hallo and thanks for the reply, I am not sure what lack of owner attribution is but I double tested my code and it looks like all calls are 1x1 and still getting the same issue. We are waiting for the fix! Thanks! Pull request: https://github.com/WebKit/WebKit/pull/7688 Pull request: https://github.com/WebKit/WebKit/pull/7842 Committed 258127@main (5192197861cf): <https://commits.webkit.org/258127@main> Reviewed commits have been landed. Closing PR #7842 and removing active labels. |