Problem lautch arduino IDE V2

hello
I have a problem
i have install arduino V2 IDE on my laptop
windows 10

the install is OK
but when i run the program
it stays on th lautch page (i try wait more 1 hour)

Hi @ro2. Please do this:

  1. Start File Explorer (AKA "Windows Explorer").
  2. Open the Arduino IDE's installation folder (usually C:\Program Files\Arduino IDE or C:\Users\<user name>\AppData\Local\Programs\Arduino IDE).
  3. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
  4. From the context menu, click "Open PowerShell window here". PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  5. Type & ".\Arduino IDE".
  6. Press Enter. Debug output should now be printed to the PowerShell window as the Arduino IDE starts (or fails to start).
  7. Wait for the Arduino IDE to finish starting, or failing to start.
  8. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  9. Right click on the title bar of the PowerShell window.
  10. Click Edit > Select All. This will select all the text in the PowerShell window.
  11. Press Ctrl+C. This will copy the contents of the PowerShell window to the clipboard.
  12. In this Arduino forum thread, click on the reply field.
  13. Click the </> button on the forum toolbar. This will add the forum's code tags markup (```) to your reply, making it easier for us to read.
  14. Press Ctrl+V. This will paste the output between the code tags.
  15. Move the cursor outside of the code tags before you add any additional text to your reply.
  16. Click the "Reply" button.

Hopefully that will give us some information we can use to help you with the problem.

1 Like

thank you for the process
i post the log file:

PS C:\Program Files\Arduino IDE> & ".\Arduino IDE"
PS C:\Program Files\Arduino IDE>
Starting backend process. PID: 13060
Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+.webview..+$' hostname.
root WARN please install @theia/electron@1.12.0-next.1a1d7afc as a runtime dependency
root INFO Configuration directory URI: 'file:///c%3A/Users/ro2/.theia'
root INFO Theia app listening on http://localhost:60356.
root WARN The local plugin referenced by local-dir:/c%3A/Users/ro2/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/c%3A/Users/ro2/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:C:\Users\ro2.arduinoProIDE\plugins does not exist.
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@0.3.10" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.1-beta.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
root INFO Deploying backend plugin "cortex-debug@0.3.10" from "C:\Program Files\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension"
root INFO Deploying backend plugin "vscode-arduino-tools@0.0.1-beta.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle"
root INFO Deploying backend plugin "cpp@1.52.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension"
root INFO Deploying backend plugin "json@1.46.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension"
root INFO Deploying backend plugin "json-language-features@1.46.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain"
root INFO Deploy plugins list took: 132.2 ms
root WARN Backend ConfigServiceImpl.onStart is slow, took: 305.8 ms
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\ro2.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
at Socket. (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:324:58)
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...
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Daemon exited with exit code: 1.
daemon INFO Restarting daemon in 4 seconds...
daemon INFO Restarting daemon in 3 seconds...
root INFO Git askpass helper is listening on http://127.0.0.1:60367.
root ERROR Error: Git installation not found.
at C:\Program Files\Arduino IDE\resources\app\node_modules\find-git-exec\lib\find-git-exec.js:69:69
daemon INFO Restarting daemon in 2 seconds...
root WARN Frontend CommonFrontendContribution.configure is slow, took: 459.3 ms
root WARN Failed to resolve module: @types/body-parser
root WARN Failed to resolve module: @types/cookie
root WARN Failed to resolve module: @types/express
root WARN Failed to resolve module: @types/fs-extra
root WARN Failed to resolve module: @types/lodash.debounce
root WARN Failed to resolve module: @types/lodash.throttle
root WARN Failed to resolve module: @types/react
root WARN Failed to resolve module: @types/react-dom
root WARN Failed to resolve module: @types/react-virtualized
root WARN Failed to resolve module: @types/route-parser
root WARN Failed to resolve module: @types/safer-buffer
root WARN Failed to resolve module: @types/ws
root WARN Failed to resolve module: @types/yargs
root WARN Failed to resolve module: @theia/monaco
root WARN Failed to resolve module: @theia/editor
root WARN Failed to resolve module: @types/rimraf
root WARN Failed to resolve module: @types/tar-fs
root WARN Failed to resolve module: @types/uuid
root WARN Failed to resolve module: @theia/navigator
root WARN Failed to resolve module: @types/p-queue
root WARN Failed to resolve module: @theia/preferences
root WARN Failed to resolve module: @theia/electron
root WARN Failed to resolve module: @theia/keymaps
root WARN Failed to resolve module: @theia/messages
root WARN Failed to resolve module: @types/diff
root WARN Failed to resolve module: @types/dompurify
root WARN Failed to resolve module: @types/mime
root WARN Failed to resolve module: @types/request
root WARN Failed to resolve module: @types/atob
root WARN Failed to resolve module: @types/auth0-js
root WARN Failed to resolve module: @types/btoa
root WARN Failed to resolve module: @types/dateformat
root WARN Failed to resolve module: @types/deepmerge
root WARN Failed to resolve module: @types/glob
root WARN Failed to resolve module: @types/google-protobuf
root WARN Failed to resolve module: @types/js-yaml
root WARN Failed to resolve module: @types/keytar
root WARN Failed to resolve module: @types/ncp
root WARN Failed to resolve module: @types/node-fetch
root WARN Failed to resolve module: @types/ps-tree
root WARN Failed to resolve module: @types/react-select
root WARN Failed to resolve module: @types/react-tabs
root WARN Failed to resolve module: @types/sinon
root WARN Failed to resolve module: @types/temp
root WARN Failed to resolve module: @types/which
root WARN Failed to resolve module: temp
daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\ro2.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
at Socket. (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:324:58)
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...
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Daemon exited with exit code: 1.
daemon INFO Restarting daemon in 4 seconds...
daemon INFO Restarting daemon in 3 seconds...
daemon INFO Restarting daemon in 2 seconds...
daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\ro2.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
at Socket. (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:324:58)
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...
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Daemon exited with exit code: 1.
daemon INFO Restarting daemon in 4 seconds...
daemon INFO Restarting daemon in 3 seconds...
daemon INFO Restarting daemon in 2 seconds...
daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\ro2.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
at Socket. (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:324:58)
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...
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Daemon exited with exit code: 1.
daemon INFO Restarting daemon in 4 seconds...
daemon INFO Restarting daemon in 3 seconds...
daemon INFO Restarting daemon in 2 seconds...
daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\ro2.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
at Socket. (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:324:58)
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...
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Daemon exited with exit code: 1.
daemon INFO Restarting daemon in 4 seconds...
daemon INFO Restarting daemon in 3 seconds...
daemon INFO Restarting daemon in 2 seconds...
daemon INFO Restarting daemon in 1 seconds...
daemon INFO Restarting daemon now...
daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\ro2.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
at Socket. (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:324:58)
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...
daemon INFO Setting up Prometheus metrics on :9090/metrics

I think this is the interesting part:

The Arduino IDE 2.x application itself is mostly focused on the GUI-specific tasks. It uses a separate tool named Arduino CLI for most of the non-GUI tasks (e.g., compiling and uploading sketches). It communicates with Arduino CLI over this TCP port.

A common cause of the IDE not starting up is when some other application is already using this 127.0.0.1:50051 port. However, in that case I believe the error message is different, like this:

daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon ERROR Failed to listen on TCP port: 50051. Address already in use.
daemon INFO Failed to start the daemon.
daemon ERROR Error: Failed to listen on TCP port. Address already in use.

So this makes me think the problem is different in your case. Are you aware of any sort of special security restrictions that might apply to your system that would prevent the IDE from connecting to the network?

I have try to desactivate windows defender and my antivirus

but the same!

I have install the IDEv2 on a other wibdows 10 PC with an other connexion (at office)
and the same error
for me it's a software bug it's impossible to have 2 pc with the séaame port block

the log of the 2eme pc:

daemon INFO Restarting daemon in 5 seconds...
daemon ERROR Failed to listen on TCP port: 50051. Unexpected error: listen tcp 127.0.0.1:50051: bind: Une tentative dÔÇÖacc├¿s ├á un socket de mani├¿re interdite par ses autorisations dÔÇÖacc├¿s a ├®t├® tent├®e.

or the port is block on all the windows 10 pc!

I have test IDEv2 on a old mac , no problem to install and lautch
but no debug fonction for leonardo card (i use it)
impossible to install my library XMOTION (for sumo robot) error of preference ....

for me IDE V2 isn't a beta , more an apha to early to test

I had the same problem on Windows 10 with Arduino IDE intro graphic stopping the IDE from loading. Windows Security was blocking access. Needed to "Allow app through Controlled folder access" under ransomware protection.

1 Like

The Arduino IDE 2.x integrated debugger is intended to be a general purpose tool. Because there are a huge number (growing all the time!) of microcontrollers of a wide variety of types used with Arduino, many of which provided by the community or 3rd party manufacturers, the configuration of the debugger should not be provided by the Arduino IDE code base (otherwise it would be more difficult for 3rd party boards to get support). Instead, it is provided by the boards package that contains the board-specific configuration and toolchain.

So the question of whether or not the IDE's integrated debugger is enabled for a given board is about whether the board's package has been configured. So I wouldn't really consider it a defect in the Arduino IDE when debugging for an arbitrary board is not enabled.

At the moment, the only one that has been done is the "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" platform of the Arduino Zero, MKR1000, and Nano 33 IoT boards. But this is only because the developers of other Arduino boards platforms have not yet made the necessary configurations to their platforms. Once they have done that, those boards will be usable with the debugger without any need for changes to the Arduino IDE.

However, when it comes to the Leonardo, the situation is a bit tricky. The reason is because the free open source VS Code extension used for the Arduino IDE 2.x integrated debugger was developed for use with microcontrollers that have an ARM Cortex-M IP core (though the author explains here that it's not necessarily limited to those). Although that is common in the architecture of modern microcontrollers, the AVR architecture of the Leonardo's ATmega32U4 microcontroller does not have a Cortex-M core.

You can read some very interesting information about someone's investigation into setting up debugging for the Arduino Uno starting at this point in the comment thread:

https://github.com/arduino/arduino-ide/issues/87#issuecomment-706576712

It's certainly true that there are bugs, deficiencies and areas for improvement in Arduino IDE 2.x. I think there will be a steady progress to a usable experience over time. Now that some months of further development on the IDE have passed, maybe you would like to give the latest version a try again now to see if it is closer to a beta, and then provide some more feedback?

Well, if you give it another try and will provide more details, I would be happy to investigate that.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.