# Window terminated unexpectedly / Crashed code: 6

**URL:** <https://forum.cursor.com/t/window-terminated-unexpectedly-crashed-code-6/170562>\
**Category:** Bug Reports\
**Tags:** crashes\
**Created:** [September 4, 2026, 8:52am UTC](https://forum.cursor.com/t/window-terminated-unexpectedly-crashed-code-6/170562 "2026-09-04T08:52:44Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [September 7, 2026, 1:31pm UTC](https://forum.cursor.com/t/window-terminated-unexpectedly-crashed-code-6/170562/10 "2026-09-07T13:31:26Z")

</div>

Hey @Gabriel_Dehan!

Would be really interested to know if this thread applies to you (does the crash happen while working in large Typescript/Javscript repos?)

> [@macOS: New window renderer crashes with code 6 when Cursor reaches 10,000 open file descriptors](https://forum.cursor.com/t/macos-new-window-renderer-crashes-with-code-6-when-cursor-reaches-10-000-open-file-descriptors/170190/17):
>
> Hi @Tomohiro_Hiratsuka, thanks for the follow-up — the restart numbers are very helpful. The fact that the count returns to roughly 9,800 files under backend/nestjs/src immediately after a restart suggests something that watches every TypeScript file in the project, rather than something that accumulates over a long session. Our leading suspect is the TypeScript language service’s file watching, which currently runs through Cursor’s main process and holds one open handle per watched file on mac…

---

_[View the full topic](https://forum.cursor.com/t/window-terminated-unexpectedly-crashed-code-6/170562)._
