Crash at start of HTML5 game: RuntimeError: function signature mismatch (SOLVED)

When I started my game on HTML5 it is crashing in the very beginning, right after Defold loading bar is full and game should be started.

In Console I see:

exception thrown: RuntimeError: function signature mismatch,RuntimeError: function signature mismatch
    at <anonymous>:wasm-function[429]:0x99e2
    at <anonymous>:wasm-function[1265]:0x5533d
    at <anonymous>:wasm-function[3240]:0x110fb8
    at <anonymous>:wasm-function[1263]:0x551f0
    at <anonymous>:wasm-function[3223]:0x10febd
    at <anonymous>:wasm-function[3256]:0x1123b5
    at <anonymous>:wasm-function[1963]:0xab6cf
    at <anonymous>:wasm-function[4442]:0x171b73
    at <anonymous>:wasm-function[4445]:0x17272f
    at <anonymous>:wasm-function[2946]:0xfe553

And also:

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

But I don’t know where that location could be.

Could you please help me in debugging this? I don’t know where to start. It is happening everytime.

Screenshot:

Windows version of the same project is working.

Does this happen with all projects (even an empty one) or just the one project?

1 Like

Is this happening when you are running the HTML5 version from the editor or when hosting on a server?

INFO:CRASH: Successfully wrote Crashdump to file: /data/.Defold/_crash
But I don’t know where that location could be.

In Chrome, inspect the page and then Application → Storage and it should be listed somewhere around there.

1 Like

It is happening with project uploaded on itch. I will try to upload empty project today, but I guess it’s something with my project :pensive:
Was checking on Opera, will check on Chrome

No data on both Chrome and Opera: :confused:

What’s even more strange is that on Chrome I don’t get that INFO:CRASH line :confused:

I tried to look on PC in AppData, but there are only cache and add-ons for opera.

Obviously, no such problem with empty build.

Can you share a public link to the HTML5 build of the project running in debug mode?

This might be something you need to ask the Defold devs to look at, test your project and make a HTML5 build themselves to see what the issue is.

I made the public, unlisted page: https://paweljarosz.itch.io/defold-test, the uploaded build is bundled with Debug mode, the effect is the same :confused:

@britzl could you please take a look into this? If you would need anything more I can share

Send me an email and we’ll start an investigation. I’d like to understand more about the problem:

  • Does this happen for all projects or just one?
  • What is you take the broken project, create a new bootstrap collection with a sprite and an atlas and bundle that for HTML5?
  • Are you using a custom html template?
  • Any extensions?
2 Likes

Only for one

Yes

Monarch, Log, Err, Defsave, DefOS, Defold-Input, Playfab, Ludobits, Defold-Metrics, Gooey (customized), Orthographic (customised) and Editor scripts by Jerakin

This (in Debug mode) has given me more console logs and now there’s something to debug!
You can check out on your own here: https://paweljarosz.itch.io/defold-test

I will try to fix those warnings, but those are only warnings, right? Or do you see already what could cause the error to load a go+sprite collection bootstrap?

1 Like

Ok, removed the fragment from quad_postprocess.fp and looks like it’s solving the case for simple bootstrap! :smiley: I will get back to the original collection bootstrap (with that correction) and see if it is working.

EDIT: And it is starting now so it was only because of that part of the code in fragment program, thank you @Pkeod and @britzl for your suggestions and helping me debug it :wink:

I am sad, those logs weren’t visible in the Debug Mode but with original collection - I will double check it.

2 Likes

Yay! Although I’m sorry it had to be so tricky to learn why it didn’t work…

Yes, that’s a bit odd to be honest. Not sure why. @JCash might know?

I’m afraid I have no real idea why the shader error output didn’t work in one case but not in the special collection. Could it be that the game was still using Release mode? e.g. because of caching of the web page?

2 Likes

Yes, it could be something like this, I couldn’t reproduce it later - when I uploaded a collection with that bug in and in debug mode it was printed.

1 Like