WebGL Context Loss and App Crash in Godot 4.3 Exported Web on iOS Browsers

Godot Version

Godot 4.3 Stable Version

Question

Hi everyone,

I’m encountering a critical issue with a game I exported using Godot 4.3 for the web. When running the game on iOS browsers (both Safari, Chrome, Metamask), I consistently get a WebGL context loss error, which causes the app to crash immediately after the error appears. Has anyone else experienced this issue, and is there a way to handle or prevent WebGL context loss on iOS? Any advice or workarounds would be greatly appreciated!

Thanks in advance!

2 Likes

do you use any header? also, what service hosting the game? is this with threaded support or not (no threads)? using PWA?

Got the same problem. The same build works fine on iOS 17 but throws “WebGL Context loss” on iOS 18. I checked on multiple devices.

1 Like

Same issue, too. I recommend not continuing with HTML as it has many issues with Godot.

webGL context loss mainly tells the game uses much memory while the OS/Browser only will handle a certain amount of memory, it does happen for iPad and iOS yes.
it was also happened for pre-4.3 Godot web export after playing some time on MacOS especially safari browser

Yeah, but why exactly does the same build work flawlessly on iOS 17+ but on iOS 18 is throwing the context loss error?

do you play for quite some time on iOS 17 and no crash/auto refresh?

Playing godot webgl on newest Apple OS has quite a bug iirc. mine tested missing texture and sometimes webgl context loss