Skip to content

fix: Remove snapshot APIs that deadlock libuv thread pool#1338

Merged
charlesvien merged 2 commits intomainfrom
03-26-file-watcher-crashes
Mar 30, 2026
Merged

fix: Remove snapshot APIs that deadlock libuv thread pool#1338
charlesvien merged 2 commits intomainfrom
03-26-file-watcher-crashes

Conversation

@charlesvien
Copy link
Copy Markdown
Member

@charlesvien charlesvien commented Mar 26, 2026

Problem

@parcel/watcher's getEventsSince() and writeSnapshot() block libuv worker
threads indefinitely via a native mutex deadlock in FSEventsBackend, saturating
the default 4-thread pool and preventing clean shutdown.

Changes

  1. Remove snapshot-based change detection (getEventsSince/writeSnapshot calls)
  2. Update @parcel/watcher to 2.5.6 for upstream bug fixes
  3. Remove terminal font family setting from general settings

How did you test this?

Manually

@charlesvien charlesvien changed the title Remove terminal font family setting fix: Remove snapshot APIs that deadlock libuv thread pool Mar 26, 2026
Copy link
Copy Markdown
Member Author

charlesvien commented Mar 26, 2026

@charlesvien charlesvien marked this pull request as ready for review March 26, 2026 11:20
@charlesvien charlesvien force-pushed the 03-26-file-watcher-crashes branch from 7f8af48 to a539262 Compare March 28, 2026 12:37
@charlesvien charlesvien force-pushed the 03-26-detect_non-standard_default_branch_names branch from b99d30b to a01c096 Compare March 28, 2026 12:37
@charlesvien charlesvien force-pushed the 03-26-file-watcher-crashes branch from a539262 to b4abfe4 Compare March 28, 2026 18:32
@charlesvien charlesvien force-pushed the 03-26-detect_non-standard_default_branch_names branch from a01c096 to 32623d4 Compare March 28, 2026 18:32
@charlesvien charlesvien mentioned this pull request Mar 28, 2026
@charlesvien charlesvien force-pushed the 03-26-detect_non-standard_default_branch_names branch from 32623d4 to e9fe4ae Compare March 29, 2026 08:59
@charlesvien charlesvien force-pushed the 03-26-file-watcher-crashes branch from b4abfe4 to 8feb992 Compare March 29, 2026 08:59
@charlesvien charlesvien force-pushed the 03-26-file-watcher-crashes branch from 8feb992 to 684ed91 Compare March 30, 2026 14:44
@charlesvien charlesvien force-pushed the 03-26-detect_non-standard_default_branch_names branch 2 times, most recently from 47d5494 to e5d8a2b Compare March 30, 2026 14:45
@charlesvien charlesvien force-pushed the 03-26-file-watcher-crashes branch from 684ed91 to ee4142b Compare March 30, 2026 14:45
Copy link
Copy Markdown
Member Author

charlesvien commented Mar 30, 2026

Merge activity

  • Mar 30, 2:57 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Mar 30, 3:20 PM UTC: Graphite rebased this pull request as part of a merge.
  • Mar 30, 3:25 PM UTC: @charlesvien merged this pull request with Graphite.

@charlesvien charlesvien changed the base branch from 03-26-detect_non-standard_default_branch_names to graphite-base/1338 March 30, 2026 15:08
@charlesvien charlesvien changed the base branch from graphite-base/1338 to main March 30, 2026 15:18
@charlesvien charlesvien force-pushed the 03-26-file-watcher-crashes branch from ee4142b to 28c60f0 Compare March 30, 2026 15:19
@charlesvien charlesvien merged commit d749e6a into main Mar 30, 2026
16 checks passed
@charlesvien charlesvien deleted the 03-26-file-watcher-crashes branch March 30, 2026 15:25
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.

2 participants