Exercises stay blocked with "another tab" message after the browser crashes
Maintainers usually reply within 1 day
@victrvondoom is already working on this.
Since Nov 19, 2026.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 68/100
Research direction
Read academy/views.py around enter_exercise and exit_exercise, then inspect the exercise lifecycle in react_frontend/src/routes/Project.tsx and related issue #3510/#3977. Reproduce the stale session after force-quitting the browser and trace how the backend records and releases it. Done means an exercise can be opened again after an unexpected browser close without restarting the container.
Written by the indexing model from the issue text.
Description
If the browser closes without unloading the exercise page normally (for example a crash or a force-quit), the open exercise is never released. After reopening the browser, every exercise shows "You have open a Robotics Academy exercise in another tab or window", even though nothing is open.
The message says to close the other instance or exit the exercise and refresh, but there is no other instance and no exercise to exit, so neither is possible. The only way I found to recover is restarting the Robotics Academy container.
With no exercise open in any browser, the backend still reports a session:
GET /academy/enter_exercise/?project_id=image_classification
500 {"error": "An error occurred: Alredy open session"}
Steps to reproduce
- Start Robotics Academy (
compose_cfg/user_humble_cpu.yaml,jderobot/robotics-academy:latest). - Open Follow Line.
- Force-quit the browser (I killed the Chrome process, which is what happens in a crash).
- Reopen the browser and open any exercise: the "another tab or window" message appears for every exercise, and stays until the container is restarted.
Expected: after the browser closes unexpectedly, the user can open an exercise again without restarting the container.
https://github.com/user-attachments/assets/7e294c29-6e5f-4206-9687-d2f6a5005855
Related: #3510 (the same message after closing a tab normally, fixed in #3977).
Environment: macOS (Apple Silicon), Docker Desktop, Chrome, jderobot/robotics-academy:latest (6.1.13). The same code is on humble-devel (academy/views.py enter_exercise / exit_exercise, react_frontend/src/routes/Project.tsx).
I'd like to work on this.
- Dominant language
- Python
- Stars
- 516
- Forks
- 380
- Avg merge
- 10h 53m
- Merged PRs (30d)
- 42
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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.
More from JdeRobot/RoboticsAcademy
-
Exercise components never remove their document event listeners on unmountPossibly taken @Priyanshu-rgbb claimed this 9 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
JdeRobot/RoboticsAcademy#4117 ·
Maintainers usually reply within 1 day
-
Studio page says "exercise open in another tab" for any loading errorPossibly taken @Pranav-Singh-Devloper claimed this 16 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
JdeRobot/RoboticsAcademy#4110 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 8/100
JdeRobot/RoboticsAcademy#4125 · 1 comment ·
Maintainers usually reply within 1 day
-
Add agents.mdMay be free again @Tanishka874 claimed this 8 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
JdeRobot/RoboticsAcademy#4119 · 2 comments ·
Maintainers usually reply within 1 day
-
docs/database.md is outdatedMay be free again A pull request for this issue was closed without being merged. Opendocumentation
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
JdeRobot/RoboticsAcademy#4114 · 1 comment ·
Maintainers usually reply within 1 day
All issues in JdeRobot/RoboticsAcademy
Similar issues
-
bug game: 0100FF500E34A000 game: 0400FF500E34A001 mac packing
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
jxxghp/MoviePilot#7576 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
jbaruch/software-factory#266 ·
Maintainers usually reply within 1 day
-
cron: raise a distinct error when next_fire finds no match in its search bound (from #813 item 5)Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day