mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[GH-ISSUE #458] Segmentation fault when using <input /> #888
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#888
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @superhighfives on GitHub (Dec 30, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/458
Originally assigned to: @msmps on GitHub.
First off,
opentuiis awesome. Thanks for releasing it open source. Came across a bug today that I thought worth sharing. I have an app that stores and runs commands. Here's some screenshots recreating the bug:This code example shows a crash I'm getting on macOS Tahoe 26.2. When I run a command which has an input, the app crashes. To recreate, try running
greetinteractively withbun run src/index.tsx.The quirk is that it only occurs when the search in the interactive menu is an
<input />(inCommandList.tsx). If I change that to<text />and add the events manually, it doesn't crash. You can see an example of it working on main:You can check it out here:
https://github.com/superhighfives/comma/pull/1
@msmps commented on GitHub (Dec 30, 2025):
Hey @superhighfives, thanks for reporting this! It looks like your reproduction is inaccessible at the moment.
@superhighfives commented on GitHub (Dec 30, 2025):
Well, that is deeply embarassing. Made it public. Thanks for flagging, @msmps. 😊
@msmps commented on GitHub (Jan 1, 2026):
I will continue to dive into this when time allows this weekend but it feels like the cause is the
renderer.destroy()call in theonExitmethod! It looks like the renderer is still trying to interact with something during this (perhaps a focus call on the input)This is a strange one!
@superhighfives commented on GitHub (Jan 4, 2026):
Sounds good! Happy to help however I can, and for full disclosure this was a largely vibe-coded-with-the-docs project, so I may be using
renderer.destroy()incorrectly. Thanks @msmps!@msmps commented on GitHub (Jan 7, 2026):
@superhighfives This should be fixed now and in main soon! If you could test with this snapshot 🤞
@superhighfives commented on GitHub (Jan 8, 2026):
Awesome, tested and fixed. Thanks so much! 😊