GPU: Intel UHD Graphics 630 1536 MB * Open any canvas with webgl 1.0 or 2.0 e.g. https://reon90.github.io/redcube/ * Resize a browser window Expected: Canvas is resized, the tab's memory is the same Actual: Tab's memory is significantly increased to 5GB, after that the tab is crashed
I cannot reproduce this with a Safari 14.0.1 beta.
(In reply to Alexey Proskuryakov from comment #1) > I cannot reproduce this with a Safari 14.0.1 beta. It reproduces on Safari Beta and Latest Safari Developer Preview builds.
Created attachment 411201 [details] Resize window -> memory was increased to 7GB -> tab crashed
Thanks for the report! I can repro this with my MacBookPro16,1 Intel/Radeon, Safari Technology Preview 114, macOS Big Sur Does not repro with "Automatic graphics switching" off Does repro with "Automatic graphics switching" on
<rdar://problem/70273983>
Created attachment 411550 [details] simpler repro
This problem seems to have existed before ANGLE switch, e.g. can be reproed on Safari 14.0 as well as 14.1 Technology Preview 114. Appears that with integrated gpu we are not able to deallocate large iosurfaces fast enough.
*** Bug 218100 has been marked as a duplicate of this bug. ***
While investigating Bug 218100, I found that the test case from that bug works after the fix from Bug 217212. The test case from this bug works on a top-of-tree MiniBrowser Debug build. It consumes up to 6.3 GB of RAM, though that fluctuates down to ~3 GB sometimes.
Any chances to be fixed in near time?
I think this was already implicitly fixed in Bug 217212. Kimmo, can you confirm?
I checked latest Safari Preview and there is the bug.
I can confirm that in Safari Technology Preview Release 118 (Safari 14.1, WebKit 15611.1.9.3.1), the attached test case runs for about 30 seconds on my 2017 15" MacBook Pro before Safari reloads the tab because it was using significant memory.
Thanks for re-checking and the ping. I’ve investigated this a bit but it’s unclear yet if it’s a “platform” issue or if something sane could be done at webkit level. I’ll try to see what I can come up with, but I don’t yet have a solution.