question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tfjs 3.4.0 regression: wasm causes browser hang

See original GitHub issue

tfjs 3.4.0 was just released and unfortunately wasm module is somewhat broken

to be precise, tfjs-backend-wasm.wasm and tfjs-backend-wasm-simd.wasm seem to work (although haven’t tested in depth)
what’s definitely broken is tfjs-backend-wasm-threaded-simd.wasm

and symptoms are simple - complete browser hang,
up to a point where browser window is nonresponsive to close requests and requires a hard kill

to reproduce:

  • enable WebAssembly SIMD support in chrome://flags
  • enable WebAssembly threads support in chrome://flags
  • set backend to wasm
  • run any model inference

this used to work in all recent versions of tfjs

environment: tfjs 3.4.0 on windows 10 with chrome 89 or edge 89

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lina128commented, Apr 22, 2021

Hi @vladmandic , we are releasing 3.5.0 with this fix today.

0reactions
vladmandiccommented, Apr 22, 2021

@mattsoulanille thanks!

given it’s a regression that causes hangs, does this warrant spinning up a tfjs service build (e.g., 3.4.1)? (cc @pyu10055)

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found