Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

100% cpu on notcurses-input exit on macos #2840

Closed
dankamongmen opened this issue Jan 14, 2025 · 2 comments
Closed

100% cpu on notcurses-input exit on macos #2840

dankamongmen opened this issue Jan 14, 2025 · 2 comments
Assignees
Labels
bug Something isn't working input readin' dem bytes macOS
Milestone

Comments

@dankamongmen
Copy link
Owner

I ran notcurses-input from 3.0.13 on macos 12.7.6, using wezterm on my host and going in over ssh. notcurses-input more or less worked, until i tried to exit with Ctrl+D, at which point it hung, chewing a CPU. it might have begun busylooping prior to hitting Ctrl+D, and i'm not yet sure whether this is repeatable. i hit Ctrl+C shortly (i think immediately) before pressing Ctrl+D, if that has anything to do with it.

@dankamongmen dankamongmen added bug Something isn't working macOS input readin' dem bytes labels Jan 14, 2025
@dankamongmen dankamongmen added this to the 3.1.0 milestone Jan 14, 2025
@dankamongmen dankamongmen self-assigned this Jan 14, 2025
@dankamongmen
Copy link
Owner Author

it appears to be repeatable, and the Ctrl+C does appear relevant. i was able to exit just fine by pressing "abcde^D" but not "abcde^C^D".

@dankamongmen
Copy link
Owner Author

with the fix to #2842, this no longer happens. we were blowing up in the fatal signal handler here the same way, but it led to a lock. it works fine now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working input readin' dem bytes macOS
Projects
None yet
Development

No branches or pull requests

1 participant