IDE hangs on startup, with no error shown in logs

Hello!
I installed Arduino IDE, but it doesn't start and stays at the startup screen.

First, I connected the arduino to my computer via USB. The ON lamp on the Arduino is lit. The L lamp is blinking. In this situation, when I start the Arduino IDE on my computer, a startup screen with the Arduino logo repeatedly getting bigger and smaller is displayed, but it doesn't start.

This is my first time installing Arduino IDE.
I have installed it in a windows virtual environment inside my chromebook and am performing operations within the virtual environment.
W10-D-CL01-1321
Arduino IDE 2.3.0
The computer is connected to the Internet.
I downloaded the Arduino IDE for Windows Win 10 and newer, 64 bits.

I performed the operation using PowerShell using the URL below as a reference.

Then, I got the following text. Please help, anyone?

PS C:\Users\”XXXX_XXXX”\AppData\Local\Programs\Arduino IDE> & ".\Arduino IDE"
PS C:\Users\”XXXX_XXXX”\AppData\Local\Programs\Arduino IDE>
Arduino IDE 2.3.0
Checking for frontend application configuration customizations. Module path: C:\Users\”XXXX_XXXX”\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\”XXXX_XXXX”\AppData\Local\Programs\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.0" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.2" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-07T14:04:32.754Z" (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.0","cliVersion":"0.35.2","buildDate":"2024-02-07T14:04:32.754Z"}
Starting backend process. PID: 12364
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/”XXXX_XXXX”/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-02-14T05:12:56.254Z root INFO Backend Object.initialize: 5.4 ms [Finished 0.645 s after backend start]
2024-02-14T05:12:56.255Z root INFO Backend Object.configure: 4.6 ms [Finished 0.645 s after backend start]
2024-02-14T05:12:56.255Z root INFO Backend a.onStart: 1.9 ms [Finished 0.645 s after backend start]
2024-02-14T05:12:56.256Z root INFO Backend a.configure: 0.4 ms [Finished 0.674 s after backend start]
2024-02-14T05:12:56.257Z root INFO Backend d.onStart: 0.2 ms [Finished 0.674 s after backend start]
2024-02-14T05:12:56.258Z root INFO Backend d.configure: 0.1 ms [Finished 0.674 s after backend start]
2024-02-14T05:12:56.259Z root INFO Backend d.initialize: 29.1 ms [Finished 0.674 s after backend start]
2024-02-14T05:12:56.259Z root INFO Backend c.onStart: 0.3 ms [Finished 0.674 s after backend start]
2024-02-14T05:12:56.260Z root INFO Backend s.configure: 1.1 ms [Finished 0.675 s after backend start]
2024-02-14T05:12:56.262Z config INFO >>> Initializing CLI configuration...
2024-02-14T05:12:56.262Z root INFO Backend c.initialize: 0.8 ms [Finished 0.676 s after backend start]
2024-02-14T05:12:56.262Z root INFO Backend R.onStart: 1.0 ms [Finished 0.676 s after backend start]
2024-02-14T05:12:56.263Z config INFO Loading CLI configuration from c:\Users\”XXXX_XXXX”\.arduinoIDE\arduino-cli.yaml...
2024-02-14T05:12:56.264Z daemon INFO Starting daemon from C:\Users\”XXXX_XXXX”\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-02-14T05:12:56.264Z root INFO Backend s.initialize: 0.4 ms [Finished 0.677 s after backend start]
2024-02-14T05:12:56.264Z root INFO Backend w.onStart: 1.4 ms [Finished 0.679 s after backend start]
2024-02-14T05:12:56.264Z root INFO Backend r.configure: 2.4 ms [Finished 0.679 s after backend start]
2024-02-14T05:12:56.265Z discovery-log INFO start
2024-02-14T05:12:56.265Z discovery-log INFO start new deferred
2024-02-14T05:12:56.265Z root INFO Backend d.initialize: 1.2 ms [Finished 0.680 s after backend start]
2024-02-14T05:12:56.265Z root INFO Backend y.onStart: 2.4 ms [Finished 0.682 s after backend start]
2024-02-14T05:12:56.265Z root INFO Backend r.configure: 2.0 ms [Finished 0.682 s after backend start]
2024-02-14T05:12:56.265Z root INFO Backend s.onStart: 0.6 ms [Finished 0.684 s after backend start]
2024-02-14T05:12:56.265Z root INFO Backend h.configure: 0.5 ms [Finished 0.684 s after backend start]
2024-02-14T05:12:56.265Z root INFO Backend a.configure: 0.7 ms [Finished 0.685 s after backend start]
2024-02-14T05:12:56.265Z root INFO Backend l.configure: 0.2 ms [Finished 0.685 s after backend start]
2024-02-14T05:12:56.269Z root INFO Theia app listening on http://127.0.0.1:61763.
2024-02-14T05:12:56.271Z root INFO Finished starting backend application: 4.8 ms [Finished 0.689 s after backend start]
2024-02-14T05:12:56.294Z root WARN The local plugin referenced by local-dir:/c%3A/Users/”XXXX_XXXX”/.arduinoIDE/plugins does not exist.
2024-02-14T05:12:56.295Z root WARN The local plugin referenced by local-dir:/c%3A/Users/”XXXX_XXXX”/.arduinoIDE/extensions does not exist.
2024-02-14T05:12:56.295Z root WARN The local plugin referenced by local-dir:C:\Users\”XXXX_XXXX”\.arduinoIDE\plugins does not exist.
2024-02-14T05:12:56.311Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\”XXXX_XXXX”\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\”XXXX_XXXX”\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\”XXXX_XXXX”\\Documents\\Arduino"},"library":{"enable_unsafe_install":false},"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-02-14T05:12:56.311Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-02-14T05:12:56.311Z config INFO Loaded the CLI configuration.
2024-02-14T05:12:56.321Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/”XXXX_XXXX”/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/”XXXX_XXXX”/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-02-14T05:12:56.321Z config INFO Validating the CLI configuration...
2024-02-14T05:12:56.325Z config INFO The CLI config is valid.
2024-02-14T05:12:56.325Z config INFO <<< Initialized the CLI configuration.
2024-02-14T05:12:56.379Z root INFO Resolve plugins list: 115.6 ms [Finished 0.798 s after backend start]
2024-02-14T05:12:56.958Z daemon INFO time="2024-02-14T14:12:56+09:00" level=info msg="Using config file: c:\\Users\\”XXXX_XXXX”\\.arduinoIDE\\arduino-cli.yaml"
time="2024-02-14T14:12:56+09:00" level=info msg="arduino-cli.exe version 0.35.2"
time="2024-02-14T14:12:56+09:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:61765
{"IP":"127.0.0.1","Port":"61765"}
2024-02-14T05:12:56.961Z daemon INFO Daemon is running.
2024-02-14T05:12:57.222Z daemon INFO time="2024-02-14T14:12:57+09:00" level=info msg="Updating libraries index"
time="2024-02-14T14:12:57+09:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-02-14T05:12:57.990Z root INFO Deploy plugins list: 115.6 ms [Finished 2.409 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-02-14T05:12:58.753Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 192.0 ms [Finished 2.324 s after frontend start]
2024-02-14T05:12:58.753Z root WARN A command editor.action.toggleStickyScroll is already registered.

Hi @mtmr.

Did the problem of the IDE startup hanging at that pulsing Arduino logo animation phase happen during the session that produced that text?

I ask because I looked at the logs and I don't see any indication that something went wrong while they were being produced.

Thank you for your reply! :slight_smile:
When Powershell wrote this texts, the Arduino IDE only made the logo bigger and smaller, but did not start.
Other than this time, this situation happens every time I try to start the Arduino IDE.

It is possible the problem is caused by some problem in the Arduino IDE application configuration data. If so, it should be possible to restore the IDE to functionality by deleting the folders where the data is stored. This will force Arduino IDE to automatically regenerate the default configuration data.

Please try this:


:warning: The folders to be deleted do not contain any of the data for your sketch projects so deleting them should not result in the loss of any irreplaceable data. However, please always be careful when deleting things from your computer. When in doubt, back up!


  1. Close all Arduino IDE windows if the IDE is already running.
  2. Delete the folder at the following path:
    C:\Users\<username>\.arduinoIDE\
    
    (where <username> is your Windows username)
  3. Delete the folder at the following path:
    C:\Users\<username>\AppData\Roaming\arduino-ide\
    
    (where <username> is your Windows username)
    :exclamation: If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".

Now start Arduino IDE again. Hopefully this time it will start up fully.


:exclamation: The Arduino IDE preferences will have been reset to their default values. If you had previously made any customizations to the preferences (e.g., the "Additional Boards Manager URLs" preference) then you will now want to reconfigure the IDE as necessary.


Please let me know if you have any questions or problems while following those instructions.

3 Likes

Thank you for answering!
I tried following your instructions, but the Arduino IDE only made the logo bigger and smaller, but did not start...
What should I do?

Arduino IDE automatically generates log files while it is running. I'm going to ask you to provide the latest log file from your computer. It might contain information that will help us to identify the problem.

Please do this:

  1. Open a forum reply here by clicking the "Reply" button.
  2. Click the "Upload" icon (image) on the post composer toolbar:
    Upload icon on toolbar
    The "Open" dialog will open.
  3. In the "Open" dialog, select the latest .log file from this folder (the files are named according to the date):
    C:\Users\<username>\AppData\Roaming\Arduino IDE\
    
    (where <username> is your Windows username)
    ⓘ Note that the C:\Users\<username>\AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  4. Click the "Open" button.
    The dialog will close.
  5. Click the "Reply" button to publish the post.

Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .log file onto the post composer field to attach it.


Please let me know if you have any questions or problems while following those instructions.

Hi,
I have started the ide using & ".\Arduino IDE". The IDE started and offered me an update to 2.3.1 which I installed. The IDE still does not start, I just see the pulsating Arduino icon and nothing more.
Using windows 10 on a corporate managed machine with limited authority

I just tried IDE with enhanced privileges (like run as admin) and it opens correctly.

I went back to the regular user, still not opening.
I deleted the folders suggested, same
Opened with elevated rights, and was offered library updates which I installed but some failed. My sketchbook location was not correct, fixed it, I then chose an Uno the was connected, not all the examples were present.
Went back to regular user, IDE started normally (!) was offered more library updates, installed them all, all examples were available and it seems to be working - I do not know which parts were relevant but mine is now working.

Congratulations on getting it working! Thank you for taking the time to post an update.

Regards,
Per

Hello.
Thank you for your reply!
I tried your instructions, but I was unable to upload because the message "New users cannot attach files." was displayed.
I copied and pasted the contents of the file below.
Could you please check it?


2024-02-16 15:57:15 Arduino IDE 2.3.0

2024-02-16 15:57:15 Checking for frontend application configuration customizations. Module path: C:\Users\<username>\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\<username>\AppData\Local\Programs\Arduino IDE\resources\app\package.json

2024-02-16 15:57:15 Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.0" (type of string)

2024-02-16 15:57:15 Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.2" (type of string)

2024-02-16 15:57:15 Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-07T14:04:32.754Z" (type of string)

2024-02-16 15:57:15 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.0","cliVersion":"0.35.2","buildDate":"2024-02-07T14:04:32.754Z"}

2024-02-16 15:57:15 Starting backend process. PID: 11236

2024-02-16 15:57:15 Using browser-only version of superagent in non-browser environment

2024-02-16 15:57:16 Configuration directory URI: 'file:///c%3A/Users/<username>/.arduinoIDE'

2024-02-16 15:57:16 Configuring to accept webviews on '^.+\.webview\..+$' hostname.

2024-02-16 15:57:16 2024-02-16T06:57:16.081Z root INFO Backend Object.initialize: 5.2 ms [Finished 0.622 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.081Z root INFO Backend Object.configure: 4.3 ms [Finished 0.622 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.081Z root INFO Backend a.onStart: 1.9 ms [Finished 0.622 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.082Z root INFO Backend a.configure: 0.6 ms [Finished 0.661 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.083Z root INFO Backend d.onStart: 0.4 ms [Finished 0.661 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.084Z root INFO Backend d.configure: 0.2 ms [Finished 0.662 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.086Z root INFO Backend d.initialize: 39.6 ms [Finished 0.662 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.087Z root INFO Backend c.onStart: 0.5 ms [Finished 0.662 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.089Z root INFO Backend s.configure: 1.0 ms [Finished 0.663 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.091Z config INFO >>> Initializing CLI configuration...

2024-02-16 15:57:16 2024-02-16T06:57:16.092Z root INFO Backend c.initialize: 0.8 ms [Finished 0.664 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.092Z root INFO Backend R.onStart: 1.3 ms [Finished 0.665 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.092Z config INFO Loading CLI configuration from c:\Users\<username>\.arduinoIDE\arduino-cli.yaml...

2024-02-16 15:57:16 2024-02-16T06:57:16.093Z daemon INFO Starting daemon from C:\Users\<username>\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...

2024-02-16 15:57:16 2024-02-16T06:57:16.093Z root INFO Backend s.initialize: 0.6 ms [Finished 0.666 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.094Z root INFO Backend w.onStart: 2.4 ms [Finished 0.668 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.094Z root INFO Backend r.configure: 3.9 ms [Finished 0.669 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.094Z discovery-log INFO start

2024-02-16 15:57:16 2024-02-16T06:57:16.094Z discovery-log INFO start new deferred

2024-02-16 15:57:16 2024-02-16T06:57:16.095Z root INFO Backend d.initialize: 2.3 ms [Finished 0.671 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.095Z root INFO Backend y.onStart: 4.3 ms [Finished 0.673 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.095Z root INFO Backend r.configure: 2.3 ms [Finished 0.673 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.095Z root INFO Backend s.onStart: 0.8 ms [Finished 0.675 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.096Z root INFO Backend h.configure: 1.0 ms [Finished 0.675 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.096Z root INFO Backend a.configure: 0.7 ms [Finished 0.677 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.096Z root INFO Backend l.configure: 0.1 ms [Finished 0.677 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.100Z root INFO Theia app listening on http://127.0.0.1:53393.

2024-02-16 15:57:16 2024-02-16T06:57:16.100Z root INFO Finished starting backend application: 5.7 ms [Finished 0.682 s after backend start]

2024-02-16 15:57:16 2024-02-16T06:57:16.168Z root WARN The local plugin referenced by local-dir:/c%3A/Users/<username>/.arduinoIDE/plugins does not exist.

2024-02-16 15:57:16 2024-02-16T06:57:16.169Z root WARN The local plugin referenced by local-dir:/c%3A/Users/<username>/.arduinoIDE/extensions does not exist.

2024-02-16 15:57:16 2024-02-16T06:57:16.169Z root WARN The local plugin referenced by local-dir:C:\Users\<username>\.arduinoIDE\plugins does not exist.

2024-02-16 15:57:16 2024-02-16T06:57:16.189Z root INFO Resolve plugins list: 96.9 ms [Finished 0.770 s after backend start]

2024-02-16 15:57:17 2024-02-16T06:57:17.166Z config INFO Loading CLI configuration from c:\Users\<username>\.arduinoIDE\arduino-cli.yaml...

2024-02-16 15:57:18 Opening channel for service path '/services/electron-window'.

2024-02-16 15:57:18 Opening channel for service path '/services/ide-updater'.

2024-02-16 15:57:18 2024-02-16T06:57:18.898Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 273.9 ms [Finished 2.695 s after frontend start]

2024-02-16 15:57:18 2024-02-16T06:57:18.898Z root WARN A command editor.action.toggleStickyScroll is already registered.

2024-02-16 15:57:19 2024-02-16T06:57:19.423Z root WARN Frontend keybindings.onStart took longer than the expected maximum 100 milliseconds: 494.2 ms [Finished 3.219 s after frontend start]

2024-02-16 15:57:20 2024-02-16T06:57:20.003Z root WARN Frontend D.onStart took longer than the expected maximum 100 milliseconds: 496.8 ms [Finished 3.808 s after frontend start]

2024-02-16 15:57:20 2024-02-16T06:57:20.467Z root INFO Deploy plugins list: 96.9 ms [Finished 5.049 s after backend start]

2024-02-16 15:57:20 2024-02-16T06:57:20.566Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\<username>\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\<username>\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\<username>\\Documents\\Arduino"},"library":{"enable_unsafe_install":false},"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-02-16 15:57:20 2024-02-16T06:57:20.566Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.

2024-02-16 15:57:20 2024-02-16T06:57:20.567Z config INFO Loaded the CLI configuration.

2024-02-16 15:57:20 2024-02-16T06:57:20.567Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/<username>/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/<username>/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}

2024-02-16 15:57:20 2024-02-16T06:57:20.567Z config INFO Validating the CLI configuration...

2024-02-16 15:57:20 2024-02-16T06:57:20.568Z config INFO The CLI config is valid.

2024-02-16 15:57:20 2024-02-16T06:57:20.568Z config INFO <<< Initialized the CLI configuration.

2024-02-16 15:57:20 2024-02-16T06:57:20.591Z daemon INFO time="2024-02-16T15:57:20+09:00" level=info msg="Using config file: c:\\Users\\<username>\\.arduinoIDE\\arduino-cli.yaml"

time="2024-02-16T15:57:20+09:00" level=info msg="arduino-cli.exe version 0.35.2"

time="2024-02-16T15:57:20+09:00" level=info msg="Executing `arduino-cli daemon`"

2024-02-16 15:57:20 2024-02-16T06:57:20.597Z daemon INFO Daemon is now listening on 127.0.0.1:53417

{"IP":"127.0.0.1","Port":"53417"}

2024-02-16 15:57:20 2024-02-16T06:57:20.597Z daemon INFO Daemon is running.

2024-02-16 15:57:20 2024-02-16T06:57:20.615Z daemon INFO time="2024-02-16T15:57:20+09:00" level=info msg="Updating libraries index"

2024-02-16 15:57:20 2024-02-16T06:57:20.617Z daemon INFO time="2024-02-16T15:57:20+09:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"

2024-02-16 15:58:02 2024-02-16T06:58:02.763Z root ERROR Detected an error response during the gRPC core client initialization: code: 3, message: Error downloading index 'https://downloads.arduino.cc/libraries/library_index.tar.bz2': Get "https://downloads.arduino.cc/libraries/library_index.tar.bz2": dial tcp 172.64.144.12:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

2024-02-16 15:58:02 2024-02-16T06:58:02.764Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: loading json index file C:\Users\<username>\AppData\Local\Arduino15\package_index.json: open C:\Users\<username>\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.

2024-02-16 15:58:02 2024-02-16T06:58:02.764Z daemon INFO time="2024-02-16T15:58:02+09:00" level=info msg="Loading hardware from: C:\\Users\\<username>\\AppData\\Local\\Arduino15\\packages"

2024-02-16 15:58:02 2024-02-16T06:58:02.767Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found

2024-02-16 15:58:02 2024-02-16T06:58:02.767Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found

2024-02-16 15:58:02 2024-02-16T06:58:02.767Z daemon INFO time="2024-02-16T15:58:02+09:00" level=info msg="Loading libraries index file" index="C:\\Users\\<username>\\AppData\\Local\\Arduino15\\library_index.json"

2024-02-16 15:58:02 2024-02-16T06:58:02.768Z root ERROR Detected an error response during the gRPC core client initialization: code: 9, message: Loading index file: reading library_index.json: open C:\Users\<username>\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-02-16 15:58:02 2024-02-16T06:58:02.768Z daemon INFO time="2024-02-16T15:58:02+09:00" level=info msg="Adding libraries dir" dir="C:\\Users\\<username>\\AppData\\Local\\Arduino15\\libraries" location=ide

2024-02-16 15:58:02 2024-02-16T06:58:02.769Z daemon INFO time="2024-02-16T15:58:02+09:00" level=info msg="Adding libraries dir" dir="C:\\Users\\<username>\\Documents\\Arduino\\libraries" location=user

2024-02-16 15:58:02 2024-02-16T06:58:02.777Z root ERROR The primary packages indexes are missing. Running indexes update before initializing the core gRPC client The index of the cores and libraries must be updated before initializing the core gRPC client.

The following problems were detected during the gRPC client initialization:

[platform-index] - code: 9, message: Loading index file: loading json index file C:\Users\<username>\AppData\Local\Arduino15\package_index.json: open C:\Users\<username>\AppData\Local\Arduino15\package_index.json: The system cannot find the file specified.

[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:serial-discovery not found

[platform-index] - code: 9, message: Error loading hardware platform: discovery builtin:mdns-discovery not found

[library-index] - code: 9, message: Loading index file: reading library_index.json: open C:\Users\<username>\AppData\Local\Arduino15\library_index.json: The system cannot find the file specified.

2024-02-16 15:58:02 2024-02-16T06:58:02.778Z daemon INFO time="2024-02-16T15:58:02+09:00" level=info msg="Updating libraries index"

2024-02-16 15:58:02 2024-02-16T06:58:02.778Z daemon INFO time="2024-02-16T15:58:02+09:00" level=info msg="Updating index" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"

2024-02-16 15:58:02 2024-02-16T06:58:02.784Z daemon INFO time="2024-02-16T15:58:02+09:00" level=info msg="Starting download" url="https://downloads.arduino.cc/packages/package_index.tar.bz2"

2024-02-16 15:58:02 2024-02-16T06:58:02.785Z daemon INFO time="2024-02-16T15:58:02+09:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"

2024-02-16 15:58:02 2024-02-16T06:58:02.787Z root INFO core-client-provider [platform-index] Downloading index: package_index.tar.bz2

2024-02-16 15:58:02 2024-02-16T06:58:02.788Z root INFO core-client-provider [library-index] Downloading index: library_index.tar.bz2

2024-02-16 15:58:08 Closing channel on service path '/services/electron-window'.

2024-02-16 15:58:08 Closing channel on service path '/services/ide-updater'.

2024-02-16 15:58:08 Stored workspaces roots:

2024-02-16 15:58:08 No sketches were scheduled for deletion.


Hi @mtmr. I see the problem here:

On the first run after a fresh installation, Arduino IDE downloads some additional essential components from the Internet and installs them. If it can't install those components then the startup fails. So the computer must have access to the Internet on the first startup.

The errors indicate Arduino IDE is not able to access the Internet. If it is not already, please connect your computer to the Internet, close the Arduino IDE window, then start Arduino IDE again. This time it should start up successfully.

After that first run, an Internet connection is not required. However, there are some supplemental features such as "Library Manager" that have an inherent dependency on the Internet. Those features will not be usable while your computer is offline. But the essential functionality of editing, compiling, and uploading sketches will be available even without an Internet connection.

Thank you for your reply.
With my computer connected to the Internet, I connected the Ardino to the computer via USB and started the Arduino IDE, but it did not start...
What should I do?

Just a FYI, you do not have to connect your board to the computer to be able to use the IDE.

I'm sorry to hear that.

I'm going to ask you to post some additional information that might help us to identify the problem.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Close all Arduino IDE windows if the IDE is already running.
  2. Start Windows "File Explorer".
  3. Open the Arduino IDE installation folder.
    ⓘ The default installation location is at one of the following paths:
    • C:\Program Files\Arduino IDE
      
    • C:\Users\<username>\AppData\Local\Programs\Arduino IDE
      
      (where <username> is your Windows username)
      :exclamation: If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  4. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
  5. From the context menu, click "Open PowerShell window here".
    Windows PowerShell will now open with the current directory set to the Arduino IDE installation folder.
  6. Type the following command:
    & ".\Arduino IDE"
    
  7. Press the Enter key.
    Debug output should now be printed to the PowerShell window as Arduino IDE starts.
  8. Wait until you are sure the IDE startup has gone into the hang state
    (as indicated by no additional output being printed to the terminal).
  9. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  10. Press the Ctrl+Shift+A keyboard shortcut.
    This will select all the text in the PowerShell window.
  11. Press the Ctrl+C keyboard shortcut.
    This will copy the contents of the PowerShell window to the clipboard.
  12. Open a forum reply here by clicking the "Reply" button.
  13. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  14. Press the Ctrl+V keyboard shortcut.
    This will paste the output into the code block.
  15. Move the cursor outside of the code block markup before you add any additional text to your reply.
  16. Click the "Reply" button to post the output.

Please let me know if you have any questions or problems while following those instructions.

I did not know, thank you for letting me know!

Hello. thank you for your reply.
I tried your instructions.
(Since it was not possible to select all using the shortcut key, I selected all by dragging and dropping the mouse cursor.)
Please check.

PS C:\Users\<username>\AppData\Local\Programs\Arduino IDE> & ".\Arduino IDE"
PS C:\Users\<username>\AppData\Local\Programs\Arduino IDE>
Arduino IDE 2.3.0
Checking for frontend application configuration customizations. Module path: C:\Users\<username>\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\<username>\AppData\Local\Programs\Arduino IDE\resources\app\package.json
Setting 'theia.frontend.config.appVersion' application configuration value to: "2.3.0" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.35.2" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2024-02-07T14:04:32.754Z" (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.0","cliVersion":"0.35.2","buildDate":"2024-02-07T14:04:32.754Z"}
Starting backend process. PID: 3096
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/<username>/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-02-19T06:09:03.856Z root INFO Backend Object.initialize: 4.3 ms [Finished 0.632 s after backend start]
2024-02-19T06:09:03.857Z root INFO Backend Object.configure: 3.4 ms [Finished 0.632 s after backend start]
2024-02-19T06:09:03.857Z root INFO Backend a.onStart: 1.8 ms [Finished 0.632 s after backend start]
2024-02-19T06:09:03.858Z root INFO Backend a.configure: 0.5 ms [Finished 0.657 s after backend start]
2024-02-19T06:09:03.859Z root INFO Backend d.onStart: 0.3 ms [Finished 0.657 s after backend start]
2024-02-19T06:09:03.860Z root INFO Backend d.configure: 0.1 ms [Finished 0.657 s after backend start]
2024-02-19T06:09:03.861Z root INFO Backend d.initialize: 24.7 ms [Finished 0.657 s after backend start]
2024-02-19T06:09:03.861Z root INFO Backend c.onStart: 0.3 ms [Finished 0.657 s after backend start]
2024-02-19T06:09:03.861Z root INFO Backend s.configure: 1.0 ms [Finished 0.658 s after backend start]
2024-02-19T06:09:03.863Z config INFO >>> Initializing CLI configuration...
2024-02-19T06:09:03.863Z root INFO Backend c.initialize: 0.8 ms [Finished 0.659 s after backend start]
2024-02-19T06:09:03.863Z root INFO Backend R.onStart: 1.2 ms [Finished 0.659 s after backend start]
2024-02-19T06:09:03.864Z config INFO Loading CLI configuration from c:\Users\<username>\.arduinoIDE\arduino-cli.yaml...
2024-02-19T06:09:03.865Z daemon INFO Starting daemon from C:\Users\<username>\AppData\Local\Programs\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-02-19T06:09:03.865Z root INFO Backend s.initialize: 0.3 ms [Finished 0.660 s after backend start]
2024-02-19T06:09:03.865Z root INFO Backend w.onStart: 1.3 ms [Finished 0.661 s after backend start]
2024-02-19T06:09:03.865Z root INFO Backend r.configure: 2.2 ms [Finished 0.662 s after backend start]
2024-02-19T06:09:03.869Z discovery-log INFO start
2024-02-19T06:09:03.869Z discovery-log INFO start new deferred
2024-02-19T06:09:03.869Z root INFO Backend d.initialize: 0.5 ms [Finished 0.662 s after backend start]
2024-02-19T06:09:03.869Z root INFO Backend y.onStart: 2.0 ms [Finished 0.664 s after backend start]
2024-02-19T06:09:03.869Z root INFO Backend r.configure: 1.7 ms [Finished 0.664 s after backend start]
2024-02-19T06:09:03.869Z root INFO Backend s.onStart: 0.5 ms [Finished 0.665 s after backend start]
2024-02-19T06:09:03.869Z root INFO Backend h.configure: 0.5 ms [Finished 0.665 s after backend start]
2024-02-19T06:09:03.869Z root INFO Backend a.configure: 3.8 ms [Finished 0.669 s after backend start]
2024-02-19T06:09:03.869Z root INFO Backend l.configure: 0.2 ms [Finished 0.670 s after backend start]
2024-02-19T06:09:03.872Z root INFO Theia app listening on http://127.0.0.1:63124.
2024-02-19T06:09:03.872Z root INFO Finished starting backend application: 7.5 ms [Finished 0.673 s after backend start]
2024-02-19T06:09:03.923Z root WARN The local plugin referenced by local-dir:/c%3A/Users/<username>/.arduinoIDE/plugins does not exist.
2024-02-19T06:09:03.923Z root WARN The local plugin referenced by local-dir:/c%3A/Users/<username>/.arduinoIDE/extensions does not exist.
2024-02-19T06:09:03.923Z root WARN The local plugin referenced by local-dir:C:\Users\<username>\.arduinoIDE\plugins does not exist.
2024-02-19T06:09:03.931Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\<username>\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\<username>\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\<username>\\Documents\\Arduino"},"library":{"enable_unsafe_install":false},"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-02-19T06:09:03.931Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-02-19T06:09:03.931Z config INFO Loaded the CLI configuration.
2024-02-19T06:09:03.934Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/<username>/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/<username>/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-02-19T06:09:03.934Z config INFO Validating the CLI configuration...
2024-02-19T06:09:03.934Z config INFO The CLI config is valid.
2024-02-19T06:09:03.934Z config INFO <<< Initialized the CLI configuration.
2024-02-19T06:09:03.964Z root INFO Resolve plugins list: 100.0 ms [Finished 0.764 s after backend start]
2024-02-19T06:09:05.068Z daemon INFO time="2024-02-19T15:09:05+09:00" level=info msg="Using config file: c:\\Users\\<username>\\.arduinoIDE\\arduino-cli.yaml"
time="2024-02-19T15:09:05+09:00" level=info msg="arduino-cli.exe version 0.35.2"
time="2024-02-19T15:09:05+09:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:63131
{"IP":"127.0.0.1","Port":"63131"}
2024-02-19T06:09:05.068Z daemon INFO Daemon is running.
2024-02-19T06:09:05.215Z daemon INFO time="2024-02-19T15:09:05+09:00" level=info msg="Updating libraries index"
time="2024-02-19T15:09:05+09:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
2024-02-19T06:09:05.863Z root INFO Deploy plugins list: 100.0 ms [Finished 2.663 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-02-19T06:09:06.341Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 261.1 ms [Finished 2.312 s after frontend start]
2024-02-19T06:09:06.341Z root WARN A command editor.action.toggleStickyScroll is already registered.

I'm still having trouble... Could someone please help me?

this worked in Uno gig R1 with win 11, special thanks

You are welcome. I'm glad it is working for you now.

Regards,
Per