# DracoCompression decoder stuck in Safari with Web Inspector

**URL:** <https://forum.babylonjs.com/t/dracocompression-decoder-stuck-in-safari-with-web-inspector/56958>\
**Category:** Bugs\
**Tags:** safari, draco\
**Created:** [March 6, 2025, 9:18am UTC](https://forum.babylonjs.com/t/dracocompression-decoder-stuck-in-safari-with-web-inspector/56958 "2025-03-06T09:18:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Urpgor](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/urpgor/32/17886_2.png) [@Urpgor](https://forum.babylonjs.com/u/Urpgor)\
**Post date:** [March 6, 2025, 9:18am UTC](https://forum.babylonjs.com/t/dracocompression-decoder-stuck-in-safari-with-web-inspector/56958/1 "2025-03-06T09:18:57Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![Tricotou](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tricotou/32/5844_2.png) [@Tricotou](https://forum.babylonjs.com/u/Tricotou)\
**Post date:** [March 6, 2025, 9:49am UTC](https://forum.babylonjs.com/t/dracocompression-decoder-stuck-in-safari-with-web-inspector/56958/2 "2025-03-06T09:49:28Z")

</div>

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

> [@Strange behavior when dev console is open - Firefox is fine](https://forum.babylonjs.com/t/strange-behavior-when-dev-console-is-open-firefox-is-fine/56806):
>
> Hi All, I’m trying to implement a ‘cursor precise drag on arcRotateCamera’ at any zoom/radius level . I don’t think this feature exists yet ? [https://playground.babylonjs.com/#SRZRWV#2111](https://playground.babylonjs.com/#SRZRWV#2111) Here is a playground with a very basic implementation. A small sphere appears on the big one under the position you drag. My bug : go to lower or upper beta camera limit. Mouse up, then mouse down on try do drag up or down. Depends the beta limit you are. My ‘problem’ appears only when chrome/edge dev cons…

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [March 6, 2025, 4:06pm UTC](https://forum.babylonjs.com/t/dracocompression-decoder-stuck-in-safari-with-web-inspector/56958/3 "2025-03-06T16:06:50Z")

</div>

cc @alexchuber

---

<div class="post-metadata">

**Author:** ![alexchuber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alexchuber/32/52000_2.png) [@alexchuber](https://forum.babylonjs.com/u/alexchuber)\
**Post date:** [March 6, 2025, 5:28pm UTC](https://forum.babylonjs.com/t/dracocompression-decoder-stuck-in-safari-with-web-inspector/56958/4 "2025-03-06T17:28:14Z")

</div>

Assigned @alexchuber on March 6, 2025, 5:28pm UTC



---

<div class="post-metadata">

**Author:** ![alexchuber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alexchuber/32/52000_2.png) [@alexchuber](https://forum.babylonjs.com/u/alexchuber)\
**Post date:** [March 6, 2025, 5:28pm UTC](https://forum.babylonjs.com/t/dracocompression-decoder-stuck-in-safari-with-web-inspector/56958/5 "2025-03-06T17:28:55Z")

</div>

Thanks for the report! Will investigate this soon.

---

<div class="post-metadata">

**Author:** ![alexchuber](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alexchuber/32/52000_2.png) [@alexchuber](https://forum.babylonjs.com/u/alexchuber)\
**Post date:** [March 18, 2025, 8:35pm UTC](https://forum.babylonjs.com/t/dracocompression-decoder-stuck-in-safari-with-web-inspector/56958/6 "2025-03-18T20:35:06Z")

</div>

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](https://playground.babylonjs.com/#EIJH8L#27)). 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?

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [March 19, 2025, 10:52am UTC](https://forum.babylonjs.com/t/dracocompression-decoder-stuck-in-safari-with-web-inspector/56958/7 "2025-03-19T10:52:05Z")

</div>

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).
