Description
Describe the problem
Arduino IDE crashes on startup when the operating system is configured to use a RAM drive for the system temporary folder location.
To reproduce
- Create a RAM drive.
- Configure your system to use a folder on this drive as the temporary folder.
- Start Arduino IDE.
🐛 The IDE crashes on startup. The following error is shown in the terminal logs:
Failed to start the electron application.
Error: EISDIR: illegal operation on a directory, realpath 'Z:\Temp'
at Function.<anonymous> (node:fs:2719:3)
at Function.native (node:electron/js2c/asar_bundle:2:5101)
at new d (C:\Apps\Programming\ArduinoIDE\resources\app\lib\backend\electron-main.js:2:769052)
at Ee (C:\Apps\Programming\ArduinoIDE\resources\app\lib\backend\electron-main.js:8:633790)
at C:\Apps\Programming\ArduinoIDE\resources\app\lib\backend\electron-main.js:8:637767
at Le (C:\Apps\Programming\ArduinoIDE\resources\app\lib\backend\electron-main.js:8:637836)
at C:\Apps\Programming\ArduinoIDE\resources\app\lib\backend\electron-main.js:8:638223
at Fe (C:\Apps\Programming\ArduinoIDE\resources\app\lib\backend\electron-main.js:8:638164)
at Oe (C:\Apps\Programming\ArduinoIDE\resources\app\lib\backend\electron-main.js:8:638198)
at C:\Apps\Programming\ArduinoIDE\resources\app\lib\backend\electron-main.js:8:636512 {
errno: -4068,
syscall: 'realpath',
code: 'EISDIR',
path: 'Z:\\Temp'
}
Expected behavior
Arduino IDE can be used on systems that are configured to use a RAM drive for the temporary folder.
Arduino IDE version
nightly
Operating system
Windows
Operating system version
11
Additional context
I created the RAM drive using ImDisk.
The reason is, of course, even though I have 128GB of memory apps love to thrash the drives temp files so I use ramdisk to avoid this and it typically speeds up some applications.
This technically may be an issue with ImDisk or with node or whatever Arduino uses.
E.g., every once in a while I have an issue with some apps not working well with the temp dir being on a ramdisk. E.g., some recycle programs do not work well because the drive is not NTFS (does not contain a $recycle dir).
There technically should be no reason it shouldn't work though. I use thousands of programs and almost all work fine (from more complex apps like various IDE's to graphics apps to whatever).
Related
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details