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

Gets hang when infinite loop is encountered[BR] #120

Open
2 of 4 tasks
Ojas1804 opened this issue May 15, 2021 · 1 comment
Open
2 of 4 tasks

Gets hang when infinite loop is encountered[BR] #120

Ojas1804 opened this issue May 15, 2021 · 1 comment
Labels
bug report 🐛 Something isn't working

Comments

@Ojas1804
Copy link

Ojas1804 commented May 15, 2021

  • I have reset Atom to defaults prior to submitting report.
  • I have not reset Atom to defaults prior to submitting report.
  • I have tried uninstalling/reinstalling the terminal.
  • I have not tried uninstalling/reinstalling the terminal.

Description

When a program encounters an infinite loop, the whole terminal window gets hanged. The cross button to close the terminal window doesn't work even on pressing it and the only way to exit the terminal window is by closing atom.

Steps to reproduce

  1. Write a program to produce an infinite loop.
  2. Run the program using the Termination terminal window using the right commends.
  3. Try pressing the cross button when on top right corner of the terminal window.

Expected behavior:

After pressing the cross, the terminal window should be closed

Actual behavior:

The terminal window gets hanged.

Reproduces how often:

It happens every time you encounter an infinite loop.

Versions

> atom --version
1.57.0
> apm --version
2.6.2

OS name and version: Windows 10
Terminal version:

Additional context

@Ojas1804 Ojas1804 added the bug report 🐛 Something isn't working label May 15, 2021
@Fred-Barclay
Copy link
Collaborator

Hi @Ojas1804 and thanks for the report!

I'm unable to replicate this on my system (macOS) with the following script.

#!/usr/bin/env python3

i = 0
while True:
    i += 1
    print(i)

When saving and running this in the prompt as python infinite.py, pressing the red "X" closes the terminal window.

Can you provide an example of a script in which this behavior occurs?

Thanks!
Fred

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report 🐛 Something isn't working
Development

No branches or pull requests

2 participants