# Fix window crash \(\#57203\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/952119de41c420a2da104928dbce6f65804385d5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 952119de41c420a2da104928dbce6f65804385d5

Requested commit: 952119de41c420a2da104928dbce6f65804385d5

Commit: 952119de41c420a2da104928dbce6f65804385d5

Tree: abeecd82370353720879fb28a04fd59d60a4458d

Author: Mikayla Maki

Committer: GitHub

## Message

```
Fix window crash (#57203)

Closes ZED-86Q

Fixes this (rare) crash by making entity creation via a window context
infallible.

The shape of the result is a bit clunky due to the type signatures
involved. The real solution is to remove AsyncWindowContext entirely and
move it's fallible APIs into WindowHandle, but until then this will give
you a simple starting point.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

- [d42edc15f9868f38bea566faabe92d0bb16a3501](https://git.cafe/gitcafe/zed/commit/d42edc15f9868f38bea566faabe92d0bb16a3501?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/952119de41c420a2da104928dbce6f65804385d5?format=markdown)
