Arduino 2.0 not starting up

Hi Guys,

Downloaded the arduino 2.0 version rc3 but am not able to open the application up. Its getting stuck up right from the start showing the image below. I had the previous version of arduino on which i uninstalled and downloaded the 2.0.

I have tried to find the arduino debug.exe. but not able to find it in my installation folder. I have also tried to delete all other files and libraries in my previous folder like arduino 15 etc. Still no luck. Please help!. Thank you.

1 Like

Just checking... if you are using a 64 bit system.

The have a forum discussion:
https://www.google.com/url?q=https://forum.arduino.cc/c/software/arduino-ide-2-0-beta/93&sa=D&source=editors&ust=1643094672054374&usg=AOvVaw0fdqy_MEm2Nu3tlPSStFP0

Also, they have a feedback page:

Hi @bijoythomaschandy. Thanks for your report.

I'm going to ask you to provide the output you get from running the IDE from the command line.

From your mention of "arduino debug.exe", I'm assuming you are using Windows, and so these are the Windows-specific instructions. If you are using a different operating system, just let me know and I'll provide the appropriate instructions.

Please do this:

  1. Start File Explorer (AKA "Windows Explorer").
  2. Open the Arduino IDE 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.


Arduino IDE 2.x does not have an arduino_debug.exe. There is only the one Arduino IDE.exe, which is used both for running the IDE normally and when you need to get output for troubleshooting. I think it is more convenient this way.

2 Likes

Thanks @xfpd. You are correct that feedback and requests for help that are specific to Arduino IDE 2.x should be made in its dedicated forum category:

This Arduino IDE 2.x-specific topic is now located in that category, so all is as it should be.

Everyone is welcome to use that feedback form, but keep in mind that it does not allow for discussion. That is no problem when you only want to submit some quick feedback to Arduino and move on, but often some communication back and forth is needed.

This report is a good example. A feedback form submission that says "It doesn't start" is difficult for the developers to act on because they usually will need more information, and also might request the user to try out a potential fix in a case where the developers are unable to reproduce the issue.

Thank you for helping out. Here is what I got after following instructions:-

PS C:\Users\bchandy\AppData\Local\Programs\Arduino IDE> &".\Arduino IDE"
PS C:\Users\bchandy\AppData\Local\Programs\Arduino IDE>
Starting backend process. PID: 2784
Using browser-only version of superagent in non-browser environment
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
root INFO Configuration directory URI: 'file:///c%3A/Users/bchandy/.theia'
root ERROR (node:2784) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
root INFO Theia app listening on http://localhost:57082.
root WARN The local plugin referenced by local-dir:/c%3A/Users/bchandy/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/c%3A/Users/bchandy/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:C:\Users\bchandy\.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.2-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:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension"
root INFO Deploying backend plugin "vscode-arduino-tools@0.0.2-beta.1" from "C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle"
root INFO Deploying backend plugin "cpp@1.52.1" from "C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension"
root INFO Deploying backend plugin "json@1.46.1" from "C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension"
root INFO Deploying backend plugin "json-language-features@1.46.1" from "C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain"
root INFO Deploy plugins list took: 37.5 ms
root WARN Backend ConfigServiceImpl.onStart is slow, took: 89.7 ms
daemon INFO Starting daemon from C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\bchandy\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.20.2
daemon INFO Executing `arduino-cli daemon`
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO {"IP":"127.0.0.1","Port":"57083"}
daemon INFO Daemon is running.
daemon INFO Checking if CLI is Bundled into the IDE
daemon INFO Adding libraries dir [dir: C:\Users\bchandy\Documents\Arduino\libraries, location: user]
daemon INFO URL: https://downloads.arduino.cc/packages/package_index.json
daemon INFO Updating index [url: https://downloads.arduino.cc/packages/package_index.json]
root INFO Git askpass helper is listening on http://127.0.0.1:57091.
root ERROR Error: Git installation not found.
    at C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\find-git-exec\lib\find-git-exec.js:69:69
    at async DefaultGitInit.init (C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\theia\git\git-init.js:22:49)
root WARN Frontend CommonFrontendContribution.configure is slow, took: 394.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/dompurify
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/multer
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/editor-preview
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/markdown-it
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/temp
root WARN Failed to resolve module: @types/which
root ERROR DefaultJsonSchemaContribution.registerSchemas is taking more than 500.0 ms, new schemas are ignored.
fwuploader ERROR Error: Error executing "C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-fwuploader.exe" firmware list --format json: downloading index https://downloads.arduino.cc/arduino-fwuploader/boards/module_firmware_index.json.gz: Get "https://downloads.arduino.cc/arduino-fwuploader/boards/module_firmware_index.json.gz": dial tcp 104.18.29.45:443: i/o timeout
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0xa4ca55]

goroutine 1 [running]:
github.com/arduino/arduino-fwuploader/cli/firmware.list(0x0, 0x0)
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/cli/firmware/list.go:66 +0x55
github.com/arduino/arduino-fwuploader/cli/firmware.newListCommand.func1(0xc0001d4c80, 0xc0000689a0, 0x0, 0x2)
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/cli/firmware/list.go:42 +0x45
github.com/spf13/cobra.(*Command).execute(0xc0001d4c80, 0xc000068980, 0x2, 0x2, 0xc0001d4c80, 0xc000068980)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:856 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001d4000, 0x0, 0x0, 0xa91a80)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
main.main()
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/main.go:35 +0x45
    at ChildProcess.<anonymous> (C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\exec-util.js:53:31)
    at ChildProcess.emit (events.js:223:5)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
root ERROR Request updatableBoards failed with error: Error executing "C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-fwuploader.exe" firmware list --format json: downloading index https://downloads.arduino.cc/arduino-fwuploader/boards/module_firmware_index.json.gz: Get "https://downloads.arduino.cc/arduino-fwuploader/boards/module_firmware_index.json.gz": dial tcp 104.18.29.45:443: i/o timeout
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0xa4ca55]

goroutine 1 [running]:
github.com/arduino/arduino-fwuploader/cli/firmware.list(0x0, 0x0)
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/cli/firmware/list.go:66 +0x55
github.com/arduino/arduino-fwuploader/cli/firmware.newListCommand.func1(0xc0001d4c80, 0xc0000689a0, 0x0, 0x2)
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/cli/firmware/list.go:42 +0x45
github.com/spf13/cobra.(*Command).execute(0xc0001d4c80, 0xc000068980, 0x2, 0x2, 0xc0001d4c80, 0xc000068980)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:856 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001d4000, 0x0, 0x0, 0xa91a80)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
main.main()
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/main.go:35 +0x45
fwuploader ERROR Error: Error executing "C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-fwuploader.exe" firmware list --format json: downloading index https://downloads.arduino.cc/arduino-fwuploader/boards/module_firmware_index.json.gz: Get "https://downloads.arduino.cc/arduino-fwuploader/boards/module_firmware_index.json.gz": dial tcp 104.18.29.45:443: i/o timeout
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0xa4ca55]

goroutine 1 [running]:
github.com/arduino/arduino-fwuploader/cli/firmware.list(0x0, 0x0)
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/cli/firmware/list.go:66 +0x55
github.com/arduino/arduino-fwuploader/cli/firmware.newListCommand.func1(0xc0001d4c80, 0xc0000689a0, 0x0, 0x2)
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/cli/firmware/list.go:42 +0x45
github.com/spf13/cobra.(*Command).execute(0xc0001d4c80, 0xc000068980, 0x2, 0x2, 0xc0001d4c80, 0xc000068980)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:856 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001d4000, 0x0, 0x0, 0xa91a80)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
main.main()
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/main.go:35 +0x45
    at ChildProcess.<anonymous> (C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\exec-util.js:53:31)
    at ChildProcess.emit (events.js:223:5)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
root ERROR Request updatableBoards failed with error: Error executing "C:\Users\bchandy\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-fwuploader.exe" firmware list --format json: downloading index https://downloads.arduino.cc/arduino-fwuploader/boards/module_firmware_index.json.gz: Get "https://downloads.arduino.cc/arduino-fwuploader/boards/module_firmware_index.json.gz": dial tcp 104.18.29.45:443: i/o timeout
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0xa4ca55]

goroutine 1 [running]:
github.com/arduino/arduino-fwuploader/cli/firmware.list(0x0, 0x0)
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/cli/firmware/list.go:66 +0x55
github.com/arduino/arduino-fwuploader/cli/firmware.newListCommand.func1(0xc0001d4c80, 0xc0000689a0, 0x0, 0x2)
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/cli/firmware/list.go:42 +0x45
github.com/spf13/cobra.(*Command).execute(0xc0001d4c80, 0xc000068980, 0x2, 0x2, 0xc0001d4c80, 0xc000068980)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:856 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001d4000, 0x0, 0x0, 0xa91a80)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
main.main()
        /home/runner/work/arduino-fwuploader/arduino-fwuploader/main.go:35 +0x45
root ERROR Error while updating index in attempt 0.
daemon INFO URL: https://downloads.arduino.cc/packages/package_index.json
daemon INFO Updating index [url: https://downloads.arduino.cc/packages/package_index.json]

I think the cause is this:

The IDE downloads the package index files used by Boards Manager when it starts up so that it will be able to provide up to date information about which versions of the boards platforms are available for installation or update.

These errors:

look very alarming, but I don't think they are the cause of the problem because it looks like your startup process got past that.

However, I think these errors provide a clue to the cause of the error while downloading the package index:

Get "https://downloads.arduino.cc/arduino-fwuploader/boards/module_firmware_index.json.gz": dial tcp 104.18.29.45:443: i/o timeout

So it looks like your computer is connected to the Internet, but the download it taking too long so it times out, and the IDE is not able to recover from that condition and carry on with the startup.

I can simulate a similar condition by starting the IDE with my computer disconnected from the Internet. This does cause the arduino-fwuploader panics. However, I don't get that error about downloading the package index and the IDE is still able to start up. So I think the problem is specific to this timeout condition and I'm not sure how I can reproduce that condition to check.

What happens if you open this URL in your browser?:

https://downloads.arduino.cc/packages/package_index.json

The expected result is that you should get a JSON file that looks something like this:

{
  "packages": [
    {
      "name": "arduino",
      "maintainer": "Arduino",
      "websiteURL": "http://www.arduino.cc/",
      "email": "packages@arduino.cc",
      "help": {
        "online": "http://www.arduino.cc/en/Reference/HomePage"
      },
      "platforms": [
        {
          "name": "Arduino AVR Boards",
          "architecture": "avr",
          "version": "1.6.2",

... and so on for many lines.

Do you see that, or do you get something else like a CAPTCHA or error message?

after typing this in the URL I get the expected result with NO capcha or error message

Is there anything noteworthy about your network, firewall, Internet connection, etc.?

My apologies mate but I do not know anything about the network. This is my office laptop. Having said that, I have tried deactivating the firewall and reinstalling the software- Still no luck. I have installed the previous versions of arduino in here, so my guess is that it shouldn't be a problem to get an updated version installed. I could be wrong tho.

Unfortunately, I have not found any good leads on your problem after some searching. There are quite a few results matching the same format of the error message on Stack Overflow:

https://www.google.com/search?q="dial+tcp"+"i/o+timeout"+site:stackoverflow.com

But the majority of these are related to Kubernetes, which makes me suspect they are not directly relevant to your problem (though likely there is some commonality between the two).

The closest simulation of your state I could produce is by disconnecting my computer from the Internet, and this took me off on a side track of taking a close look at the Arduino IDE 2.x user experience when not connected to the Internet, which revealed some areas for improvement. But unfortunately none of that is applicable to the problem you are having.

Maybe one of the other forum members has an idea?

Thank you ptillisch. I have installed the previous version of the arduino and it works alright. had to install it to help with the project which was on a timeline.

1 Like

OK, thanks for the update. I'm sorry we weren't able to find a solution for the problem with Arduino IDE 2.0.0, but I'm glad you are able to carry on with your work using the classic Arduino IDE. Hopefully the issue will have been resolved by the next time you decide to give Arduino IDE 2.x a try.

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