Bun Main Thread Deadlocks When Running sharp-wasm32 Build
Is it fixed? Not yet.
Ongoing since Nov 16, 15:12 UTC. First reported Nov 16, 15:12 UTC.
What happened
Bun versions 1.4.4+38afee6c8 deadlock the main thread when executing sharp's official WebAssembly build (@img/sharp-wasm32) on Linux. The issue prevents core image processing workflows from executing, while the same script functions correctly in Node.
What caused it?
Emscripten pthreads via emnapi in sharp's WebAssembly build deadlocks Bun's main thread on the first real operation.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Timeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
sharp's wasm32 build (@img/sharp-wasm32) deadlocks the main thread; works in Node
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First reportsharp's wasm32 build (@img/sharp-wasm32) deadlocks the main thread; works in Node(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.4+38afee6c8 What platform is your computer? Linux 6.18.62-1-lts x86_64 unknown What steps can reproduce the bug? sharp's official WebAssembly build (@img/sharp-wasm32, emscripten pthreads via emnapi) deadlocks Bun's main thread on the first real operation. The same script works on Node. package.json: { "name": "repro", "private": true, "dependencies": { "sharp": "0.35.5", "@img/sharp-wasm32": "0.35.5" } } repro.js: const sharp = require("sharp");…
by Itz-Agasta 0upvotes 1comments
FAQ
What happened in the Bun issue?
Bun versions 1.4.4+38afee6c8 deadlock the main thread when executing sharp's official WebAssembly build (@img/sharp-wasm32) on Linux. The issue prevents core image processing workflows from executing, while the same script functions correctly in Node.
What is affected by the Bun issue?
Bun (versions: 1.4.4+38afee6c8). Also affected at the same time: Linux.
When did the Bun issue start and end?
It started Nov 16, 15:12 UTC and is still ongoing (2 d 13 h so far). This page updates as it develops.
How do I get alerts for Bun?
Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.