Web Export Crashing

Godot Version

4.3 Stable

Question

When I attempt to play my HTML exported game it always crashes after attempting to load into level_1.tscn with the same error “WebGl Context Lost.” If I try to play the game on other kinds of hardware, the levels load just fine, while on some platforms it won’t even load past the start button. This game needs to run well on most any platform as I’m submitting it for competition. Any help would be appreciated.

Unfinished and unpolished game link: PLEASE by securityskunk

Update: We managed to find the issue. We had images that were way high in resolution (9 million pixels big). After resizing all the images the memory usage went way down and the game functioned on all platforms.

You cannot have more than 1,000 files on itch.io for a web game, and it has to be under a certain size. One of those could be your problem.

However if you want help with your level-switching code, we need to see it.

Works for me! The error “WebGl Context Lost” sounds like your web browser or graphics drivers are out of date, not any programming on your fault.

2 Likes