Printing too many bell characters causes Hyper to crash
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.7k
- Forks
- 3.6k
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
- I am on the latest Hyper.app version
- I have searched the issues of this repo and believe that this is not a duplicate
- OS version and name: Ubuntu 22.04 x86_64
- Hyper.app version: 3.3.0
- Link of a Gist with the contents of your .hyper.js: This is a fresh install of hyper
- Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A
- The issue is reproducible in vanilla Hyper.app: Yes
Issue
This is a bit of a weird one, but I've noticed it's possible to crash Hyper if you print too many bell codes ("\a" to be explicit).
For example, if we run this script with python3:
bell = ""
i = 0
while i < 100000:
bell += "\a"
i += 1
print("Bing!" + bell)
Hyper "chimes", and then crashes.
This isn't an issue if we reduce the bells to be "printed" from 100,000 to 10,000 (although it does create an awful sound).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Python 3 reproduction in Hyper on Ubuntu 22.04, first with 100,000 bell characters and then with 10,000. Trace the terminal bell-handling entry point and confirm that a large bell burst no longer crashes Hyper while still handling the output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, typescript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100