Skip to content

Arduino IDE 2.0 conflicts with software package Multipass on Windows #311

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

Closed
ferrybig opened this issue Apr 12, 2021 · 1 comment
Closed
Assignees
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@ferrybig
Copy link

ferrybig commented Apr 12, 2021

Describe the bug
Having Multipass installed breaks the new Arduino IDE, as Multipass listeners on the same ports (127.0.0.1:50051) that the Arduino IDE 2.0 uses

To Reproduce
Steps to reproduce the behavior:

  1. Install the software package https://multipass.run/ by the people who also made Ubuntu
  2. Install the Arduino IDE 2.0 editor
  3. Run the Arduino IDE 2.0 editor

See the following error reported by the command line output (note that any non-techincal users would never seen these error messages, they just see a frozen Arduino 2.0 editor)

...
daemon INFO Starting daemon from C:\Users\fernando\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\fernando\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.17.0
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port. Address already in use.
    at new DaemonError (C:\Users\fernando\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:370:28)
    at Function.parse (C:\Users\fernando\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:388:24)
    at Socket.<anonymous> (C:\Users\fernando\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:306:53)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)
daemon INFO Restarting daemon in 5 seconds...
...

Expected behavior
I expected the Arduino IDE 2.0 to automatically select a different free port if the one it decided to use is in use. Loading forever or giving an error message is not an acceptable behaviour.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10 64-bit
  • Version: 2.0.0-beta.4 (according to the download link, the program does not start properly, so I'm unable to open the about dialog screen)

Additional context
I did not test it on other operation systems, it might or might not also conflict on other operation systems

@per1234
Copy link
Contributor

per1234 commented Apr 12, 2021

Hi @ferrybig. Thanks for taking the time to submit an issue.

I see we already have a prior issue report about this at #201.

It's best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

@per1234 per1234 closed this as completed Apr 12, 2021
@per1234 per1234 added the conclusion: duplicate Has already been submitted label Apr 12, 2021
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Oct 25, 2021
@per1234 per1234 self-assigned this Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants