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

Auto recover hangs forever #1136

Open
supersprink opened this issue Feb 14, 2022 · 2 comments
Open

Auto recover hangs forever #1136

supersprink opened this issue Feb 14, 2022 · 2 comments
Assignees

Comments

@supersprink
Copy link

When opening ZeroBrane Studio, it tries to recover a very long (10,000 line) minified lua file and seems to hang forever (hours). Every time I open the studio, it will hang before I can close the problematic file as it tries to open the 'remembered open files'.

I assume there is no way to fix this hanging-loop other than uninstalling and reinstalling ZBS - I propose there be added a timeout for trying to open auto-recovered files of something like 60 seconds, so that this doesn't happen.

@pkulchenko
Copy link
Owner

@zet-dota, thank you for the report. You can remove the session configuration file (see this section in the documentation to find its location, as it's system-dependent), which should fix this issue.

If you want me to take a look to see how it can be addressed, feel free to email me the configuration file before deletion (to the email address in my github profile).

If you don't want to delete the settings (as it will wipe out your file list, project list and other settings), then open the file and find [session] section and remove it along with recovery record in it.

I suspect it may not be related to the recovery record itself, but to the handling of that 10k minified file, which likely doesn't have any new lines. That's why I thought it may be useful to look at what's going on there.

@pkulchenko pkulchenko self-assigned this Feb 15, 2022
@pkulchenko
Copy link
Owner

@zet-dota, let me know if the instructions helped to resolve the issue and if you saved the recovery record for me to test on. Thank you.

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

2 participants