| Summary: | iOS safari WebGL memory leak in iframe | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | bjtuwanglei <bjtuwanglei> |
| Component: | WebGL | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | dino, kkinnunen, smoley, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 14 | ||
| Hardware: | iPhone / iPad | ||
| OS: | Unspecified | ||
| Attachments: | |||
|
Description
bjtuwanglei@gmail.com
2020-10-25 23:25:49 PDT
Created attachment 412354 [details]
Test Case
Thanks for filing, I have not been able to reproduce this so far with the attached test case on iOS 14.0 or the 14.2 beta. Aside from switching back and forth between the webGL demo and about:blank repeatedly, is there anything else required to reproduce this? I also tried to increase the number of elements drawn in the demo each time but did not encounter a crash. (In reply to Smoley from comment #2) > Thanks for filing, I have not been able to reproduce this so far with the > attached test case on iOS 14.0 or the 14.2 beta. > > Aside from switching back and forth between the webGL demo and about:blank > repeatedly, is there anything else required to reproduce this? I also tried > to increase the number of elements drawn in the demo each time but did not > encounter a crash. I revised the test method: Open web page https://bugs.webkit.org/attachment.cgi?id=412354 in safari.And use XCode Instruments' Activity Monitor to view the safari's memory usage. Attachments are memory usage of: The first time open test web page. The First time open "WebGL Sample" page. After switch from "WebGL sample" to "about:blank" 30 times. After switch from "WebGL sample" to "about:blank" 30 times, and wait 2 minutes. Created attachment 412501 [details]
XCode Instruments' Activity Monitor view of the first time open test web page.
Created attachment 412502 [details]
XCode Instruments' Activity Monitor view of the first time open "WebGL Sample" page.
Created attachment 412503 [details]
XCode Instruments' Activity Monitor view after switch from "WebGL sample" to "about:blank" 30 times.
Created attachment 412504 [details]
XCode Instruments' Activity Monitor view after switch from "WebGL sample" to "about:blank" 30 times, and wait 2 minutes.
And as memory continually increase, the webcontent process will eventually crash, but safari will refresh the page and recreate webcontent process. Thanks for reporting. We have changed a bit how WebGL manages the back buffers in trunk. It was reported in bug 217212 that this work did fix some leaks. |