Open AlbyIanna opened 1 year ago
I don't think so. These the errors I get from the backend:
root ERROR Request uninstall failed with error: 14 UNAVAILABLE: Connection dropped Error: 14 UNAVAILABLE: Connection dropped
at Object.callErrorFromStatus (/Users/albertoiannaccone/Workspace/arduino-ide/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/Users/albertoiannaccone/Workspace/arduino-ide/node_modules/@grpc/grpc-js/build/src/client.js:349:49)
at Object.onReceiveStatus (/Users/albertoiannaccone/Workspace/arduino-ide/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
at /Users/albertoiannaccone/Workspace/arduino-ide/node_modules/@grpc/grpc-js/build/src/call-stream.js:187:78
at processTicksAndRejections (node:internal/process/task_queues:78:11)
discovery-log ERROR Unexpected error occurred during the boards discovery. Error: 14 UNAVAILABLE: No connection established
at Object.callErrorFromStatus (/Users/albertoiannaccone/Workspace/arduino-ide/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/Users/albertoiannaccone/Workspace/arduino-ide/node_modules/@grpc/grpc-js/build/src/client.js:409:49)
at Object.onReceiveStatus (/Users/albertoiannaccone/Workspace/arduino-ide/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:328:181)
at /Users/albertoiannaccone/Workspace/arduino-ide/node_modules/@grpc/grpc-js/build/src/call-stream.js:187:78
at processTicksAndRejections (node:internal/process/task_queues:78:11)
It doesn't look the same as #1529, right?
Are there any errors in the backend logs, or only the Connection dropped
and No connection established
?
Update: I downloaded the Version: 2.0.1-nightly-20221006 Date: 2022-10-06T03:31:43.138Z
build and installed/uninstalled various platforms, but could not reproduce it. Please share the instructions if you figure it out. Thanks!
Are there any errors in the backend logs, or only the Connection dropped and No connection established?
I see only those two errors.
Please share the instructions if you figure it out.
As wrote in the PR description, I haven't figured out how to reproduce it consistently, I just know that if I repeat the steps in the To reproduce section, usually after at most a couple of times I get this error. That's the all the context I can give for now, but as soon as I discover further information I will write them here.
In case you want more information about the cause of an error from the @grpc/grpc-js
package, there are some environment variables that control the verbosity of the output:
https://github.com/grpc/grpc-node/blob/master/TROUBLESHOOTING.md
Describe the problem
Sometimes, if you have a selected board that belongs to a platform and you try to uninstall that platform, the IDE will stop to work. No useful feedback is given, the platform will appear to be installed and any action you perform that uses the backend (like compiling a sketch, creating a new file or updating a library) will fail. Quitting the IDE and reopening it will show that the platform has actually been uninstalled.
https://user-images.githubusercontent.com/6939054/194276310-893060e5-623d-4613-82bc-7dc110d433bf.mov
To reproduce
I wasn't able to reproduce it consistently because sometimes it works just fine, but repeating the steps a few times would always lead to the reported error.
Expected behavior
Arduino IDE version
2.0.1-nightly-20221006
Operating system
macOS
Operating system version
12.3.1 (21E258)
Additional context
This bug never happened to me when I had a selected board from a different platform.
Also, I want to make clear that this bug didn't happen consistently to me, sometimes I met the expected behaviour, sometime I didn't.
Issue checklist