IDE hangs on startup, with no error shown in logs

Hey there,
i have the problem that my Arduino IDE is stuck in the loading screen und the Arduino logo is pulsating. I have my power shell below.

PS C:\Program Files\Arduino IDE> & ".\Arduino IDE"
PS C:\Program Files\Arduino IDE>
Arduino IDE 2.2.1
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.2.1" (type of string)
Setting 'theia.frontend.config.cliVersion' application configuration value to: "0.34.0" (type of string)
Setting 'theia.frontend.config.buildDate' application configuration value to: "2023-08-31T14:35:44.802Z" (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.2.1","cliVersion":"0.34.0","buildDate":"2023-08-31T14:35:44.802Z"}
Starting backend process. PID: 22072
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/PueLuk01/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-12-13T11:32:45.025Z root INFO Backend Object.initialize: 3.5 ms [Finished 0.380 s after backend start]
2023-12-13T11:32:45.026Z root INFO Backend Object.configure: 2.9 ms [Finished 0.380 s after backend start]
2023-12-13T11:32:45.026Z root INFO Backend a.onStart: 1.0 ms [Finished 0.380 s after backend start]
2023-12-13T11:32:45.026Z root INFO Backend a.configure: 0.3 ms [Finished 0.399 s after backend start]
2023-12-13T11:32:45.027Z root INFO Backend u.onStart: 0.2 ms [Finished 0.399 s after backend start]
2023-12-13T11:32:45.030Z root INFO Backend d.configure: 0.1 ms [Finished 0.399 s after backend start]
2023-12-13T11:32:45.031Z root INFO Backend d.initialize: 19.1 ms [Finished 0.399 s after backend start]
2023-12-13T11:32:45.031Z root INFO Backend c.onStart: 0.2 ms [Finished 0.399 s after backend start]
2023-12-13T11:32:45.032Z root INFO Backend s.configure: 1.0 ms [Finished 0.400 s after backend start]
2023-12-13T11:32:45.033Z config INFO >>> Initializing CLI configuration...
2023-12-13T11:32:45.033Z root INFO Backend c.initialize: 0.3 ms [Finished 0.401 s after backend start]
2023-12-13T11:32:45.033Z root INFO Backend P.onStart: 0.8 ms [Finished 0.401 s after backend start]
2023-12-13T11:32:45.034Z config INFO Loading CLI configuration from c:\Users\PueLuk01\.arduinoIDE\arduino-cli.yaml...
2023-12-13T11:32:45.034Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2023-12-13T11:32:45.034Z root INFO Backend s.initialize: 0.3 ms [Finished 0.405 s after backend start]
2023-12-13T11:32:45.034Z root INFO Backend w.onStart: 1.1 ms [Finished 0.405 s after backend start]
2023-12-13T11:32:45.034Z root INFO Backend r.configure: 4.4 ms [Finished 0.406 s after backend start]
2023-12-13T11:32:45.035Z discovery-log INFO start
2023-12-13T11:32:45.035Z discovery-log INFO start new deferred
2023-12-13T11:32:45.035Z root INFO Backend d.initialize: 0.3 ms [Finished 0.406 s after backend start]
2023-12-13T11:32:45.035Z root INFO Backend y.onStart: 1.5 ms [Finished 0.407 s after backend start]
2023-12-13T11:32:45.035Z root INFO Backend r.configure: 1.3 ms [Finished 0.408 s after backend start]
2023-12-13T11:32:45.035Z root INFO Backend s.onStart: 0.4 ms [Finished 0.409 s after backend start]
2023-12-13T11:32:45.035Z root INFO Backend h.configure: 0.5 ms [Finished 0.409 s after backend start]
2023-12-13T11:32:45.035Z root INFO Backend a.configure: 0.2 ms [Finished 0.409 s after backend start]
2023-12-13T11:32:45.035Z root INFO Backend s.configure: 0.0 ms [Finished 0.409 s after backend start]
2023-12-13T11:32:45.035Z root INFO Backend l.configure: 0.0 ms [Finished 0.409 s after backend start]
2023-12-13T11:32:45.037Z root INFO Theia app listening on http://localhost:49229.
2023-12-13T11:32:45.038Z root INFO Finished starting backend application: 2.7 ms [Finished 0.412 s after backend start]
2023-12-13T11:32:45.053Z root WARN The local plugin referenced by local-dir:/c%3A/Users/PueLuk01/.arduinoIDE/plugins does not exist.
2023-12-13T11:32:45.053Z root WARN The local plugin referenced by local-dir:/c%3A/Users/PueLuk01/.arduinoIDE/extensions does not exist.
2023-12-13T11:32:45.054Z root WARN The local plugin referenced by local-dir:C:\Users\PueLuk01\.arduinoIDE\plugins does not exist.
2023-12-13T11:32:45.102Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\PueLuk01\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\PueLuk01\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\PueLuk01\\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}}
2023-12-13T11:32:45.103Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-12-13T11:32:45.104Z config INFO Loaded the CLI configuration.
2023-12-13T11:32:45.107Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/PueLuk01/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/PueLuk01/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2023-12-13T11:32:45.108Z config INFO Validating the CLI configuration...
2023-12-13T11:32:45.109Z config INFO The CLI config is valid.
2023-12-13T11:32:45.109Z config INFO <<< Initialized the CLI configuration.
2023-12-13T11:32:45.149Z root INFO Resolve plugins list: 115.5 ms [Finished 0.523 s after backend start]
2023-12-13T11:32:45.270Z daemon INFO time="2023-12-13T12:32:45+01:00" level=info msg="Using config file: c:\\Users\\PueLuk01\\.arduinoIDE\\arduino-cli.yaml"
time="2023-12-13T12:32:45+01:00" level=info msg="arduino-cli.exe version 0.34.0"
time="2023-12-13T12:32:45+01:00" level=info msg="Executing `arduino-cli daemon`"
Daemon ├╝berwacht jetzt 127.0.0.1: 49231
{"IP":"127.0.0.1","Port":"49231"}
2023-12-13T11:32:45.271Z daemon INFO Daemon is running.
2023-12-13T11:32:45.399Z daemon INFO time="2023-12-13T12:32:45+01:00" level=info msg="Updating libraries index"
2023-12-13T11:32:45.480Z daemon INFO time="2023-12-13T12:32:45+01:00" level=info msg="Starting download" url="https://downloads.arduino.cc/libraries/library_index.tar.bz2"
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2023-12-13T11:32:46.471Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 333.4 ms [Finished 1.274 s after frontend start]
2023-12-13T11:32:46.472Z root WARN A command editor.action.toggleStickyScroll is already registered.
2023-12-13T11:32:46.684Z root WARN Frontend D.onStart took longer than the expected maximum 100 milliseconds: 163.2 ms [Finished 1.569 s after frontend start]
2023-12-13T11:32:46.704Z root INFO Deploy plugins list: 115.5 ms [Finished 2.079 s after backend start]

Hi @lp264. 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.

I'm having the same problem. I deleted the files that were advised and it is still hanging up with the pulsating logo. The only way that I can get the IDE to open is to close it after about five minuets of waiting, then reopen and it loads up in about thirty seconds. Also it opens the last program I was working on. A suggestion I would like to give is to be able to open the IDE without opening a file or starting a new sketch. Personally I would like to choose if I open an existing sketch or start a new one. Every time I want a new sketch I have close and reopen the new IDE to get it to load past the hangup.

Hi @tkddw. This is an unusual behavior you describe. There are various problems that can cause Arduino IDE to hang on startup, but the hang generally occurs on every startup under those conditions.

I'll assume you are using Windows since you said you were able to follow the Windows-specific instructions I gave above. I'm going to ask you to start Arduino IDE from the command line under the conditions where it hangs and then share the logs it printed to the terminal when the problem occurred. Hopefully that will give us some clue about the cause.


: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 Ctrl+Shift+A.
    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. 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 tags icon on toolbar
  14. Press Ctrl+V.
    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.

Hello, Having the same problem similar to the latest one. Done all the steps mentioned on this thread.
The following is the debug output:

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.1" (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-15T09:01:25.701Z" (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.1","cliVersion":"0.35.2","buildDate":"2024-02-15T09:01:25.701Z"}
Starting backend process. PID: 16700
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/Shui/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-02-18T12:50:59.990Z root INFO Backend Object.initialize: 5.7 ms [Finished 0.690 s after backend start]
2024-02-18T12:50:59.992Z root INFO Backend Object.configure: 4.7 ms [Finished 0.691 s after backend start]
2024-02-18T12:50:59.992Z root INFO Backend s.onStart: 2.5 ms [Finished 0.691 s after backend start]
2024-02-18T12:50:59.993Z root INFO Backend s.configure: 0.4 ms [Finished 0.720 s after backend start]
2024-02-18T12:50:59.994Z root INFO Backend d.onStart: 0.3 ms [Finished 0.720 s after backend start]
2024-02-18T12:50:59.995Z root INFO Backend d.configure: 0.2 ms [Finished 0.720 s after backend start]
2024-02-18T12:50:59.996Z root INFO Backend d.initialize: 29.2 ms [Finished 0.720 s after backend start]
2024-02-18T12:50:59.996Z root INFO Backend c.onStart: 0.3 ms [Finished 0.720 s after backend start]
2024-02-18T12:50:59.997Z root INFO Backend a.configure: 1.7 ms [Finished 0.722 s after backend start]
2024-02-18T12:50:59.999Z config INFO >>> Initializing CLI configuration...
2024-02-18T12:50:59.999Z root INFO Backend c.initialize: 0.8 ms [Finished 0.723 s after backend start]
2024-02-18T12:50:59.999Z root INFO Backend R.onStart: 1.2 ms [Finished 0.723 s after backend start]
2024-02-18T12:51:00.000Z config INFO Loading CLI configuration from c:\Users\Shui\.arduinoIDE\arduino-cli.yaml...
2024-02-18T12:51:00.001Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-02-18T12:51:00.001Z root INFO Backend a.initialize: 0.5 ms [Finished 0.725 s after backend start]
2024-02-18T12:51:00.001Z root INFO Backend w.onStart: 1.7 ms [Finished 0.726 s after backend start]
2024-02-18T12:51:00.001Z root INFO Backend r.configure: 2.9 ms [Finished 0.726 s after backend start]
2024-02-18T12:51:00.001Z discovery-log INFO start
2024-02-18T12:51:00.001Z discovery-log INFO start new deferred
2024-02-18T12:51:00.001Z root INFO Backend d.initialize: 0.7 ms [Finished 0.727 s after backend start]
2024-02-18T12:51:00.001Z root INFO Backend y.onStart: 2.7 ms [Finished 0.729 s after backend start]
2024-02-18T12:51:00.001Z root INFO Backend r.configure: 2.2 ms [Finished 0.729 s after backend start]
2024-02-18T12:51:00.002Z root INFO Backend a.onStart: 0.7 ms [Finished 0.731 s after backend start]
2024-02-18T12:51:00.002Z root INFO Backend h.configure: 0.6 ms [Finished 0.731 s after backend start]
2024-02-18T12:51:00.002Z root INFO Backend s.configure: 0.1 ms [Finished 0.731 s after backend start]
2024-02-18T12:51:00.002Z root INFO Backend l.configure: 0.1 ms [Finished 0.732 s after backend start]
2024-02-18T12:51:00.005Z root INFO Theia app listening on http://127.0.0.1:50414.
2024-02-18T12:51:00.005Z root INFO Finished starting backend application: 3.8 ms [Finished 0.735 s after backend start]
2024-02-18T12:51:00.015Z root WARN The local plugin referenced by local-dir:/c%3A/Users/Shui/.arduinoIDE/plugins does not exist.
2024-02-18T12:51:00.015Z root WARN The local plugin referenced by local-dir:/c%3A/Users/Shui/.arduinoIDE/extensions does not exist.
2024-02-18T12:51:00.015Z root WARN The local plugin referenced by local-dir:C:\Users\Shui\.arduinoIDE\plugins does not exist.
2024-02-18T12:51:00.024Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\Shui\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\Shui\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\Shui\\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-18T12:51:00.024Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-02-18T12:51:00.024Z config INFO Loaded the CLI configuration.
2024-02-18T12:51:00.059Z root INFO Resolve plugins list: 59.2 ms [Finished 0.789 s after backend start]
2024-02-18T12:51:00.282Z daemon INFO time="2024-02-18T20:51:00+08:00" level=info msg="Using config file: c:\\Users\\Shui\\.arduinoIDE\\arduino-cli.yaml"
time="2024-02-18T20:51:00+08:00" level=info msg="arduino-cli.exe version 0.35.2"
time="2024-02-18T20:51:00+08:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:50415
{"IP":"127.0.0.1","Port":"50415"}
2024-02-18T12:51:00.282Z daemon INFO Daemon is running.
2024-02-18T12:51:00.383Z daemon INFO time="2024-02-18T20:51:00+08:00" level=info msg="Checking signature" index="C:\\Users\\Shui\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\Shui\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
time="2024-02-18T20:51:00+08:00" level=info msg="Loading hardware from: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages"
time="2024-02-18T20:51:00+08:00" level=info msg="Loading package arduino from: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware"
time="2024-02-18T20:51:00+08:00" level=info msg="Missing signature file" index="C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\installed.json"
time="2024-02-18T20:51:00+08:00" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
time="2024-02-18T20:51:00+08:00" level=info msg="Loaded platform" platform="arduino:avr@1.8.6"
time="2024-02-18T20:51:00+08:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
time="2024-02-18T20:51:00+08:00" level=info msg="Loading tools from dir: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
time="2024-02-18T20:51:00+08:00" level=info msg="Loaded tool" tool="arduino:arduinoOTA@1.3.0"
time="2024-02-18T20:51:00+08:00" level=info msg="Loaded tool" tool="arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
time="2024-02-18T20:51:00+08:00" level=info msg="Loaded tool" tool="arduino:avrdude@6.3.0-arduino17"
time="2024-02-18T20:51:00+08:00" level=info msg="Loading package builtin from: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\builtin"
time="2024-02-18T20:51:00+08:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-02-18T20:51:00+08:00" level=info msg="Loading tools from dir: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-02-18T20:51:00+08:00" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
time="2024-02-18T20:51:00+08:00" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
time="2024-02-18T20:51:00+08:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.6"
time="2024-02-18T20:51:00+08:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
time="2024-02-18T20:51:00+08:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.3.2"
time="2024-02-18T20:51:00+08:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
time="2024-02-18T20:51:00+08:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.10.0"
time="2024-02-18T20:51:00+08:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.13.0"
time="2024-02-18T20:51:00+08:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries" location=platform
time="2024-02-18T20:51:00+08:00" level=info msg="Loading libraries index file" index="C:\\Users\\Shui\\AppData\\Local\\Arduino15\\library_index.json"
2024-02-18T12:51:00.619Z daemon INFO time="2024-02-18T20:51:00+08:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Shui\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-02-18T20:51:00+08:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Shui\\Documents\\Arduino\\libraries" location=user
2024-02-18T12:51:01.168Z root INFO Deploy plugins list: 59.2 ms [Finished 1.898 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-02-18T12:51:02.576Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 200.1 ms [Finished 2.425 s after frontend start]
2024-02-18T12:51:02.576Z root WARN A command editor.action.toggleStickyScroll is already registered.

The legacy version of arduino (Arduino IDE 1.8.19) is working, but I would like to use the new version if possible. Thanks :>

Hi @clazzic. 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.

Hello! Sorry for the delayed response. Just recovered from a nasty sickness.
I am currently still having the same problem. Even after deleting those folders, arduino IDE is still stuck on the pulsating logo loading screen.

Below is the code for the debugging, if you ever need it again.

Arduino IDE 2.3.1
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.1" (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-15T09:01:25.701Z" (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.1","cliVersion":"0.35.2","buildDate":"2024-02-15T09:01:25.701Z"}
Starting backend process. PID: 15140
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/Shui/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-02-25T10:25:18.113Z root INFO Backend Object.initialize: 5.5 ms [Finished 0.844 s after backend start]
2024-02-25T10:25:18.114Z root INFO Backend Object.configure: 4.6 ms [Finished 0.844 s after backend start]
2024-02-25T10:25:18.114Z root INFO Backend s.onStart: 2.5 ms [Finished 0.844 s after backend start]
2024-02-25T10:25:18.115Z root INFO Backend s.configure: 0.4 ms [Finished 0.879 s after backend start]
2024-02-25T10:25:18.116Z root INFO Backend d.onStart: 0.4 ms [Finished 0.879 s after backend start]
2024-02-25T10:25:18.118Z root INFO Backend d.configure: 0.2 ms [Finished 0.880 s after backend start]
2024-02-25T10:25:18.119Z root INFO Backend d.initialize: 35.5 ms [Finished 0.880 s after backend start]
2024-02-25T10:25:18.120Z root INFO Backend c.onStart: 0.4 ms [Finished 0.880 s after backend start]
2024-02-25T10:25:18.121Z root INFO Backend a.configure: 2.4 ms [Finished 0.883 s after backend start]
2024-02-25T10:25:18.123Z config INFO >>> Initializing CLI configuration...
2024-02-25T10:25:18.123Z root INFO Backend c.initialize: 1.0 ms [Finished 0.883 s after backend start]
2024-02-25T10:25:18.123Z root INFO Backend R.onStart: 1.3 ms [Finished 0.884 s after backend start]
2024-02-25T10:25:18.124Z config INFO Loading CLI configuration from c:\Users\Shui\.arduinoIDE\arduino-cli.yaml...
2024-02-25T10:25:18.125Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2024-02-25T10:25:18.125Z root INFO Backend a.initialize: 0.6 ms [Finished 0.886 s after backend start]
2024-02-25T10:25:18.125Z root INFO Backend w.onStart: 2.1 ms [Finished 0.887 s after backend start]
2024-02-25T10:25:18.125Z root INFO Backend r.configure: 3.3 ms [Finished 0.887 s after backend start]
2024-02-25T10:25:18.125Z discovery-log INFO start
2024-02-25T10:25:18.125Z discovery-log INFO start new deferred
2024-02-25T10:25:18.125Z root INFO Backend d.initialize: 0.9 ms [Finished 0.888 s after backend start]
2024-02-25T10:25:18.125Z root INFO Backend y.onStart: 3.0 ms [Finished 0.891 s after backend start]
2024-02-25T10:25:18.125Z root INFO Backend r.configure: 2.3 ms [Finished 0.891 s after backend start]
2024-02-25T10:25:18.126Z root INFO Backend a.onStart: 0.7 ms [Finished 0.893 s after backend start]
2024-02-25T10:25:18.126Z root INFO Backend h.configure: 0.7 ms [Finished 0.893 s after backend start]
2024-02-25T10:25:18.126Z root INFO Backend s.configure: 0.2 ms [Finished 0.893 s after backend start]
2024-02-25T10:25:18.126Z root INFO Backend l.configure: 0.1 ms [Finished 0.893 s after backend start]
2024-02-25T10:25:18.130Z root INFO Theia app listening on http://127.0.0.1:51365.
2024-02-25T10:25:18.130Z root INFO Finished starting backend application: 4.9 ms [Finished 0.898 s after backend start]
2024-02-25T10:25:18.142Z root WARN The local plugin referenced by local-dir:/c%3A/Users/Shui/.arduinoIDE/extensions does not exist.
2024-02-25T10:25:18.142Z root WARN The local plugin referenced by local-dir:/c%3A/Users/Shui/.arduinoIDE/plugins does not exist.
2024-02-25T10:25:18.142Z root WARN The local plugin referenced by local-dir:C:\Users\Shui\.arduinoIDE\plugins does not exist.
2024-02-25T10:25:18.158Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\Shui\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\Shui\\AppData\\Local\\Arduino15\\staging","user":"C:\\Users\\Shui\\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-25T10:25:18.158Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-02-25T10:25:18.158Z config INFO Loaded the CLI configuration.
2024-02-25T10:25:18.193Z root INFO Resolve plugins list: 68.5 ms [Finished 0.959 s after backend start]
2024-02-25T10:25:18.451Z daemon INFO time="2024-02-25T18:25:18+08:00" level=info msg="Using config file: c:\\Users\\Shui\\.arduinoIDE\\arduino-cli.yaml"
time="2024-02-25T18:25:18+08:00" level=info msg="arduino-cli.exe version 0.35.2"
time="2024-02-25T18:25:18+08:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:51366
{"IP":"127.0.0.1","Port":"51366"}
2024-02-25T10:25:18.451Z daemon INFO Daemon is running.
2024-02-25T10:25:18.554Z daemon INFO time="2024-02-25T18:25:18+08:00" level=info msg="Checking signature" index="C:\\Users\\Shui\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="C:\\Users\\Shui\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
time="2024-02-25T18:25:18+08:00" level=info msg="Loading hardware from: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages"
time="2024-02-25T18:25:18+08:00" level=info msg="Loading package arduino from: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware"
time="2024-02-25T18:25:18+08:00" level=info msg="Missing signature file" index="C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\installed.json"
time="2024-02-25T18:25:18+08:00" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
time="2024-02-25T18:25:18+08:00" level=info msg="Loaded platform" platform="arduino:avr@1.8.6"
time="2024-02-25T18:25:18+08:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
time="2024-02-25T18:25:18+08:00" level=info msg="Loading tools from dir: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
time="2024-02-25T18:25:18+08:00" level=info msg="Loaded tool" tool="arduino:arduinoOTA@1.3.0"
time="2024-02-25T18:25:18+08:00" level=info msg="Loaded tool" tool="arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
time="2024-02-25T18:25:18+08:00" level=info msg="Loaded tool" tool="arduino:avrdude@6.3.0-arduino17"
time="2024-02-25T18:25:18+08:00" level=info msg="Loading package builtin from: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\builtin"
time="2024-02-25T18:25:18+08:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-02-25T18:25:18+08:00" level=info msg="Loading tools from dir: C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2024-02-25T18:25:18+08:00" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
time="2024-02-25T18:25:18+08:00" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
time="2024-02-25T18:25:18+08:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.6"
time="2024-02-25T18:25:18+08:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
time="2024-02-25T18:25:18+08:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.3.2"
time="2024-02-25T18:25:18+08:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
time="2024-02-25T18:25:18+08:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.10.0"
time="2024-02-25T18:25:18+08:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.13.0"
time="2024-02-25T18:25:18+08:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Shui\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries" location=platform
time="2024-02-25T18:25:18+08:00" level=info msg="Loading libraries index file" index="C:\\Users\\Shui\\AppData\\Local\\Arduino15\\library_index.json"
2024-02-25T10:25:18.939Z daemon INFO time="2024-02-25T18:25:18+08:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Shui\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2024-02-25T18:25:18+08:00" level=info msg="Adding libraries dir" dir="C:\\Users\\Shui\\Documents\\Arduino\\libraries" location=user
2024-02-25T10:25:19.614Z root INFO Deploy plugins list: 68.5 ms [Finished 2.382 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-02-25T10:25:20.996Z root WARN Frontend a.configure took longer than the expected maximum 100 milliseconds: 230.4 ms [Finished 2.704 s after frontend start]
2024-02-25T10:25:20.996Z root WARN A command editor.action.toggleStickyScroll is already registered.

All is good now. Arduino IDE auto updated and it was fixed. I dont know how but thanks for the advice <3

I'm glad it is working now. Thanks for taking the time to post an update!

Regards,
Per

FYI. After a few OS updates without using the IDE, I encountered the same problem of the IDE stuck on a pulsating logo and failing to open completely. Deleting the .arduinoIDE folder and its contents fixed the problem.
(Macbook Air M2. Sonoma 14.2.1)

1 Like

A post was split to a new topic: IDE hangs on startup: "Received RST_STREAM with code 2 triggered by internal client error: Protocol error"

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