IDE hangs on startup, with no error shown in logs

Since I upgraded to the newest version (2.2.1) of the IDE it freezes in a screen with the pulsing Arduino-logo. I tried everything in the article about this problem, de-installed, cleaned the registry and re-installed the software again without result. I run a Windows 10 system and version 2.2.0 worked allright.

Help!

I am aware that I am not the only one with this problem. I don't want to interfere with other topics so I made my own.

1 Like

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

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. Right click on the title bar of the PowerShell window.
    This will open a context menu.
  11. Select Edit > Select All from the context menu.
    This will select all the text in the PowerShell window.
  12. Press Ctrl+C.
    This will copy the contents of the PowerShell window to the clipboard.
  13. Open a forum reply here by clicking the Reply button.
  14. 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
  15. Press Ctrl+V.
    This will paste the output into the code block.
  16. Move the cursor outside of the code block markup before you add any additional text to your reply.
  17. Click the Reply button to post the output.

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

PS C:\Users\andre\AppData\Local\Programs\arduino-ide> &".\Arduino IDE"
PS C:\Users\andre\AppData\Local\Programs\arduino-ide>
Arduino IDE 2.2.1
Checking for frontend application configuration customizations. Module path: C:\Users\andre\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\electron-main.js, destination 'package.json': C:\Users\andre\AppData\Local\Programs\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: 7000
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/andre/.arduinoIDE'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-09-03T14:00:25.343Z root INFO Backend Object.initialize: 14.2 ms [Finished 0.864 s after backend start]
2023-09-03T14:00:25.343Z root INFO Backend Object.configure: 13.2 ms [Finished 0.864 s after backend start]
2023-09-03T14:00:25.344Z root INFO Backend a.onStart: 1.8 ms [Finished 0.864 s after backend start]
2023-09-03T14:00:25.345Z root INFO Backend a.configure: 0.4 ms [Finished 0.900 s after backend start]
2023-09-03T14:00:25.348Z root INFO Backend u.onStart: 0.3 ms [Finished 0.900 s after backend start]
2023-09-03T14:00:25.350Z root INFO Backend d.configure: 0.1 ms [Finished 0.901 s after backend start]
2023-09-03T14:00:25.358Z root INFO Backend d.initialize: 36.6 ms [Finished 0.901 s after backend start]
2023-09-03T14:00:25.363Z root INFO Backend c.onStart: 0.3 ms [Finished 0.901 s after backend start]
2023-09-03T14:00:25.365Z root INFO Backend s.configure: 1.8 ms [Finished 0.903 s after backend start]
2023-09-03T14:00:25.373Z config INFO >>> Initializing CLI configuration...
2023-09-03T14:00:25.374Z root INFO Backend c.initialize: 0.7 ms [Finished 0.903 s after backend start]
2023-09-03T14:00:25.383Z root INFO Backend P.onStart: 3.3 ms [Finished 0.906 s after backend start]
2023-09-03T14:00:25.384Z config INFO Loading CLI configuration from c:\Users\andre\.arduinoIDE\arduino-cli.yaml...
2023-09-03T14:00:25.398Z daemon INFO Starting daemon from C:\Users\andre\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\resources\arduino-cli.exe...
2023-09-03T14:00:25.398Z root INFO Backend s.initialize: 0.4 ms [Finished 0.908 s after backend start]
2023-09-03T14:00:25.399Z root INFO Backend w.onStart: 8.6 ms [Finished 0.916 s after backend start]
2023-09-03T14:00:25.405Z root INFO Backend r.configure: 14.9 ms [Finished 0.921 s after backend start]
2023-09-03T14:00:25.407Z discovery-log INFO start
2023-09-03T14:00:25.415Z discovery-log INFO start new deferred
2023-09-03T14:00:25.420Z root INFO Backend d.initialize: 0.5 ms [Finished 0.924 s after backend start]
2023-09-03T14:00:25.420Z root INFO Backend y.onStart: 9.0 ms [Finished 0.932 s after backend start]
2023-09-03T14:00:25.430Z root INFO Backend r.configure: 12.3 ms [Finished 0.941 s after backend start]
2023-09-03T14:00:25.433Z root INFO Backend s.onStart: 1.0 ms [Finished 0.957 s after backend start]
2023-09-03T14:00:25.434Z root INFO Backend h.configure: 1.8 ms [Finished 0.958 s after backend start]
2023-09-03T14:00:25.438Z root INFO Backend a.configure: 13.3 ms [Finished 0.979 s after backend start]
2023-09-03T14:00:25.443Z root INFO Backend s.configure: 0.1 ms [Finished 0.991 s after backend start]
2023-09-03T14:00:25.444Z root INFO Backend l.configure: 0.1 ms [Finished 0.997 s after backend start]
2023-09-03T14:00:25.454Z root INFO Theia app listening on http://localhost:62237.
2023-09-03T14:00:25.458Z root INFO Finished starting backend application: 47.1 ms [Finished 1.013 s after backend start]
2023-09-03T14:00:25.482Z root WARN The local plugin referenced by local-dir:/c%3A/Users/andre/.arduinoIDE/plugins does not exist.
2023-09-03T14:00:25.492Z root WARN The local plugin referenced by local-dir:/c%3A/Users/andre/.arduinoIDE/extensions does not exist.
2023-09-03T14:00:25.506Z root WARN The local plugin referenced by local-dir:C:\Users\andre\.arduinoIDE\plugins does not exist.
2023-09-03T14:00:25.624Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"builtin":{"libraries":"C:\\Users\\andre\\AppData\\Local\\Arduino15\\libraries"},"data":"c:\\Users\\andre\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\andre\\AppData\\Local\\Arduino15\\staging","user":"c:\\Users\\andre\\Documents\\Arduino"},"library":{"enable_unsafe_install":false},"locale":"nl","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-09-03T14:00:25.639Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-09-03T14:00:25.686Z config INFO Loaded the CLI configuration.
2023-09-03T14:00:25.846Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/andre/AppData/Local/Arduino15","sketchDirUri":"file:///c%3A/Users/andre/Documents/Arduino","additionalUrls":[],"network":"none","locale":"nl"}
2023-09-03T14:00:25.889Z config INFO Validating the CLI configuration...
2023-09-03T14:00:25.905Z config INFO The CLI config is valid.
2023-09-03T14:00:25.943Z config INFO <<< Initialized the CLI configuration.
2023-09-03T14:00:26.103Z root INFO Resolve plugins list: 719.1 ms [Finished 1.661 s after backend start]
2023-09-03T14:00:27.349Z daemon INFO time="2023-09-03T16:00:27+02:00" level=info msg="Using config file: c:\\Users\\andre\\.arduinoIDE\\arduino-cli.yaml"
time="2023-09-03T16:00:27+02:00" level=info msg="arduino-cli.exe version 0.34.0"
time="2023-09-03T16:00:27+02:00" level=info msg="Executing `arduino-cli daemon`"
2023-09-03T14:00:27.489Z daemon INFO Daemon is now listening on 127.0.0.1:62242
{"IP":"127.0.0.1","Port":"62242"}
2023-09-03T14:00:27.501Z daemon INFO Daemon is running.
2023-09-03T14:00:27.791Z daemon INFO time="2023-09-03T16:00:27+02:00" level=info msg="Checking signature" index="c:\\Users\\andre\\AppData\\Local\\Arduino15\\package_index.json" signatureFile="c:\\Users\\andre\\AppData\\Local\\Arduino15\\package_index.json.sig" trusted=true
time="2023-09-03T16:00:27+02:00" level=info msg="Loading hardware from: c:\\Users\\andre\\AppData\\Local\\Arduino15\\packages"
time="2023-09-03T16:00:27+02:00" level=info msg="Loading package arduino from: C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware"
2023-09-03T14:00:27.808Z daemon INFO time="2023-09-03T16:00:27+02:00" level=info msg="Missing signature file" index="C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\installed.json"
time="2023-09-03T16:00:27+02:00" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded platform" platform="arduino:avr@1.8.6"
time="2023-09-03T16:00:27+02:00" level=info msg="Missing signature file" index="C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.8\\installed.json"
2023-09-03T14:00:27.857Z daemon INFO time="2023-09-03T16:00:27+02:00" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded platform" platform="arduino:megaavr@1.8.8"
2023-09-03T14:00:28.002Z daemon INFO time="2023-09-03T16:00:27+02:00" level=info msg="Missing signature file" index="C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.0.2\\installed.json"
time="2023-09-03T16:00:27+02:00" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded platform" platform="arduino:renesas_uno@1.0.2"
time="2023-09-03T16:00:27+02:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
time="2023-09-03T16:00:27+02:00" level=info msg="Loading tools from dir: C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\arduino\\tools"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="arduino:arduinoOTA@1.3.0"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="arduino:arm-none-eabi-gcc@7-2017q4"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="arduino:avr-gcc@7.3.0-atmel3.6.1-arduino5"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="arduino:avrdude@6.3.0-arduino17"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="arduino:bossac@1.9.1-arduino5"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="arduino:dfu-util@0.11.0-arduino5"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="arduino:openocd@0.11.0-arduino2"
time="2023-09-03T16:00:27+02:00" level=info msg="Loading package builtin from: C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\builtin"
time="2023-09-03T16:00:27+02:00" level=info msg="Checking existence of 'tools' path: C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2023-09-03T16:00:27+02:00" level=info msg="Loading tools from dir: C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\builtin\\tools"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="builtin:ctags@5.8-arduino11"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="builtin:dfu-discovery@0.1.2"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="builtin:mdns-discovery@1.0.9"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="builtin:serial-discovery@1.4.0"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded tool" tool="builtin:serial-monitor@0.13.0"
time="2023-09-03T16:00:27+02:00" level=info msg="Loading package emoro from: C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\emoro\\hardware"
time="2023-09-03T16:00:27+02:00" level=info msg="Missing signature file" index="C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\emoro\\hardware\\avr\\3.2.2\\installed.json"
time="2023-09-03T16:00:27+02:00" level=info msg="Adding monitor tool" protocol=serial tool="builtin:serial-monitor"
time="2023-09-03T16:00:27+02:00" level=info msg="Loaded platform" platform="emoro:avr@3.2.2"
time="2023-09-03T16:00:27+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\libraries" location=platform
time="2023-09-03T16:00:27+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\megaavr\\1.8.8\\libraries" location=platform
time="2023-09-03T16:00:27+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\renesas_uno\\1.0.2\\libraries" location=platform
time="2023-09-03T16:00:27+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\andre\\AppData\\Local\\Arduino15\\packages\\emoro\\hardware\\avr\\3.2.2\\libraries" location=platform
time="2023-09-03T16:00:27+02:00" level=info msg="Loading libraries index file" index="c:\\Users\\andre\\AppData\\Local\\Arduino15\\library_index.json"
2023-09-03T14:00:28.665Z daemon INFO time="2023-09-03T16:00:28+02:00" level=info msg="Adding libraries dir" dir="C:\\Users\\andre\\AppData\\Local\\Arduino15\\libraries" location=ide
time="2023-09-03T16:00:28+02:00" level=info msg="Adding libraries dir" dir="c:\\Users\\andre\\Documents\\Arduino\\libraries" location=user
2023-09-03T14:00:29.212Z discovery-log INFO start request start watch
2023-09-03T14:00:29.233Z discovery-log INFO start requested start watch
2023-09-03T14:00:29.257Z discovery-log INFO start resolved watching
2023-09-03T14:00:29.273Z daemon INFO time="2023-09-03T16:00:29+02:00" level=info msg="starting discovery builtin:dfu-discovery process"
2023-09-03T14:00:29.283Z daemon INFO time="2023-09-03T16:00:29+02:00" level=info msg="starting discovery builtin:serial-discovery process"
2023-09-03T14:00:29.295Z daemon INFO time="2023-09-03T16:00:29+02:00" level=info msg="starting discovery builtin:mdns-discovery process"
2023-09-03T14:00:29.419Z daemon INFO time="2023-09-03T16:00:29+02:00" level=info msg="started discovery builtin:serial-discovery process"
time="2023-09-03T16:00:29+02:00" level=info msg="sending command HELLO 1 \"arduino-cli 0.34.0\" to discovery builtin:serial-discovery"
2023-09-03T14:00:29.488Z daemon INFO time="2023-09-03T16:00:29+02:00" level=info msg="started discovery builtin:dfu-discovery process"
time="2023-09-03T16:00:29+02:00" level=info msg="sending command HELLO 1 \"arduino-cli 0.34.0\" to discovery builtin:dfu-discovery"
2023-09-03T14:00:29.530Z root INFO Deploy plugins list: 719.1 ms [Finished 5.088 s after backend start]
2023-09-03T14:00:29.531Z daemon INFO time="2023-09-03T16:00:29+02:00" level=info msg="started discovery builtin:mdns-discovery process"
time="2023-09-03T16:00:29+02:00" level=info msg="sending command HELLO 1 \"arduino-cli 0.34.0\" to discovery builtin:mdns-discovery"
2023-09-03T14:00:29.898Z daemon INFO time="2023-09-03T16:00:29+02:00" level=info msg="from discovery builtin:dfu-discovery received message type: hello, message: OK, protocol version: 1"
2023-09-03T14:00:29.907Z daemon INFO time="2023-09-03T16:00:29+02:00" level=info msg="sending command START_SYNC to discovery builtin:dfu-discovery"
2023-09-03T14:00:29.980Z daemon INFO time="2023-09-03T16:00:29+02:00" level=info msg="from discovery builtin:dfu-discovery received message type: start_sync, message: OK"
2023-09-03T14:00:29.986Z daemon INFO time="2023-09-03T16:00:29+02:00" level=info msg="from discovery builtin:serial-discovery received message type: hello, message: OK, protocol version: 1"
2023-09-03T14:00:30.006Z daemon INFO time="2023-09-03T16:00:29+02:00" level=info msg="sending command START_SYNC to discovery builtin:serial-discovery"
2023-09-03T14:00:30.031Z daemon INFO time="2023-09-03T16:00:30+02:00" level=info msg="from discovery builtin:serial-discovery received message type: start_sync, message: OK"
2023-09-03T14:00:30.082Z daemon INFO time="2023-09-03T16:00:30+02:00" level=info msg="from discovery builtin:mdns-discovery received message type: hello, message: OK, protocol version: 1"
2023-09-03T14:00:30.099Z daemon INFO time="2023-09-03T16:00:30+02:00" level=info msg="sending command START_SYNC to discovery builtin:mdns-discovery"
2023-09-03T14:00:30.175Z daemon INFO time="2023-09-03T16:00:30+02:00" level=info msg="from discovery builtin:mdns-discovery received message type: start_sync, message: OK"
Opening channel for service path '/services/electron-window'.
Opening channel for service path '/services/ide-updater'.

3 posts were split to a new topic: Window goes blank if I compile with Serial Monitor open

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