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

Sandbox goes into infinite loop #896

Closed
Pyrolistical opened this issue Jun 10, 2018 · 9 comments
Closed

Sandbox goes into infinite loop #896

Pyrolistical opened this issue Jun 10, 2018 · 9 comments

Comments

@Pyrolistical
Copy link

Pyrolistical commented Jun 10, 2018

🐛 bug report

I was writing a code sample for my library, and I think I wrote an infinite loop. Now whenever try to open the sandbox, the Chrome tab goes to 100% cpu.

Sandbox: https://codesandbox.io/s/4x9mx64kl0

Environment

Software Name/Version
Browser Chrome 67.0.3396.79
Operating System macOS 10.13.4

If the sandbox didn't auto run every time it opened, I could fix the code.

@Pyrolistical
Copy link
Author

Another repo case: #50 (comment)

@Pyrolistical
Copy link
Author

One way to solve this is to for codesandbox to inject a js heartbeat into apps. The heartbeat will fail on load, at which point on next load codesandbox should prompt sandbox history and allow you to revert to a previous version.

@Pyrolistical
Copy link
Author

I was able to pull the source from the broken sandbox and manually re-create it using the API https://codesandbox.io/api/v1/sandboxes/4x9mx64kl0

@Ikaer
Copy link

Ikaer commented Jul 9, 2018

I think I am in the same case: https://codesandbox.io/s/v8km1067ml
(sandbox vanilla + jquery & semUI)
NB: when I'm forking the sandbox with the problem, the forked sandbox seems ok.

@codesandbox-stale-bot
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@SaraVieira
Copy link
Contributor

Issue closed due to lack of activity

@keverw
Copy link

keverw commented Nov 17, 2019

Looks like I mistakenly made a loop too. https://codesandbox.io/s/vigilant-shannon-veu5b

I'd be cool if you could maybe add a query string like ?safemode=1 that would not auto run the code, so could fix it, save and exit safe mode when ready to run it again.

@bduffany
Copy link

bduffany commented Jun 1, 2020

+1, a query string like ?safemode=1 would be perfect.

@lbogdan
Copy link
Contributor

lbogdan commented Jun 1, 2020

@bduffany This already exists, but it's named runonclick, i.e. https://codesandbox.io/s/vigilant-shannon-veu5b?runonclick=1 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants