IDE hangs on startup, with no error shown in logs

I've read multiple posts with similar issues, but none have helped me fix this. Initially this happened in 2.3.2.

Steps I've taken:

  1. Remove .arduinoIDE
  2. Remove ../Library/Arduino15
  3. Remove App and reinstall
  4. Install 2.3.1

It never gets past the splash screen.

Logs:

Arduino IDE 2.3.1
Checking for frontend application configuration customizations. Module path: /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/electron-main.js, destination 'package.json': /Applications/Arduino IDE.app/Contents/Resources/app/package.json
2024-05-12 22:40:34.799 Arduino IDE[4611:29501] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
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-15T08:50:42.951Z" (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-15T08:50:42.951Z"}
Starting backend process. PID: 5053
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///Users/username/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2024-05-12T20:40:35.114Z root INFO Backend Object.initialize: 2.0 ms [Finished 0.257 s after backend start]
2024-05-12T20:40:35.115Z root INFO Backend Object.configure: 1.5 ms [Finished 0.257 s after backend start]
2024-05-12T20:40:35.115Z root INFO Backend s.onStart: 0.7 ms [Finished 0.257 s after backend start]
2024-05-12T20:40:35.115Z root INFO Backend s.configure: 0.2 ms [Finished 0.273 s after backend start]
2024-05-12T20:40:35.115Z root INFO Backend d.onStart: 0.1 ms [Finished 0.273 s after backend start]
2024-05-12T20:40:35.116Z root INFO Backend d.configure: 0.1 ms [Finished 0.273 s after backend start]
2024-05-12T20:40:35.116Z root INFO Backend d.initialize: 16.0 ms [Finished 0.273 s after backend start]
2024-05-12T20:40:35.116Z root INFO Backend c.onStart: 0.2 ms [Finished 0.273 s after backend start]
2024-05-12T20:40:35.116Z root INFO Backend a.configure: 0.6 ms [Finished 0.274 s after backend start]
2024-05-12T20:40:35.117Z config INFO >>> Initializing CLI configuration...
2024-05-12T20:40:35.117Z root INFO Backend c.initialize: 0.2 ms [Finished 0.274 s after backend start]
2024-05-12T20:40:35.117Z root INFO Backend R.onStart: 0.4 ms [Finished 0.274 s after backend start]
2024-05-12T20:40:35.117Z config INFO Loading CLI configuration from /Users/username/.arduinoIDE/arduino-cli.yaml...
2024-05-12T20:40:35.117Z daemon INFO Starting daemon from /Applications/Arduino IDE.app/Contents/Resources/app/lib/backend/resources/arduino-cli...
2024-05-12T20:40:35.117Z root INFO Backend a.initialize: 0.2 ms [Finished 0.275 s after backend start]
2024-05-12T20:40:35.117Z root INFO Backend w.onStart: 0.5 ms [Finished 0.275 s after backend start]
2024-05-12T20:40:35.117Z root INFO Backend r.configure: 0.7 ms [Finished 0.275 s after backend start]
2024-05-12T20:40:35.117Z discovery-log INFO start
2024-05-12T20:40:35.117Z discovery-log INFO start new deferred
2024-05-12T20:40:35.117Z root INFO Backend d.initialize: 0.2 ms [Finished 0.275 s after backend start]
2024-05-12T20:40:35.117Z root INFO Backend y.onStart: 0.8 ms [Finished 0.276 s after backend start]
2024-05-12T20:40:35.118Z root INFO Backend r.configure: 0.7 ms [Finished 0.276 s after backend start]
2024-05-12T20:40:35.118Z root INFO Backend a.onStart: 0.2 ms [Finished 0.276 s after backend start]
2024-05-12T20:40:35.118Z root INFO Backend h.configure: 0.2 ms [Finished 0.276 s after backend start]
2024-05-12T20:40:35.118Z root INFO Backend s.configure: 0.0 ms [Finished 0.276 s after backend start]
2024-05-12T20:40:35.118Z root INFO Backend l.configure: 0.0 ms [Finished 0.276 s after backend start]
2024-05-12T20:40:35.119Z root INFO Theia app listening on http://127.0.0.1:49425.
2024-05-12T20:40:35.119Z root INFO Finished starting backend application: 1.2 ms [Finished 0.277 s after backend start]
2024-05-12T20:40:35.121Z root WARN The local plugin referenced by local-dir:/Users/username/.arduinoIDE/plugins does not exist.
2024-05-12T20:40:35.121Z root WARN The local plugin referenced by local-dir:/Users/username/.arduinoIDE/extensions does not exist.
2024-05-12T20:40:35.125Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"/Users/username/Library/Arduino15","downloads":"/Users/username/Library/Arduino15/staging","user":"/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-05-12T20:40:35.125Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2024-05-12T20:40:35.125Z config INFO Loaded the CLI configuration.
2024-05-12T20:40:35.127Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///Users/username/Library/Arduino15","sketchDirUri":"file:///Users/username/Documents/Arduino","additionalUrls":[],"network":"none","locale":"en"}
2024-05-12T20:40:35.127Z config INFO Validating the CLI configuration...
2024-05-12T20:40:35.132Z daemon INFO time="2024-05-12T22:40:35+02:00" level=info msg="Using config file: /Users/username/.arduinoIDE/arduino-cli.yaml"
time="2024-05-12T22:40:35+02:00" level=info msg="arduino-cli version 0.35.2"
time="2024-05-12T22:40:35+02:00" level=info msg="Executing `arduino-cli daemon`"
2024-05-12T20:40:35.135Z daemon INFO Daemon is now listening on 127.0.0.1:49426
{"IP":"127.0.0.1","Port":"49426"}
2024-05-12T20:40:35.135Z daemon INFO Daemon is running.
2024-05-12T20:40:35.143Z root INFO Resolve plugins list: 26.0 ms [Finished 0.302 s after backend start]
2024-05-12T20:40:35.150Z daemon INFO time="2024-05-12T22:40:35+02:00" level=info msg="Checking signature" index=/Users/username/Library/Arduino15/package_index.json signatureFile=/Users/username/Library/Arduino15/package_index.json.sig trusted=true
2024-05-12T20:40:35.151Z daemon INFO time="2024-05-12T22:40:35+02:00" level=info msg="Loading hardware from: /Users/username/Library/Arduino15/packages"
time="2024-05-12T22:40:35+02:00" level=info msg="Loading package builtin from: /Users/username/Library/Arduino15/packages/builtin"
time="2024-05-12T22:40:35+02:00" level=info msg="Checking existence of 'tools' path: /Users/username/Library/Arduino15/packages/builtin/tools"
time="2024-05-12T22:40:35+02:00" level=info msg="Loading tools from dir: /Users/username/Library/Arduino15/packages/builtin/tools"
time="2024-05-12T22:40:35+02:00" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
time="2024-05-12T22:40:35+02:00" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
time="2024-05-12T22:40:35+02:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
time="2024-05-12T22:40:35+02:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
time="2024-05-12T22:40:35+02:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.14.1"
time="2024-05-12T22:40:35+02:00" level=info msg="Loading libraries index file" index=/Users/username/Library/Arduino15/library_index.json
2024-05-12T20:40:35.274Z daemon INFO time="2024-05-12T22:40:35+02:00" level=info msg="Adding libraries dir" dir=/Users/username/Library/Arduino15/libraries location=ide
time="2024-05-12T22:40:35+02:00" level=info msg="Adding libraries dir" dir=/Users/username/Documents/Arduino/libraries location=user
2024-05-12T20:40:35.571Z root INFO Deploy plugins list: 26.0 ms [Finished 0.730 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
2024-05-12T20:40:36.194Z root WARN A command editor.action.toggleStickyScroll is already registered.
2024-05-12T20:40:36.210Z root WARN Frontend keybindings.onStart took longer than the expected maximum 100 milliseconds: 194.1 ms [Finished 0.901 s after frontend start]

I had it running yesterday without any issues.

Anyone have a clue how to get this working again?

Hi @wickedsight_again. 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:
    /Users/<username>/.arduinoIDE/
    
    (where <username> is your macOS username)
    :exclamation: The .arduinoIDE folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
    :warning: Please be careful when deleting things from your computer. When in doubt, back up!
  3. Delete the folder at the following path:
    /Users/<username>/Library/Application Support/arduino-ide/
    
    (where <username> is your macOS username)
    :exclamation: The Library folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
    :warning: Please be careful when deleting things from your computer. When in doubt, back up!

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.

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