| Summary: | Safari iOS stops rendering after switching away and back when using RobotoBold Font | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Gregg Tavares <gman> | ||||
| Component: | Canvas | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED CONFIGURATION CHANGED | ||||||
| Severity: | Normal | CC: | dino, graouts, jonlee, kbr, kkinnunen, kpiddington, mmaxfield, sabouhallawa, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=234923 | ||||||
| Attachments: |
|
||||||
|
Description
Gregg Tavares
2022-01-06 00:41:31 PST
Also note, FWIW, switching to rAF seems to fix the issue. Change the code from
setInterval(draw, 10);
to
// setInterval(draw, 10);
function animate() {
draw();
requestAnimationFrame(animate);
}
requestAnimationFrame(animate);
It's great there's a workaround but it seems like some kind of memory corruption is happening in the bad case given that setInterval starts running at ~5-10 seconds per callback instead of 10ms and that drawing commands don't actually draw and that refresh fails.
CC'ing myself and another colleague. CC'ing another colleague. Thanks for the report. I cannot immediately repro with trunk. Trying with an older release. This is amazing. I think this is fixed with trunk. I could repro it on iPad8,3 on 15.3 seed, but could not repro on trunk. We had canvas rendering IPC changed to other implementation in between. Please check on the 15.4 seeds. If this still reproduces there, please reopen. |