Arduino 2.04 stuck in splash screen

I have used the latest version (2.04) for quite some time. As I am preparing to leave the old IDE with Atom behind, I ran into this problem.

While uploading a sketch to the Due board, I noticed it was taking too long. So I aborted the process by closing the IDE. I launched the IDE and it was stuck, the flash screen forever showing a pulsating Arduino logo. To the point that the entire system is becoming sluggish.

So this time, I power cycle the PC. Once again launched the IDE and I got the same result. I poke into the task manager, and I saw that several instances of the Arduino-cli.exe files are running, and when it reached more than thousands of instances the PC starts to slow down.

I have uninstalled and reinstalled the IDE. I have manually deleted all directories and files that are related to Arduino so as to have a clean install. The problem still persists and it seems I can't use it anymore.

Please help

Iā€™m sorry to hear that youā€™re having trouble with your Arduino IDE. It seems that youā€™re not alone with this issue.
According to a post on the Arduino forum, you can try holding down the shift key while clicking the right-hand button on the mouse in the folder listing of the Arduino IDE installation folder. This will open a context menu where you can select ā€œOpen PowerShell window hereā€. Then, type .\arduino_debug.exe --clear-cache
and press enter

Another solution is to move the Arduino IDE window back into view where you can grab it. You can do this by pressing Alt+Space, then M, then arrow keys to move the screen back into view.

But maybe @ptillisch can help too.

I hope this helps! Let me know if you have any other questions or concerns.

1 Like

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

Please do this:

  1. Start Windows "File Explorer".
  2. Open the Arduino IDE installation folder.
    (usually C:\Program Files\Arduino IDE or C:\Users\<username>\AppData\Local\Programs\Arduino IDE).
  3. In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
  4. 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.
  5. Type the following command:
    & ".\Arduino IDE"
    
  6. Press the Enter key.
    Debug output should now be printed to the PowerShell window as Arduino IDE starts.
  7. Wait until you are the IDE startup has gone into the hang state.
  8. Switch back to the PowerShell window if the Arduino IDE window took the focus.
  9. Right click on the title bar of the PowerShell window.
    This will open a context menu.
  10. Select Edit > Select All from the context menu.
    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.

PS C:\Program Files\Arduino IDE> & ".\Arduino IDE"
PS C:\Program Files\Arduino IDE>
Arduino IDE 2.0.4
Starting backend process. PID: 17796
Using browser-only version of superagent in non-browser environment
Configuration directory URI: 'file:///c%3A/Users/rhave/.theia'
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
2023-03-28T07:13:42.479Z root INFO Backend Object.initialize: 7.3 ms [Finished 2.364 s after backend start]
2023-03-28T07:13:42.480Z root INFO Backend Object.configure: 5.5 ms [Finished 2.364 s after backend start]
2023-03-28T07:13:42.480Z root INFO Backend MessagingContribution.onStart: 2.1 ms [Finished 2.364 s after backend start]
2023-03-28T07:13:42.481Z root INFO Backend OSBackendApplicationContribution.configure: 0.5 ms [Finished 2.429 s after backend start]
2023-03-28T07:13:42.482Z root INFO Backend DefaultWorkspaceServer.onStart: 0.4 ms [Finished 2.429 s after backend start]2023-03-28T07:13:42.483Z root INFO Backend PluginLocalizationBackendContribution.configure: 0.1 ms [Finished 2.430 s after backend start]
2023-03-28T07:13:42.484Z root WARN Backend PluginLocalizationBackendContribution.initialize took longer than the expected maximum 50 milliseconds: 64.8 ms [Finished 2.430 s after backend start]
2023-03-28T07:13:42.485Z root INFO Backend TaskBackendApplicationContribution.onStart: 0.3 ms [Finished 2.430 s after backend start]
2023-03-28T07:13:42.486Z root INFO Backend ElectronTokenBackendContribution.configure: 1.7 ms [Finished 2.432 s after backend start]
2023-03-28T07:13:42.487Z config INFO >>> Initializing CLI configuration...
2023-03-28T07:13:42.487Z root INFO Backend PluginDeployerContribution.initialize: 0.6 ms [Finished 2.432 s after backend start]
2023-03-28T07:13:42.488Z root INFO Backend ConfigServiceImpl.onStart: 1.3 ms [Finished 2.433 s after backend start]
2023-03-28T07:13:42.489Z config INFO Loading CLI configuration from c:\Users\rhave\.arduinoIDE\arduino-cli.yaml...
2023-03-28T07:13:42.490Z root INFO Backend WebviewBackendSecurityWarnings.initialize: 0.5 ms [Finished 2.434 s after backend start]
2023-03-28T07:13:42.490Z root INFO Backend ArduinoDaemonImpl.onStart: 1.5 ms [Finished 2.435 s after backend start]
2023-03-28T07:13:42.491Z root INFO Backend NodeFileUploadService.configure: 2.9 ms [Finished 2.436 s after backend start]
2023-03-28T07:13:42.491Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
2023-03-28T07:13:42.492Z discovery-log INFO start
2023-03-28T07:13:42.492Z discovery-log INFO start new deferred
2023-03-28T07:13:42.492Z root INFO Backend HostedPluginLocalizationService.initialize: 0.6 ms [Finished 2.437 s after backend start]
2023-03-28T07:13:42.493Z root INFO Backend BoardDiscovery.onStart: 1.6 ms [Finished 2.438 s after backend start]
2023-03-28T07:13:42.493Z root INFO Backend FileDownloadEndpoint.configure: 1.4 ms [Finished 2.439 s after backend start]2023-03-28T07:13:42.494Z root INFO Backend AuthenticationServiceImpl.onStart: 0.4 ms [Finished 2.441 s after backend start]
2023-03-28T07:13:42.494Z root INFO Backend PluginApiContribution.configure: 0.7 ms [Finished 2.441 s after backend start]
2023-03-28T07:13:42.496Z root INFO Backend HostedPluginReader.configure: 1.2 ms [Finished 2.444 s after backend start]
2023-03-28T07:13:42.496Z root INFO Backend HostedPluginReader.configure: 0.1 ms [Finished 2.445 s after backend start]
2023-03-28T07:13:42.496Z root INFO Backend PlotterBackendContribution.configure: 1.4 ms [Finished 2.447 s after backend start]
2023-03-28T07:13:42.501Z root INFO Theia app listening on http://localhost:60864.
2023-03-28T07:13:42.502Z root INFO Finished starting backend application: 9.7 ms [Finished 2.452 s after backend start]
2023-03-28T07:13:42.514Z root WARN The local plugin referenced by local-dir:/c%3A/Users/rhave/.arduinoIDE/plugins does not exist.
2023-03-28T07:13:42.515Z root WARN The local plugin referenced by local-dir:/c%3A/Users/rhave/.arduinoIDE/extensions does not exist.
2023-03-28T07:13:42.515Z root WARN The local plugin referenced by local-dir:C:\Users\rhave\.arduinoProIDE\plugins does not exist.
2023-03-28T07:13:42.554Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.554Z root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@1.5.1" with engines:
2023-03-28T07:13:42.555Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.555Z root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.2-beta.7" with engines:
2023-03-28T07:13:42.556Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.556Z root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
2023-03-28T07:13:42.556Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.557Z root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
2023-03-28T07:13:42.557Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.557Z root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
2023-03-28T07:13:42.557Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.558Z root INFO Resolved "vscode-language-pack-bg" to a VS Code extension "vscode-language-pack-bg@1.48.3" with engines:
2023-03-28T07:13:42.558Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.558Z root INFO Resolved "vscode-language-pack-cs" to a VS Code extension "vscode-language-pack-cs@1.53.2" with engines:
2023-03-28T07:13:42.559Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.559Z root INFO Resolved "vscode-language-pack-de" to a VS Code extension "vscode-language-pack-de@1.53.2" with engines:
2023-03-28T07:13:42.559Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.559Z root INFO Resolved "vscode-language-pack-es" to a VS Code extension "vscode-language-pack-es@1.53.2" with engines:
2023-03-28T07:13:42.560Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.561Z root INFO Resolved "vscode-language-pack-fr" to a VS Code extension "vscode-language-pack-fr@1.53.2" with engines:
2023-03-28T07:13:42.562Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.562Z root INFO Resolved "vscode-language-pack-hu" to a VS Code extension "vscode-language-pack-hu@1.48.3" with engines:
2023-03-28T07:13:42.562Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.563Z root INFO Resolved "vscode-language-pack-it" to a VS Code extension "vscode-language-pack-it@1.53.2" with engines:
2023-03-28T07:13:42.563Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.563Z root INFO Resolved "vscode-language-pack-ja" to a VS Code extension "vscode-language-pack-ja@1.53.2" with engines:
2023-03-28T07:13:42.563Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.564Z root INFO Resolved "vscode-language-pack-ko" to a VS Code extension "vscode-language-pack-ko@1.53.2" with engines:
2023-03-28T07:13:42.564Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.564Z root INFO Resolved "vscode-language-pack-nl" to a VS Code extension "vscode-language-pack-nl@1.48.3" with engines:
2023-03-28T07:13:42.564Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.565Z root INFO Resolved "vscode-language-pack-pl" to a VS Code extension "vscode-language-pack-pl@1.53.2" with engines:
2023-03-28T07:13:42.565Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.565Z root INFO Resolved "vscode-language-pack-pt-BR" to a VS Code extension "vscode-language-pack-pt-BR@1.53.2" with engines:
2023-03-28T07:13:42.566Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.566Z root INFO Resolved "vscode-language-pack-ru" to a VS Code extension "vscode-language-pack-ru@1.53.2" with engines:
2023-03-28T07:13:42.566Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.566Z root INFO Resolved "vscode-language-pack-tr" to a VS Code extension "vscode-language-pack-tr@1.53.2" with engines:
2023-03-28T07:13:42.567Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.567Z root INFO Resolved "vscode-language-pack-uk" to a VS Code extension "vscode-language-pack-uk@1.48.3" with engines:
2023-03-28T07:13:42.567Z root INFO PluginTheiaDirectoryHandler: accepting plugin with path
2023-03-28T07:13:42.568Z root INFO Resolved "vscode-language-pack-zh-hans" to a VS Code extension "vscode-language-pack-zh-hans@1.53.2" with engines:
2023-03-28T07:13:42.578Z config INFO Loaded CLI configuration: {"board_manager":{"additional_urls":[]},"build_cache":{"compilations_before_purge":10,"ttl":"720h0m0s"},"daemon":{"port":"50051"},"directories":{"data":"C:\\Users\\rhave\\AppData\\Local\\Arduino15","downloads":"C:\\Users\\rhave\\AppData\\Local\\Arduino15\\staging","user":"."},"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-03-28T07:13:42.578Z config INFO 'directories.data' and 'directories.user' are set in the CLI configuration model.
2023-03-28T07:13:42.579Z config INFO Loaded the CLI configuration.
2023-03-28T07:13:42.582Z config INFO Mapped the CLI configuration: {"dataDirUri":"file:///c%3A/Users/rhave/AppData/Local/Arduino15","sketchDirUri":"file:///.","additionalUrls":[],"network":"none","locale":"en"}
2023-03-28T07:13:42.583Z config INFO Validating the CLI configuration...
2023-03-28T07:13:42.584Z config INFO The CLI config is valid.
2023-03-28T07:13:42.584Z config INFO <<< Initialized the CLI configuration.
2023-03-28T07:13:42.607Z root INFO Resolve plugins list: 117.9 ms [Finished 2.557 s after backend start]
2023-03-28T07:13:42.614Z root INFO Deployed backend plugin "marus25.cortex-debug@1.5.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension.js": 7.1 ms [Finished 2.565 s after backend start]
2023-03-28T07:13:42.621Z root INFO Deployed backend plugin "arduino.vscode-arduino-tools@0.0.2-beta.7" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle": 6.4 ms [Finished 2.572 s after backend start]
2023-03-28T07:13:42.645Z root INFO Deployed backend plugin "vscode.cpp@1.52.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension": 23.7 ms [Finished 2.595 s after backend start]
2023-03-28T07:13:42.647Z daemon INFO Unable to get Documents Folder: The system cannot find the file specified.

2023-03-28T07:13:42.648Z daemon ERROR Error: Unable to get Documents Folder: The system cannot find the file specified.
    at Socket.<anonymous> (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:203:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-03-28T07:13:42.649Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
2023-03-28T07:13:42.664Z root INFO Deployed backend plugin "vscode.json@1.46.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension": 19.7 ms [Finished 2.615 s after backend start]
2023-03-28T07:13:42.666Z root INFO Deployed backend plugin "vscode.json-language-features@1.46.1" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain": 1.4 ms [Finished 2.617 s after backend start]
2023-03-28T07:13:42.814Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-bg@1.48.3" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-bg\extension": 147.8 ms [Finished 2.765 s after backend start]
2023-03-28T07:13:42.815Z daemon INFO time="2023-03-28T15:13:42+08:00" level=warning msg="Unable to get Documents Folder: The system cannot find the file specified."

2023-03-28T07:13:42.815Z daemon INFO Unable to get Documents Folder: The system cannot find the file specified.

2023-03-28T07:13:42.816Z daemon ERROR Error: Unable to get Documents Folder: The system cannot find the file specified.
    at Socket.<anonymous> (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:203:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-03-28T07:13:42.816Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
2023-03-28T07:13:42.817Z daemon INFO INFO[0000] Using config file: c:\Users\rhave\.arduinoIDE\arduino-cli.yaml
INFO[0000] arduino-cli.exe version 0.31.0
INFO[0000] Executing `arduino-cli daemon`
{"IP":"127.0.0.1","Port":"60865"}

2023-03-28T07:13:42.994Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-cs@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-cs\extension": 180.4 ms [Finished 2.945 s after backend start]
2023-03-28T07:13:42.995Z daemon INFO time="2023-03-28T15:13:42+08:00" level=warning msg="Unable to get Documents Folder: The system cannot find the file specified."

2023-03-28T07:13:42.996Z daemon INFO INFO[0000] Using config file: c:\Users\rhave\.arduinoIDE\arduino-cli.yaml
INFO[0000] arduino-cli.exe version 0.31.0
INFO[0000] Executing `arduino-cli daemon`
{"IP":"127.0.0.1","Port":"60866"}

2023-03-28T07:13:42.997Z daemon INFO Unable to get Documents Folder: The system cannot find the file specified.

2023-03-28T07:13:42.998Z daemon ERROR Error: Unable to get Documents Folder: The system cannot find the file specified.
    at Socket.<anonymous> (C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\lib\node\arduino-daemon-impl.js:203:42)
    at Socket.emit (node:events:394:28)
    at addChunk (node:internal/streams/readable:312:12)
    at readableAddChunk (node:internal/streams/readable:287:9)
    at Socket.Readable.push (node:internal/streams/readable:226:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
2023-03-28T07:13:42.999Z daemon INFO Starting daemon from C:\Program Files\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
2023-03-28T07:13:43.243Z root INFO Deployed backend plugin "ms-ceintl.vscode-language-pack-de@1.53.2" from "C:\Program Files\Arduino IDE\resources\app\plugins\vscode-language-pack-de\extension": 249.2 ms [Finished 3.194 s after backend start]
2023-03-28T07:13:43.245Z daemon INFO time="2023-03-28T15:13:42+08:00" level=warning msg="Unable to get Documents Folder: The system cannot find the file specified."

2023-03-28T07:13:43.245Z daemon INFO INFO[0000] Using config file: c:\Users\rhave\.arduinoIDE\arduino-cli.yaml
INFO[0000] arduino-cli.exe version 0.31.0
INFO[0000] Executing `arduino-cli daemon`
{"IP":"127.0.0.1","Port":"60867"}

it is looping. if I copy and paste, it will not fit in here.

this is what I get:

PS C:\Program Files\Arduino IDE> .\arduino_debug.exe --clear-cache
.\arduino_debug.exe : The term '.\arduino_debug.exe' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:1
+ .\arduino_debug.exe --clear-cache
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (.\arduino_debug.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Program Files\Arduino IDE>

There was another report of this error here:

https://forum.arduino.cc/t/arduino-2-0-will-not-start-past-the-loading-screen/1049023/15

They shared the solution they found:

There was another discussion of the problem here:

My attempts at assistance there were not very effective but the thread does contain some information about why Arduino IDE needs to access your Documents folder. The user also provided their (quite aggressive) solution:

1 Like

The command you entered is not valid. You need to specify the full path of the arduino_debug.exe file or change your current directory to where it is located. For example, you can try:

PS C:\Program Files\Arduino IDE> .\arduino-1.8.16\arduino_debug.exe --clear-cache

I hope this helps.

This is specific to Arduino IDE 1.x. @thesishelp is using Arduino IDE 2.x so it can't be used.

There is no arduino_debug.exe file in the Arduino IDE 2.x installation. You should use Arduino IDE.exe to start Arduino IDE from the command line.

Arduino IDE 2.x does not have a --clear-cache flag.

1 Like

Thank you so much. I have deleted the .arduinoIDE and the Arduino15. I was greeted with a working IDE. I just have to reinstall the boards that were removed in the process. It is all working fine now.

Thank you so much.

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

Regards,
Per

Thanks to you. I hope to see a dockable serial monitor in the future. Have a great day!

The Arduino IDE developers are tracking this request here:

If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.

1 Like

2 posts were split to a new topic: IDE hangs on startup: "discovery builtin:serial-discovery not found"

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