IDE hangs on startup, with no error shown in logs

Hi,

I'm also encountering an issue with the arduino IDE. I have tried many solutions on the forum, such as the complete clean reinstall using third party tools to make sure the registry is clean for example, but nothing seems to work... I would greatly appreciate some help!

I'm running Arduino IDE 2.2.1 on windows 10, and I get the following on powershell:

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: 3200
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/user/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-12-05T06:14:32.644Z root INFO Backend Object.initialize: 4.3 ms [Finished 0.565 s after backend start]
2023-12-05T06:14:32.645Z root INFO Backend Object.configure: 3.6 ms [Finished 0.565 s after backend start]
2023-12-05T06:14:32.645Z root INFO Backend a.onStart: 1.4 ms [Finished 0.565 s after backend start]
2023-12-05T06:14:32.645Z root INFO Backend a.configure: 0.3 ms [Finished 0.591 s after backend start]
2023-12-05T06:14:32.646Z root INFO Backend u.onStart: 0.3 ms [Finished 0.591 s after backend start]
2023-12-05T06:14:32.647Z root INFO Backend d.configure: 0.1 ms [Finished 0.591 s after backend start]
2023-12-05T06:14:32.648Z root INFO Backend d.initialize: 26.3 ms [Finished 0.591 s after backend start]
2023-12-05T06:14:32.648Z root INFO Backend c.onStart: 0.2 ms [Finished 0.591 s after backend start]
2023-12-05T06:14:32.649Z root INFO Backend s.configure: 1.1 ms [Finished 0.593 s after backend start]
2023-12-05T06:14:32.650Z config INFO >>> Initializing CLI configuration...
2023-12-05T06:14:32.650Z root INFO Backend c.initialize: 0.4 ms [Finished 0.593 s after backend start]
2023-12-05T06:14:32.651Z root INFO Backend P.onStart: 0.7 ms [Finished 0.593 s after backend start]
2023-12-05T06:14:32.651Z config INFO Loading CLI configuration from c:\Users\user\.arduinoIDE\arduino-cli.yaml...
2023-12-05T06:14:32.652Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\lib\backend\resources\arduino-cli.exe...
2023-12-05T06:14:32.652Z root INFO Backend s.initialize: 0.3 ms [Finished 0.594 s after backend start]
2023-12-05T06:14:32.652Z root INFO Backend w.onStart: 1.1 ms [Finished 0.595 s after backend start]
2023-12-05T06:14:32.652Z root INFO Backend r.configure: 2.0 ms [Finished 0.595 s after backend start]
2023-12-05T06:14:32.653Z discovery-log INFO start
2023-12-05T06:14:32.653Z discovery-log INFO start new deferred
2023-12-05T06:14:32.653Z root INFO Backend d.initialize: 0.4 ms [Finished 0.596 s after backend start]
2023-12-05T06:14:32.653Z root INFO Backend y.onStart: 2.0 ms [Finished 0.598 s after backend start]
2023-12-05T06:14:32.653Z root INFO Backend r.configure: 1.9 ms [Finished 0.598 s after backend start]
2023-12-05T06:14:32.655Z root INFO Backend s.onStart: 0.6 ms [Finished 0.599 s after backend start]
2023-12-05T06:14:32.655Z root INFO Backend h.configure: 0.6 ms [Finished 0.600 s after backend start]
2023-12-05T06:14:32.656Z root INFO Backend a.configure: 0.4 ms [Finished 0.600 s after backend start]
2023-12-05T06:14:32.656Z root INFO Backend s.configure: 0.1 ms [Finished 0.602 s after backend start]
2023-12-05T06:14:32.656Z root INFO Backend l.configure: 0.1 ms [Finished 0.603 s after backend start]
2023-12-05T06:14:32.660Z root INFO Theia app listening on http://localhost:62210.
2023-12-05T06:14:32.661Z root INFO Finished starting backend application: 7.9 ms [Finished 0.608 s after backend start]
2023-12-05T06:14:32.662Z root WARN The local plugin referenced by local-dir:/c%3A/Users/user/.arduinoIDE/plugins does not exist.
2023-12-05T06:14:32.662Z root WARN The local plugin referenced by local-dir:/c%3A/Users/user/.arduinoIDE/extensions does not exist.
2023-12-05T06:14:32.663Z root WARN The local plugin referenced by local-dir:C:\Users\user\.arduinoIDE\plugins does not exist.
2023-12-05T06:14:32.858Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":["https://adafruit.github.io/arduino-board-index/package_adafruit_index.json","https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json"]},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"C:\\Users\\user\\AppData\\Local\\Arduino15\\libraries"},"data":"c:\\Users\\user\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\user\\AppData\\Local\\Arduino15\\staging","user":"c:\\Users\\user\\Documents\\Arduino"},"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}}
2023-12-05T06:14:32.858Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-12-05T06:14:32.859Z config INFO Loaded the CLI configuration.
2023-12-05T06:14:32.869Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/user/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/user/Documents/Arduino","additionalUrls":["https://adafruit.github.io/arduino-board-index/package_adafruit_index.json","https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json"],"network":"none","locale":"en"}
2023-12-05T06:14:32.869Z config INFO Validating the CLI configuration...
2023-12-05T06:14:32.870Z config INFO The CLI config is valid.
2023-12-05T06:14:32.870Z config INFO <<< Initialized the CLI configuration.
2023-12-05T06:14:32.886Z root INFO Resolve plugins list: 234.8 ms [Finished 0.833 s after backend start]
2023-12-05T06:14:32.970Z daemon INFO time="2023-12-05T07:14:32+01:00" level=info msg="Using config file: c:\\Users\\user\\.arduinoIDE\\arduino-cli.yaml"
time="2023-12-05T07:14:32+01:00" level=info msg="arduino-cli.exe version 0.34.0"
time="2023-12-05T07:14:32+01:00" level=info msg="Executing `arduino-cli daemon`"
Daemon is now listening on 127.0.0.1:62211
{"IP":"127.0.0.1","Port":"62211"}
2023-12-05T06:14:32.972Z daemon INFO Daemon is running.
2023-12-05T06:14:33.632Z daemon INFO time="2023-12-05T07:14:33+01:00" level=info msg="Checking signature" index="c:\\Users\\user\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="c:\\Users\\user\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
time="2023-12-05T07:14:33+01:00" level=info msg="Missing signature file" index="c:\\Users\\user\\AppData\\Local\\Arduino15\\package_adafruit_index.json"
time="2023-12-05T07:14:33+01:00" level=info msg="Missing signature file" index="c:\\Users\\user\\AppData\\Local\\Arduino15\\package_m5stack_index.json"
time="2023-12-05T07:14:33+01:00" level=info msg="Loading hardware from: c:\\Users\\user\\AppData\\Local\\Arduino15\\packages"
time="2023-12-05T07:14:33+01:00" level=info msg="Loading package builtin from: C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\builtin"
time="2023-12-05T07:14:33+01:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2023-12-05T07:14:33+01:00" level=info msg="Loading tools from dir: C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2023-12-05T07:14:33+01:00" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
time="2023-12-05T07:14:33+01:00" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
time="2023-12-05T07:14:33+01:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
time="2023-12-05T07:14:33+01:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
time="2023-12-05T07:14:33+01:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.13.0"
time="2023-12-05T07:14:33+01:00" level=info msg="Loading libraries index file" index="c:\\Users\\user\\AppData\\Local\\Arduino15\\library_index.json"
time="2023-12-05T07:14:33+01:00" level=info msg="Adding libraries dir" dir="C:\\Users\\user\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2023-12-05T07:14:33+01:00" level=info msg="Adding libraries dir" dir="c:\\Users\\user\\Documents\\Arduino\\libraries" location=user
2023-12-05T06:14:33.639Z discovery-log INFO start request start watch
2023-12-05T06:14:33.639Z discovery-log INFO start requested start watch
2023-12-05T06:14:33.640Z discovery-log INFO start resolved watching
2023-12-05T06:14:33.646Z daemon INFO time="2023-12-05T07:14:33+01:00" level=info msg="starting discovery builtin:mdns-discovery process"
time="2023-12-05T07:14:33+01:00" level=info msg="starting discovery builtin:serial-discovery process"
2023-12-05T06:14:34.136Z daemon INFO time="2023-12-05T07:14:33+01:00" level=info msg="started discovery builtin:serial-discovery process"
time="2023-12-05T07:14:33+01:00" level=info msg="sending command HELLO 1 \"arduino-cli 0.34.0\" to discovery builtin:serial-discovery"
time="2023-12-05T07:14:33+01:00" level=info msg="from discovery builtin:serial-discovery received message type: hello, message: OK, protocol version: 1"
time="2023-12-05T07:14:33+01:00" level=info msg="sending command START_SYNC to discovery builtin:serial-discovery"
time="2023-12-05T07:14:33+01:00" level=info msg="from discovery builtin:serial-discovery received message type: start_sync, message: OK"
time="2023-12-05T07:14:33+01:00" level=info msg="from discovery builtin:serial-discovery received message type: add, port: COM1"
time="2023-12-05T07:14:34+01:00" level=info msg="started discovery builtin:mdns-discovery process"
time="2023-12-05T07:14:34+01:00" level=info msg="sending command HELLO 1 \"arduino-cli 0.34.0\" to discovery builtin:mdns-discovery"
time="2023-12-05T07:14:34+01:00" level=info msg="from discovery builtin:mdns-discovery received message type: hello, message: OK, protocol version: 1"
time="2023-12-05T07:14:34+01:00" level=info msg="sending command START_SYNC to discovery builtin:mdns-discovery"
time="2023-12-05T07:14:34+01:00" level=info msg="from discovery builtin:mdns-discovery received message type: start_sync, message: OK"
2023-12-05T06:14:34.138Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"COM1","label":"COM1","protocol":"serial","protocolLabel":"Serial Port","propertiesMap":[],"hardwareId":""}},"error":""}
2023-12-05T06:14:40.349Z root INFO Deploy plugins list: 234.8 ms [Finished 8.296 s after backend start]
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.
[5728:1205/071632.261:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is disabled, ANGLE is

Thank you very much for your help!
Best regards

Richard

Hi @Wark

Please provide a detailed description of the problem you are encountering. Make sure to include the full and exact text of any error or warning messages you might have encountered.

Everything looks normal.

Excuse me if my last message wasn't clear. I have the same issue, as in it's stuck on the loading screen, for ever.

I'm even more confused now that you told me that everything looks normal on the powershell...

What could the problem come from?
Thank you for your help. In the meantime i reverted to the old arduino IDE to code...

Thanks for the clarification. 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 Arduino IDE 2.x to functionality by deleting the folders where the data is stored. This will force Arduino IDE 2.x 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.

Hi,
I've deleted the aforementioned folders, but the app still hangs on startup...
(Sorry for the delay, I didn't received an email notification because of the topic split).

I have the same log on powershell as earlier before & after deleting the folders

2 posts were split to a new topic: IDE hangs on startup

Hi,
Do you have any hints of what i could change? despite my numerous tries, it's still not working...
thank you very much!

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