-
Notifications
You must be signed in to change notification settings - Fork 5
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
Opening a saved project in Scratch breaks the handler #3
Comments
Possible fix: check for empty string a couple of times in a row. Close/Open socket. Retry x 5. |
So after opening a project and watching the Scratch Handler restart the Scratch Handler fails to receive data from the Recv-Q (MESH (Scratch) is
Same results after commenting out line 98. It looks like an issue with the way I use the socket to talk to Scratch. Can anyone shed some light on this? |
It appears that the when a saved project is opened there is a decode error with the first line Just reading the socket with Produces a decode error Without the decode the socket is returning I am not sure how to handle this yet |
If you change the read socket line to the line bellow it will work when you open a saved project data = scratch_socket.recv(BUFFER_SIZE).decode('utf-8','replace') |
When a saved project is opened the socket does not hang and
is printed over and over.
Fix: kill the scratch hander (
ctrl+z
thenkill %%
) and restart it.The text was updated successfully, but these errors were encountered: