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.
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.
Hi @thesishelp. I'm going to ask you to post some additional information that might help us to identify the problem.
Please do this:
Start Windows "File Explorer".
Open the Arduino IDE installation folder.
(usually C:\Program Files\Arduino IDE or C:\Users\<username>\AppData\Local\Programs\Arduino IDE).
In the folder listing of the Arduino IDE installation folder, hold the Shift key while clicking the right hand button on the mouse.
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.
Type the following command:
& ".\Arduino IDE"
Press the Enter key.
Debug output should now be printed to the PowerShell window as Arduino IDE starts.
Wait until you are the IDE startup has gone into the hang state.
Switch back to the PowerShell window if the Arduino IDE window took the focus.
Right click on the title bar of the PowerShell window.
This will open a context menu.
Select Edit > Select All from the context menu.
This will select all the text in the PowerShell window.
Press Ctrl+C.
This will copy the contents of the PowerShell window to the clipboard.
Open a forum reply here by clicking the Reply button.
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.
Press Ctrl+V.
This will paste the output into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.
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.
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>
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:
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:
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.