Skip to content

🐛 [Bug]: Python runner crashes on infinite loops with no output #710

@Alvi24-hub

Description

@Alvi24-hub

📝 Description

The Python runner on the web app cannot handle infinite loops. The runner shows no output and repeatedly reloads.

🔄 Steps to Reproduce

  1. Open the web app Python runner
  2. Enter the infinite loop code above
i = 1
while(i == 1):
    print("hello")
  1. Click "Run Code"
  2. Observe the output

🎯 Expected Behavior

  1. Show output with a "Stop" button,
    OR
  2. Display a timeout warning after X seconds

❌ Actual Behavior / Error Logs

Image

💻 Environment

  • OS: Windows 11
  • Python Version: 3.12.7
  • File Name: web-app

  • I am a registered GSSoC 2026 contributor.
  • I want to be assigned to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions