Skip to content

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

Open
SwimmingTiger wants to merge 1 commit intosaschazar21:mainfrom
SwimmingTiger:patch-1
Open

Fix deadlock issue with example code in wasm-heif README.md#547
SwimmingTiger wants to merge 1 commit intosaschazar21:mainfrom
SwimmingTiger:patch-1

Conversation

@SwimmingTiger
Copy link

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 SwimmingTiger changed the title Fix deadlock issue with example code in wasm-heif README.md Fix deadlock with example code in wasm-heif README.md Jan 14, 2022
@SwimmingTiger SwimmingTiger changed the title Fix deadlock with example code in wasm-heif README.md Fix deadlock issue with example code in wasm-heif README.md Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant