2.2.1 ide on win11 64 bit wont start - memory loop

IDE won't load (stuck at splach screen). here is a segment from the error log. This just repeats incrementing port numbers until the ram is totally full and PC unresponsive. Reinstallation of the IDE did not help. Any ideas? Thanks in advance!

 *2023-10-14T23:35:09.376Z daemon INFO Starting daemon from C:\Users\Scott\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\resources\arduino-cli.exe...
 *2023-10-14T23:35:09.412Z daemon INFO time="2023-10-14T16:35:09-07:00" level=warning msg="Unable to get Documents Folder: The system cannot find the file specified."
 *2023-10-14T23:35:09.426Z daemon INFO time="2023-10-14T16:35:09-07:00" level=info msg="Using config file: c:\\Users\\Scott\\.arduinoIDE\\arduino-cli.yaml"
 *time="2023-10-14T16:35:09-07:00" level=info msg="arduino-cli.exe version 0.34.0"
 *time="2023-10-14T16:35:09-07:00" level=info msg="Executing `arduino-cli daemon`"
 *2023-10-14T23:35:09.426Z daemon INFO Daemon is now listening on 127.0.0.1:49331
 *{"IP":"127.0.0.1","Port":"49331"}
 *2023-10-14T23:35:09.440Z daemon INFO Unable to get Documents Folder: The system cannot find the file specified.
 *2023-10-14T23:35:09.440Z daemon ERROR Error: Unable to get Documents Folder: The system cannot find the file specified.
 *    at Socket.<anonymous> (C:\Users\Scott\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:46588)
 *    at Socket.emit (node:events:513:28)
 *    at addChunk (node:internal/streams/readable:324:12)
 *    at readableAddChunk (node:internal/streams/readable:297:9)
 *    at Readable.push (node:internal/streams/readable:234:10)
 *    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
 *2023-10-14T23:35:09.440Z daemon INFO Starting daemon from C:\Users\Scott\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\resources\arduino-cli.exe...
 *2023-10-14T23:35:09.482Z daemon INFO time="2023-10-14T16:35:09-07:00" level=warning msg="Unable to get Documents Folder: The system cannot find the file specified."
 *2023-10-14T23:35:09.507Z daemon INFO Unable to get Documents Folder: The system cannot find the file specified.
 *2023-10-14T23:35:09.508Z daemon ERROR Error: Unable to get Documents Folder: The system cannot find the file specified.
 *    at Socket.<anonymous> (C:\Users\Scott\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:46588)
 *    at Socket.emit (node:events:513:28)
 *    at addChunk (node:internal/streams/readable:324:12)
 *    at readableAddChunk (node:internal/streams/readable:297:9)
 *    at Readable.push (node:internal/streams/readable:234:10)
 *    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)

Hi @scottadon. I apologize for the slow response.

I just noticed this request while I was doing some research for another user who experienced the same problem. Hopefully you already found a solution to the problem, but just in case you didn't, I'll follow up:

On startup, Arduino IDE queries the Windows operating system for the location of your user "Documents" folder. The reason Arduino IDE is not starting is because when it makes this query Windows responds that the "Documents" folder doesn't exist. Since that folder should always exist, the IDE fails to start with this "Unable to get Documents Folder: ..." error.

Traditionally, the default location of the "Documents" folder was a path with this format:

C:\Users\<username>\Documents

(where <username> is your Windows username)

Although that is the default, it is possible to customize the location of this folder. If the location was changed to a drive that is not accessible (e.g., a USB drive that is unplugged), that could cause the "Unable to get Documents Folder: ..." error.

If you have the Windows "OneDrive folder syncing" feature enabled, the "Documents" folder is located under the OneDrive storage by default, at a path with this format:

C:\Users\<username>\OneDrive\Documents

(where the name of the Documents folder might actually be the localized equivalent)

It is also possible the folder could be located on alternative cloud storage providers (e.g., Dropbox.

When other users reported encountering this "Unable to get Documents Folder: ..." error, we often found that the problem was caused by them having disabled OneDrive in some manner, or else by them not having a connection to the OneDrive service.

Can you think of anything unusual about your system that might cause Arduino IDE to not be able to access your "Documents" folder?

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