defold / defold

Defold is a completely free to use game engine for development of desktop, mobile and web games.
https://www.defold.com
Other
4.07k stars 292 forks source link

HTML5 crashes on every browser after updating #9308

Closed 0xbeefbeef closed 3 weeks ago

0xbeefbeef commented 1 month ago

Building and running on linux and android works fine, but when it comes to html5, i get the following errors (in the development console of my google chrome or firefox browser):

Custom script for back button handling is loaded. dmloader.js:722 Running... dmloader.js:722 dmloader.js:719 INFO:DLIB: Log server started on port 0

dmloader.js:719 INFO:GRAPHICS: Installed graphics device 'ADAPTER_FAMILY_OPENGL'

dmloader.js:719 INFO:ENGINE: Defold Engine 1.9.1 (691478c)

dmloader.js:719 INFO:ENGINE: Loading data from: archive:game.dmanifest

dmloader.js:719 Registered pb Extension dmloader.js:719 INFO:WEBSOCKET: Registered websocket extension

dmloader.js:719 INFO:SPINEC: Registered spine extension

dmloader.js:719 INFO:GpgsExt: Registered extension Gpgs (null)

dmloader.js:719 INFO:DEFSAVEEXTENSION: Registered defsave_ext Extension

dmloader.js:719 INFO:CRASH: Successfully wrote Crashdump to file: /data/.Defold/_crash

dmloader.js:720 ERROR:CRASH: CALL STACK:

CALL STACK END

printErr @ dmloader.js:720 dmloader.js:722 Exception thrown, see JavaScript console VM35:30 Uncaught TypeError: Cannot read properties of undefined (reading 'apply') at runEmAsmFunction (:5002:27) at _emscripten_asm_const_int (:5005:10) at 010fc142:0x2fab5c at 010fc142:0x21d048 at 010fc142:0x8ebf8 at 010fc142:0x28c5d8 at 010fc142:0x1ffbb8 at Module._main (:10217:55) at Object.callMain (:10422:15) at Object._callMain (dmloader.js:977:20) index.html:1 Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received index.html:1 Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received dmloader.js:719 INFO:CRASH: Successfully wrote Crashdump to file: /data/.Defold/_crash

It worked for me when I was running an older version of defold (1.7.1).

What I have changed was:

  1. Update defold to 1.9.1
  2. Updated dependencies: a. Spine (to 3.5.0) b. Websocket (to master or 4.0.0 - was 3.0.0 before)

Defold version (REQUIRED):

Platforms (REQUIRED):

I have no idea what causes this error. I had compile errors when I used websocket 3.0.0 on the 1.9.1 Defold version, so I upgraded to 4.0.0. Then it compiled smoothely, but raised the errors. Any ideas how to dig deeper into this?

Screenshot from 2024-08-16 11-04-34

britzl commented 4 weeks ago

Can you please provide a zip with a project where this issue happens?

0xbeefbeef commented 3 weeks ago

Bjoern, thanks for your reply. In the meanwhile, I could narrow the problem down to the situation where FMOD is added as a project dependency. Seems to be exactly this issue:

Defold project doesnt load when building for HTML5 when using fmod

However, this seems an open issue (since June 24).

britzl commented 3 weeks ago

Bjoern, thanks for your reply. In the meanwhile, I could narrow the problem down to the situation where FMOD is added as a project dependency. Seems to be exactly this issue:

Defold project doesnt load when building for HTML5 when using fmod

However, this seems an open issue (since June 24).

Yeah, this has to be fixed in FMOD. The extension has to be updated and that is something the author has to do.