Skip to content

Fix leak detector causing panics in unit evals - #56029

Merged
bennetbo merged 1 commit into
mainfrom
fix-leaks-in-unit-evals
May 7, 2026
Merged

Fix leak detector causing panics in unit evals#56029
bennetbo merged 1 commit into
mainfrom
fix-leaks-in-unit-evals

Conversation

@bennetbo

@bennetbo bennetbo commented May 7, 2026

Copy link
Copy Markdown
Member

Fixed an issue where the leak detector would sometimes cause panics when running unit evals. Fixed this by matching the tear-down logic that we use in the gpui::test macro

thread 'tools::evals::edit_file::eval_from_pixels_constructor' (14336149) panicked at crates/gpui/src/app/entity_map.rs:1116:9:
Exited with leaked handles:
Leaked handle for entity language::buffer::Buffer (EntityId(50v1)):

Release Notes:

  • N/A

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 7, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label May 7, 2026
@bennetbo
bennetbo added this pull request to the merge queue May 7, 2026
@bennetbo
bennetbo requested a review from benbrandt May 7, 2026 10:51
Merged via the queue into main with commit 47ea7de May 7, 2026
42 checks passed
@bennetbo
bennetbo deleted the fix-leaks-in-unit-evals branch May 7, 2026 10:54
@zed-zippy zed-zippy Bot added the PR state:needs review Used to label PRs that are in need of a post-merge approval label May 7, 2026
@benbrandt

Copy link
Copy Markdown
Member

@zed-industries/approved

@zed-zippy zed-zippy Bot removed the PR state:needs review Used to label PRs that are in need of a post-merge approval label May 7, 2026
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
Fixed an issue where the leak detector would sometimes cause panics when
running unit evals. Fixed this by matching the tear-down logic that we
use in the `gpui::test` macro

> thread 'tools::evals::edit_file::eval_from_pixels_constructor'
(14336149) panicked at crates/gpui/src/app/entity_map.rs:1116:9:
Exited with leaked handles:
Leaked handle for entity language::buffer::Buffer (EntityId(50v1)):

Release Notes:

- N/A
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
Fixed an issue where the leak detector would sometimes cause panics when
running unit evals. Fixed this by matching the tear-down logic that we
use in the `gpui::test` macro

> thread 'tools::evals::edit_file::eval_from_pixels_constructor'
(14336149) panicked at crates/gpui/src/app/entity_map.rs:1116:9:
Exited with leaked handles:
Leaked handle for entity language::buffer::Buffer (EntityId(50v1)):

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants