IDE hangs on startup: "Invalid additional URL"

I just downloaded the latest version 2.3.3 for my Windows 11 PC, but Just the start icon appears. I wanted go back tot version IDE 2.3.2 but cannot find it anymore.

Releases · arduino/arduino-ide · GitHub; scroll down to 2.3.2, expand assets and make your pick.

What did you do? Did you upgrade? Or did you do a fresh install of 2.3.3? Is logo pulsating or steady?

I think a LOT of background downloads are occurring on the first launch of every 2.x.x. Relaunch it and let it run a few times.

Same here, pulsating icon, nothing else. I wonder if an invisible window was open on a different screen, but this does not seem to be the case. Only choice is to switch to PlatformIO / VScode, which is a pain to setup but which at least works. How is the IDE implemented, in Java? Could there be an issue with the Java runtime engine?

Hi @menzi74

Please add a forum reply here to tell us which operating system you are using (e.g., "Windows")?

I ask because I would like to give you the appropriate instructions for your operating system.

No. It is written in the TypeScript programming language. Arduino IDE 1.x was written in Java, but not Arduino IDE 2.x.

Sorry, should have mentioned. It is running on a Windows 11 Pro version 10.0.22631 Build 22631, on a Lenovo Thinkpad system model 21JN0002UK with 16GB physical memory, processor intel i7-1355U. Note: I have also tried to run this as an administrator but to no avail.

@menzi74

You can follow the instructions in this reply and post the results here: Downloading index: package_rp2040_index.json - #11 by ptillisch

PS C:\Program Files\Arduino IDE> &".\Arduino IDE"
PS C:\Program Files\Arduino IDE>
Arduino IDE 2.3.3
Checking for frontend application configuration customizations. Module path: C:\Program Files\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Program Files\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.3" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "1.0.4" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-09-25T09:41:18.242Z" (type of string)
Frontend application configuration after modifications: {"applicationName":"Arduino IDE","defaultTheme":{"light":"arduino-theme","dark":"arduino-theme-dark"},"defaultIconTheme":"none","electron":{"windowOptions":{}},"defaultLocale":"","validatePreferencesSchema":false,"preferences":{"window.title":"${rootName}${activeEditorShort}${appName}","files.autoSave":"afterDelay","editor.minimap.enabled":false,"editor.tabSize":2,"editor.scrollBeyondLastLine":false,"editor.quickSuggestions":{"other":false,"comments":false,"strings":false},"editor.maxTokenizationLineLength":500,"editor.bracketPairColorization.enabled":false,"breadcrumbs.enabled":false,"workbench.tree.renderIndentGuides":"none","explorer.compactFolders":false},"appVersion":"2.3.3","cliVersion":"1.0.4","buildDate":"2024-09-25T09:41:18.242Z"}
Starting backend process. PID: 20608
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/jjmva/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-10-09T14:24:27.356Z root INFO Backend Object.initialize: 4.5 ms [Finished 0.474 s after backend start]
2024-10-09T14:24:27.357Z root INFO Backend Object.configure: 3.9 ms [Finished 0.474 s after backend start]
2024-10-09T14:24:27.357Z root INFO Backend a.onStart: 2.4 ms [Finished 0.475 s after backend start]
2024-10-09T14:24:27.358Z root INFO Backend a.configure: 0.4 ms [Finished 0.499 s after backend start]
2024-10-09T14:24:27.358Z root INFO Backend d.onStart: 0.2 ms [Finished 0.499 s after backend start]
2024-10-09T14:24:27.359Z root INFO Backend d.configure: 0.1 ms [Finished 0.499 s after backend start]
2024-10-09T14:24:27.360Z root INFO Backend d.initialize: 24.4 ms [Finished 0.499 s after backend start]
2024-10-09T14:24:27.360Z root INFO Backend c.onStart: 0.2 ms [Finished 0.499 s after backend start]
2024-10-09T14:24:27.360Z root INFO Backend s.configure: 1.2 ms [Finished 0.500 s after backend start]
2024-10-09T14:24:27.362Z config INFO >>> Initializing CLI configuration...
2024-10-09T14:24:27.362Z root INFO Backend c.initialize: 0.5 ms [Finished 0.501 s after backend start]
2024-10-09T14:24:27.362Z root INFO Backend x.onStart: 0.6 ms [Finished 0.501 s after backend start]
2024-10-09T14:24:27.363Z config INFO Loading CLI configuration from c:\Users\jjmva\.arduinoIDE\arduino-cli.yaml...
2024-10-09T14:24:27.363Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-10-09T14:24:27.363Z root INFO Backend s.initialize: 0.4 ms [Finished 0.502 s after backend start]
2024-10-09T14:24:27.363Z root INFO Backend w.onStart: 1.1 ms [Finished 0.503 s after backend start]
2024-10-09T14:24:27.363Z root INFO Backend r.configure: 1.8 ms [Finished 0.503 s after backend start]
2024-10-09T14:24:27.363Z discovery-log INFO start
2024-10-09T14:24:27.363Z discovery-log INFO start new deferred
2024-10-09T14:24:27.364Z root INFO Backend d.initialize: 0.4 ms [Finished 0.503 s after backend start]
2024-10-09T14:24:27.364Z root INFO Backend y.onStart: 1.8 ms [Finished 0.505 s after backend start]
2024-10-09T14:24:27.364Z root INFO Backend r.configure: 1.5 ms [Finished 0.505 s after backend start]
2024-10-09T14:24:27.364Z root INFO Backend s.onStart: 0.5 ms [Finished 0.506 s after backend start]
2024-10-09T14:24:27.364Z root INFO Backend h.configure: 0.5 ms [Finished 0.506 s after backend start]
2024-10-09T14:24:27.364Z root INFO Backend a.configure: 0.1 ms [Finished 0.507 s after backend start]
2024-10-09T14:24:27.364Z root INFO Backend l.configure: 0.1 ms [Finished 0.507 s after backend start]
2024-10-09T14:24:27.366Z root INFO Theia app listening on http://127.0.0.1:50271.
2024-10-09T14:24:27.366Z root INFO Finished starting backend application: 2.7 ms [Finished 0.509 s after backend start]
2024-10-09T14:24:27.367Z root WARN The local plugin referenced by local-dir:/c%3A/Users/jjmva/.arduinoIDE/plugins does not exist.
2024-10-09T14:24:27.367Z root WARN The local plugin referenced by local-dir:/c%3A/Users/jjmva/.arduinoIDE/extensions does not exist.
2024-10-09T14:24:27.367Z root WARN The local plugin referenced by local-dir:C:\Users\jjmva\.arduinoIDE\plugins does not exist.
2024-10-09T14:24:27.372Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":["http://arduino.esp8266.com/stable/package_esp8266com_index.jsonebServer.git","https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json","ps://raw.githubusercontent.com/espressif/arduino-esp32/gh\u0002pages/package_esp32_index.json"]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"C:\\Users\\jjmva\\AppData\\Local\\Arduino15\\libraries"},"data":"c:\\Users\\jjmva\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\jjmva\\AppData\\Local\\Arduino15\\staging","user":"c:\\Users\\jjmva\\.arduinoIDE"},"library":{"enable_unsafe_install":false},"locale":"en","logging":{"file":"","format":"text","level":"info"},"metrics":{"addr":":9090","enabled":true},"output":{"no_color":false},"sketch":{"always_export_binaries":false},"updater":{"enable_notification":true}}
2024-10-09T14:24:27.372Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-10-09T14:24:27.372Z config INFO Loaded the CLI configuration.
Restoring workspace roots: c:\Users\jjmva\.arduinoIDE\4_digits_multiplexing\4_digits_multiplexing.ino
isTempSketch: false. Input was c:\Users\jjmva\.arduinoIDE\4_digits_multiplexing\4_digits_multiplexing.ino
2024-10-09T14:24:27.383Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/jjmva/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/jjmva/.arduinoIDE","additionalUrls":["http://arduino.esp8266.com/stable/package_esp8266com_index.jsonebServer.git","https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json","ps://raw.githubusercontent.com/espressif/arduino-esp32/gh\u0002pages/package_esp32_index.json"],"network":"none","locale":"en"}
2024-10-09T14:24:27.383Z config INFO Validating the CLI configuration...
2024-10-09T14:24:27.383Z config INFO The CLI config is valid.
2024-10-09T14:24:27.383Z config INFO <<< Initialized the CLI configuration.
2024-10-09T14:24:27.400Z root INFO Resolve plugins list: 37.3 ms [Finished 0.542 s after backend start]
2024-10-09T14:24:27.477Z daemon INFO time="2024-10-09T16:24:27+02:00" level=info msg="arduino-cli version 1.0.4"
time="2024-10-09T16:24:27+02:00" level=info msg="Using config file: c:\\Users\\jjmva\\.arduinoIDE\\arduino-cli.yaml"
time="2024-10-09T16:24:27+02:00" level=info msg="Executing `arduino-cli daemon`"
2024-10-09T14:24:27.492Z daemon INFO Daemon is now listening on 127.0.0.1:50272
{"IP":"127.0.0.1","Port":"50272"}
2024-10-09T14:24:27.492Z daemon INFO Daemon is running.
2024-10-09T14:24:27.543Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Invalid additional URL: parse "ps://raw.githubusercontent.com/espressif/arduino-esp32/gh\x02pages/package_esp32_index.json": net/url: invalid control character in URL
2024-10-09T14:24:27.544Z daemon INFO time="2024-10-09T16:24:27+02:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
time="2024-10-09T16:24:27+02:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"
2024-10-09T14:24:27.819Z daemon INFO time="2024-10-09T16:24:27+02:00" level=info msg="Updating index" url="http://arduino.esp8266.com/stable/package_esp8266com_index.jsonebServer.git"
time="2024-10-09T16:24:27+02:00" level=info msg="Starting download" url="http://arduino.esp8266.com/stable/package_esp8266com_index.jsonebServer.git"
2024-10-09T14:24:27.868Z daemon INFO time="2024-10-09T16:24:27+02:00" level=info msg="Updating index" url="https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json"
time="2024-10-09T16:24:27+02:00" level=info msg="Starting download" url="https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json"
2024-10-09T14:24:27.931Z root ERROR Error occurred while initializing the core gRPC client provider Error: 14 UNAVAILABLE: read ECONNRESET
    at t.callErrorFromStatus (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:912720)
    at Object.onReceiveStatus (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:940342)
    at Object.onReceiveStatus (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:933364)
    at C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:1019505
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at a.makeServerStreamRequest (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:940109)
    at a.init (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:1004397)
    at C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:769856
    at new Promise (<anonymous>)
    at v.initInstance (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:769822)
    at v.initInstanceWithFallback (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:768678)
    at v.create (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:768583)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-10-09T14:24:27.932Z root ERROR Uncaught Exception:  Error: 14 UNAVAILABLE: read ECONNRESET
2024-10-09T14:24:27.932Z root ERROR Error: 14 UNAVAILABLE: read ECONNRESET
    at t.callErrorFromStatus (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:912720)
    at Object.onReceiveStatus (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:940342)
    at Object.onReceiveStatus (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:933364)
    at C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:1019505
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
for call at
    at a.makeServerStreamRequest (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:940109)
    at a.init (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:1004397)
    at C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:769856
    at new Promise (<anonymous>)
    at v.initInstance (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:769822)
    at v.initInstanceWithFallback (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:768678)
    at v.create (C:\Program Files\Arduino IDE\resources\app\lib\backend\main.js:2:768583)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-10-09T14:24:27.932Z daemon INFO time="2024-10-09T16:24:27+02:00" level=warning msg="unable to parse additional URL: ps://raw.githubusercontent.com/espressif/arduino-esp32/gh\x02pages/package_esp32_index.json"
2024-10-09T14:24:27.932Z daemon INFO panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x54fd54]

goroutine 40 [running]:
net/url.(*URL).String(0x0)
        /usr/local/go/src/net/url/url.go:817 +0x34
github.com/arduino/arduino-cli/commands.(*arduinoCoreServerImpl).UpdateIndex.func1(...)
        /home/build/commands/instances.go:536
github.com/arduino/arduino-cli/commands.(*arduinoCoreServerImpl).UpdateIndex(0xc0000090b0, 0xc0001f8740, {0x130b2e0, 0xc000184978})
        /home/build/commands/instances.go:564 +0x79e
github.com/arduino/arduino-cli/commands.firstUpdate({0x1306468, 0xc0002de840}, {0x1316708, 0xc0000090b0}, 0xc0002deab0, 0xc000587ab0, 0xc000587610, {0xc00007e7a0, 0x3, 0x4})
        /home/build/commands/instances.go:669 +0x437
github.com/arduino/arduino-cli/commands.(*arduinoCoreServerImpl).Init(0xc0000090b0, 0xc0001865a0, {0x130b9c0, 0xc0005875e0})
        /home/build/commands/instances.go:193 +0x4e5
github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1._ArduinoCoreService_Init_Handler({0xf6dd60, 0xc0000090b0}, {0x13094d8, 0xc0002ea000})
        /home/build/rpc/cc/arduino/cli/commands/v1/commands_grpc.pb.go:1429 +0x10a
google.golang.org/grpc.(*Server).processStreamingRPC(0xc000470000, {0x1306468, 0xc0002de750}, {0x130d240, 0xc000002000}, 0xc0000ea240, 0xc000124720, 0x1a53c00, 0x0)
        /go/pkg/mod/google.golang.org/[email protected]/server.go:1673 +0x1208
google.golang.org/grpc.(*Server).handleStream(0xc000470000, {0x130d240, 0xc000002000}, 0xc0000ea240)
        /go/pkg/mod/google.golang.org/[email protected]/server.go:1794 +0xe3a
google.golang.org/grpc.(*Server).serveStreams.func2.1()
        /go/pkg/mod/google.golang.org/[email protected]/server.go:1029 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 51
        /go/pkg/mod/google.golang.org/[email protected]/server.go:1040 +0x125
2024-10-09T14:24:27.934Z daemon INFO Daemon exited with exit code: 2.
2024-10-09T14:24:28.110Z root INFO Deploy plugins list: 37.3 ms [Finished 1.253 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-10-09T14:24:28.938Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 136.5 ms [Finished 1.499 s after frontend start]
2024-10-09T14:24:28.938Z root WARN A command editor.action.toggleStickyScroll is already registered.


Herewith you receive the output of my Power Shell 7 Hope you can hel me further. Thanks.

I did a fresh install

I think the cause is the \x02 in the url.

Close the IDE (if it's partially started) and open the file c:\Users\jjmva\.arduinoIDE\arduino-cli.yaml with a text editor of choice

The first part will look like

board_manager:
    additional_urls:
        - http://drazzy.com/package_drazzy.com_index.json
        - https://arduino.esp8266.com/stable/package_esp8266com_index.json
        - https://espressif.github.io/arduino-esp32/package_esp32_index.json
        - https://mcudude.github.io/MegaCore/package_MCUdude_MegaCore_index.json
        - https://mcudude.github.io/MegaCoreX/package_MCUdude_MegaCoreX_index.json
        - https://mcudude.github.io/MicroCore/package_MCUdude_MicroCore_index.json
        - https://mcudude.github.io/MightyCore/package_MCUdude_MightyCore_index.json
        - https://mcudude.github.io/MiniCore/package_MCUdude_MiniCore_index.json
        - https://raw.githubusercontent.com/sparkfun/Arduino_Boards/main/IDE_Board_Manager/package_sparkfun_index.json
        - https://www.pjrc.com/teensy/package_teensy_index.json

Remove the line that refers to the arduino-esp32 board package or fix it and save the file. Next start the IDE again.

Alternatively, you can delete the yaml file and start the IDE again; a new file will be created.

If in doubt, backup the file.

1 Like

Thank you very much! I deleted the file and some others in that directory. It's working fine now.

Please mark your topic as solved by clicking the solution button under the most useful reply. That way others with the same problem or those that want to provide help know that a solution is provided.

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