webassembly icon indicating copy to clipboard operation
webassembly copied to clipboard

Fix deadlock issue with example code in wasm-heif README.md

Open SwimmingTiger opened this issue 4 years ago • 0 comments

I spent a long time debugging the sample code at npm:@saschazar/wasm-heif. It just deadlocks in heifModule.decode() without any output.

0e0c0d1e-22fc-4f67-b680-9c8ddf662e8d

In the end I found out that this is because we cannot call heifModule.decode() in onRuntimeInitialized(). If I move it outside, everything works fine.

bce4ff20-a90e-48c0-94aa-7950bb182231

SwimmingTiger avatar Jan 14 '22 18:01 SwimmingTiger