Havok cannot be loaded in any Safari browser

Hi all,

I’m experimenting a big issue with havok on any Safari browser (Desktop or iOS iPad and iPhone): it fails to be loaded, and shows this error:

Aborted(CompileError: WebAssembly.Module doesn't parse at byte 325: can't get 0th Type's return value)

Is it supposed to work? I admit I’m a bit in panic mode here!

I look forward to your feedback on this issue.

Cheers,

2 Likes

cc @Cedric and @carolhmj but the play room from the release is ok for me.

It works for me: Safari 16.5(18615.2.9.11.4)
I remember having more or less the same issue with iOS 16.3 IIRC. and it disappeared after I’ve updated it.

I confirm I test this with 16.3. I’ll come back with news soon.

1 Like

I just complete my investigation there, and I confirm @Cedric is perfectly right.

Safari 16.3 is buggy, and upgrading to 16.5 works like charm. I tested this successfully on MacBook PRO 2018, and and iPad 2.

This also means that my old iPhone SE has been brickified :sob: (because I can’t do this upgrade).
The very weird thing is that this bug occurs also in Chrome and Firefox on my iPhone, and I cannot explain that. Probably more related with the OS than with the apps!
Anyway, I stop here. Thank you very much.

1 Like

Any browser on iOS is using Safari engine under the hood. Apple restriction …

This makes sense, thank you.

Have you explored ways to fix this?
This can become a problem when trying to use the engine on some gaming platforms.

1 Like

I suspect that it’s about how Havok is compiled, probably the build options. But unfortunately, it’s difficult to go further.

No, it’s a bit for complex than that. Some code/instructions work with the slow wasm (just after wasm has been loaded) but do not with the fast compilation of the wasm.
So, it’s a matter of finding what breaks, what happens, find a replacement and release a new version. This is very time consuming and wihtout a guarantee that next version of Safari will fix it or will not add new bugs. The only valid solution to me is to put pressure on Apple to force them to respect standards and be more reliable.

I am experiencing the same issue does upgrading to 16.5 solve the issue? I feel like 16,3 is pretty popular

Yep, looks like that.

1 Like