NetsBlox icon indicating copy to clipboard operation
NetsBlox copied to clipboard

Message passing failure

Open CliffordAnderson opened this issue 5 years ago • 7 comments

When coding a simple chat client/server in class today, we experienced a strange JavaScript error. The messages stopped arriving, then came in a bunch. The server then repeatedly sent the same message over and again. A teal penumbra began to encircle the server code, slowly growing larger and larger.

chatroom

The problem was fixed by saving the clients and the server and having the entire class refresh and reload their projects.

CliffordAnderson avatar Mar 19 '19 16:03 CliffordAnderson

A guess is that a student might have copied the code for the server, creating an infinite messaging loop.

CliffordAnderson avatar Mar 19 '19 17:03 CliffordAnderson

what we can see from the screenshot is that there are quite a few messages queued (~5k) but that shouldn't be an issue. did you try stopping the project? the surrounding teal must be a client issue. I can take a look at the logs to get some more insight. I can find it easier if I have a datetime and/or username. Could you email those to me please?

hamidzr avatar Mar 21 '19 16:03 hamidzr

Yes, we stopped the project and restarted to restore the functionality. My user name is andersoncliffb and we were working on the project ~10:30 a.m. on Tuesday, March 19th. Thanks for checking into the issue.

CliffordAnderson avatar Mar 22 '19 14:03 CliffordAnderson

Thanks for reporting it, I'll see if I can find anything useful. Was the chat server project running under your username?

hamidzr avatar Mar 22 '19 14:03 hamidzr

Yes, it was. Thanks again.

CliffordAnderson avatar Mar 22 '19 15:03 CliffordAnderson

Unfortunately, I couldn't find anything useful If this happens again please use the built-in bug report feature (click on the netsblox logo in the editor). That will try to capture the state of the project and should help us pinpoint the issue

hamidzr avatar Mar 25 '19 20:03 hamidzr

OK, good suggestion. If I see this happen again, I'll report the bug using the built-in mechanism.

CliffordAnderson avatar Mar 26 '19 18:03 CliffordAnderson