Skip to content

tfjs 3.4.0 regression: wasm causes browser hang #4932

@vladmandic

Description

@vladmandic

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions