DracoCompression decoder stuck in Safari with Web Inspector

Hi,
I found a rather weird bug by accident. If you decode a draco mesh on a Mac with Safari and the web inspector / javascript console opened, it simply gets stuck during decoding. As soon as you close the dev tools things work again as expected.

It happens e.g. with your pg sample from the docs: https://playground.babylonjs.com/#DMZIBD#98 and it also doesn’t matter if you use the new decodeMeshToGeometryAsync() method.

We tried it on 3 different Macs (all running 15.3.1 ans Safari 18.3) with the same result.

2 Likes

Weird. This topic from a few days ago is also pointing out an issue which is triggering only when the dev console is opened :thinking:

2 Likes

cc @alexchuber

2 Likes

Thanks for the report! Will investigate this soon.

2 Likes

Huh, it looks like this is an issue specific to Safari’s Web Inspector regarding web workers. I verified this with different BJS versions, browsers, and similar playgrounds (like this one). You can test for yourself by using numWorkers = 0 into the DracoCompression constructor-- the playground shouldn’t hang anymore.

@RaananW, have you seen this behavior before?

1 Like

That has to be the weirdest bug I have seen in a long long time.

I am debugging this right now, let’s see if I can find the cause. the problem is that the safari web inspector is… limited? (I have a different word, but I would rather keep the forum SFW).

2 Likes