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

Scratch Link exits with "RFCOMM run loop exited" #35

Closed
ericrosenbaum opened this issue Jul 2, 2018 · 3 comments
Closed

Scratch Link exits with "RFCOMM run loop exited" #35

ericrosenbaum opened this issue Jul 2, 2018 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ericrosenbaum
Copy link
Contributor

After connecting and disconnecting successfully several times, we saw this error on the Scratch Link console: RFCOMM run loop exited,

and this error on the Scratch console:

Uncaught (in promise) code: -32601 data: "Cannot call send in discovery state" message: "Method Not Found" (many times)

this causes Scratch Link to exit, which causes:

BTSession error: {"code":-32500,"data":"Connection process could not start or channel was not found","message":"Server Error"} (once)

@ericrosenbaum ericrosenbaum added the bug Something isn't working label Jul 2, 2018
@haworthia
Copy link
Contributor

This looks like a failure to connect to the BT device.

The RFCOMM run loop exits when the device disconnects, so I'm guessing you will see that message several times in the Scratch Link console if you connect and disconnect successfully several times. If an attempt to connect to EV3 is not successful, Scratch Link responds with "Connection process could not start or channel was not found". The "Cannot call send in discovery state" happens when you try to send a command when there is no device connected.

Honestly EV3 Bluetooth is not the best experience all the time, and the device might refuse to connect, in which case Scratch Link should allow you to try to connect again.

Does Scratch Link tell you that connection was successful? And then is it unreachable after you see those errors?

@thisandagain thisandagain added this to the July 2018 milestone Jul 9, 2018
@thisandagain thisandagain modified the milestones: July 2018, Backlog Aug 20, 2018
@cwillisf
Copy link
Contributor

I haven't seen this in quite a while... I'm closing it until/unless we can repro.

@ericrosenbaum and @evhan55, do you think this is still a problem? Can you reproduce this behavior? If so, please reopen this issue. Thanks!

@evhan55
Copy link
Contributor

evhan55 commented Aug 25, 2018

I haven't seen it in a while, either! If I run into it again, in a reproducible way, I can reopen the issue.

cwillisf added a commit that referenced this issue Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants