Created attachment 352158 [details] Safari crash logs and the webpage source Safari crashes when viewing Construct HTML5 game (https://www.construct.net) in iframe. Viewing the same game NOT on iframe is ok. Here's the example of such game: – No crash: http://valerypopoff.ru/construct/_crash_in_mob_safari/ – Crash: http://valerypopoff.ru/construct/_crash_in_mob_safari/index_iframe.html Steps to Reproduce: 1. Open http://valerypopoff.ru/construct/_crash_in_mob_safari/index_iframe.html Expected Results: The webpage is shown Actual Results: Safari crashes with "This web page was reloaded because a problem occurred" Configuration: IPhone 6S IOS 12.1, IOS 12.1 Attached safari crash logs and the webpage source.
<rdar://problem/45231694>
The included crash is for SafariViewService, which is not used by Safari (it's used by other apps via SFSafariViewController). Could you please check if it's the correct one?
The game is using too much memory; there's about 900MB used by WebGL (lots of textures?).
Also I see about the same memory use in the iframe and non-iframe cases.
Created attachment 352253 [details] New crash report
(In reply to Alexey Proskuryakov from comment #2) > The included crash is for SafariViewService, which is not used by Safari > (it's used by other apps via SFSafariViewController). Could you please check > if it's the correct one? The thing is, I can't find Safari's crash report on my PC (\Users\<username>\AppData\Roaming\Apple Computer\Logs\CrashReporter\MobileDevice\<device name>). I can't find it on my Mac either (~/Library/Logs/CrashReporter/MobileDevice/). Though, I sync my iPhone properly and I can see files created, like, a minute ago in the CrashRepoprter folder. The closest thing to a Safari crash report is SafariViewService which I think is also legit because I opened the link that crashes in Telegram App first and then switched to Safari by tapping on the Safari icon. I opened the crashing link again several times (Safari crashed again and again) and then synced one more time. Still, no Safari crash reports in the corresponding folder. But this time I found a new SafariViewService crash report ("New crash report" in the attachments) that has "https_ok-test.glitch.me" in it's Termination Description which is the address of a website where I initially published the game that makes Safari crash. If you know how to retrieve Safari crash reports, please tell me and I'll do this.
(In reply to Simon Fraser (smfr) from comment #3) > The game is using too much memory; there's about 900MB used by WebGL (lots > of textures?). That sounds about right. When I checked it was about 707MB. The game uses a lot of textures, right. Does "too much memory" mean that it must be crashing? I thought it's just slow when there's not enough memory. Also it crashes on both iPhone 6s and iPhoneX. (In reply to Simon Fraser (smfr) from comment #4) > Also I see about the same memory use in the iframe and non-iframe cases. Sure, this is the same game.
You have a limit of about 800MB for the entire web process, so web content has a max of maybe 600MB to play with. Go over that, and the OS will kill the process if other things need memory.
(In reply to Simon Fraser (smfr) from comment #8) > You have a limit of about 800MB for the entire web process, so web content > has a max of maybe 600MB to play with. Go over that, and the OS will kill > the process if other things need memory. I see. Thanks for the explanation. Not a bug then, right?