Application hang when calling panic
timmattison opened this issue · 2 comments
Describe the bug
I have gotten my application to hang in a way that I can't get out of it without killing it from another terminal when calling panic while the application is initializing. If the application panics at a later time it exits properly.
Setup
Please complete the following information along with version numbers, if applicable.
- OS - macOS Sonoma 14.2.1
- Shell - zsh
- Terminal Emulator - iterm2
- Terminal Multiplexer - N/A
To Reproduce
Steps to reproduce the behavior:
- Clone https://github.com/timmattison/bubbletea-hang
- Run
go run main2.go model.go
- Kill the process from another terminal
Source Code
Source code is in linked repo
Expected behavior
I would expect that it panics and exits but instead gets stuck when trying to write to the done channel.
bubbletea/standard_renderer.go
Line 121 in 8f3464a
I think #905 should fix this but I haven't had enough time to test it. Can anyone take a look and see what you think?