-
Notifications
You must be signed in to change notification settings - Fork 184
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
v0.5.0 alpha randomly stops syncing #110
Comments
If you reconnect the client, does syncing work again? Is there anything in your output window? When this happens, can you visit There are two things in Rojo that can go wrong to stop syncing:
|
Syncing works as soon as I hit the "connect" button on the plugin again. Nothing happens in my Output. I should've specified this. I will visit that at the next time I encounter this and report back. |
I was wrong - there is actually output. This is the warning I get. The raw JSON of the link you told me to visit: {"sessionId":"da43d69b-134f-480e-907a-4dc6648dcd57","serverVersion":"0.5.0-alpha.0","protocolVersion":2,"expectedPlaceIds":[2764381117],"rootInstanceId":"38776c9b-6565-42b7-85de-eb865680cc12"} |
Okay, that issue in the output window helps a lot, I should be able to track that down this week! |
When it happens, it will quickly call The first one seems normal
Then afterwards, it will call it with a table that looks like this:
This will cause the warning, because it lacks a json function. |
I refactored a lot of the relevant code in the plugin recently, can you see if the problem is still happening in the latest alpha? |
I am curious how that random table somehow leaked into the Promise. How was it even possible? Have any theories? |
I figured it out specifically today and fixed it. It was pretty simple! In Note that on line 146, I'm calling Basically, if there was a timeout (and thus another The fix was straightforward. I made a new function to do the recursive timeout nonsense and I just invoke it from within |
Good work! Thanks for explaining it to me. I understand why it failed now. I was scared there might have been a problem with |
I was actually pretty worried that promises would be broken in some obscure way too! 😅 |
I have absolutely no idea how to reproduce this, but it is happening once or twice an hour. Serving never stops, only syncing. The plugin shows that Rojo is no longer connected. I am on Windows 10.
The text was updated successfully, but these errors were encountered: