m8nix
December 7, 2023, 3:24pm
1
PowerShell
IDE 1.8.19 was starting up fine with "Temp" assigned to a ram disk. (Primo Ramdisk)
1 Like
docdoc
December 7, 2023, 3:41pm
2
I believe you, IDE 1.8.* and 2.* are completely different (different programming language, different graphics, different frameworks) so they could have a different behaviour.
Anyway, I'm curious: I don't get why you need to point TEMP to a ram disk, nowadays we have fast hard disks, and very often SSDs, so why you can't switch to a "regular" TEMP directory?
m8nix
December 7, 2023, 4:02pm
3
docdoc:
Anyway, I'm curious: I don't get why you need to point TEMP to a ram disk, nowadays we have fast hard disks, and very often SSDs, so why you can't switch to a "regular" TEMP directory?
I know docdoc, you can write books about the sense and nonsense of a ramdisk.
But that's my philosophy to protect the SSD from too many unnecessary write accesses in order to increase its lifespan.
I just wanted to inform others who are frustrated with the same problem.
And maybe it's a simple problem that can be solved quickly?
docdoc
December 7, 2023, 4:28pm
4
Googling a bit the error message I got this:
Quote:
Understanding the Error:
The “EISDIR: illegal operation on a directory, realpath” error occurs when using Vite on virtual and RAM disks that bypass the Volume Mounting Manager, such as ImDisk, due to a mismatch between the required disk management mechanism and the actual disk setup. Vite’s dependency on the fs.realpathSync.native method necessitates the involvement of the Mount Manager to locate mount points and perform related operations. However, since ImDisk does not interact with the Mount Manager, these operations result in errors.
The Solution: Implementing a Wrapper Function:
To overcome the “EISDIR” error and enable smooth building with Vite on virtual and RAM disks, a wrapper function can be created to handle the issue effectively. The wrapper function encapsulates the problematic code within a try-catch block, allowing for graceful error handling and resolution.
m8nix
December 7, 2023, 5:01pm
5
Thank you docdoc.
There is even a solution described there.
What do you think, should we report this issue at github? (I've never done that)
Hi @m8nix . Thanks for your report. The Arduino IDE developers are tracking this bug here:
opened 06:32AM - 21 Jul 22 UTC
topic: code
type: imperfection
### Describe the problem
Win 11 with MSI install or UnZip to empty folder sta… rts main window with title bar. Splash persists and main window with no menu just persists until closed with spinning wait animation.
This will persist for hours without change or status feedback other than the spinning wait animation.
Machine has been restarted as needed to allow removal of indicated folders and behavior persists.
### To reproduce
Unzip arduino-ide_2.0.0-rc9_Windows_64bit.zip to empty folder.
> ZIP is 'unblocked' so extracted files not marked 'Blocked'
> Folder is in an excluded 'scan' folder for MalwareBytes
> Windows Defender also active, added exclusion, no difference
Install arduino-ide_2.0.0-rc9_Windows_64bit.msi
> completes and exits with no notice, but found installed
Execute and noted behavior persists
Attempts to resolve noted here https://forum.pjrc.com/threads/53548-Arduino-CLI-And-IDE-2-RC-Release-Teensy-Support?p=309665&viewfull=1#post309665
> That is post arduino/arduino-ide#270 , minor update on p#274 prior to creation of this issue.
Removed `%appdata%` folder `local\arduino15` and the two in `roaming` and no difference.
### Expected behavior
Expected either the IDE to appear like early nightly builds did Jan/Feb, or present some error messages or feedback as to the nature of some problem with startup.
### Arduino IDE version
#### Original report
IDE 2.0 RC9
#### Last verified with
76f9f635d8558f399423f64c0c709e3a53bdcd03 ([reference](https://forum.arduino.cc/t/arduino-ide-2-stalls-on-start/1037599/13))
### Operating system
Windows
### Operating system version
Windows 11 : Microsoft Windows [Version 10.0.22000.739]
### Additional context
Scanned open issues across 8 pages and not seeing notes of anything active and related.
Ran nightly build before RC9 release with same results as found with new RC9 release.
>Posts prior to RC9 with nightly builds and efforts to resolve in this thread: https://forum.pjrc.com/threads/70455-Teensyduino-1-57-Beta-3?p=309464&viewfull=1#post309464 { posts arduino/arduino-ide#33,36, 38
I can post any `.log` files that may reside or help understand what is hanging this system startup.
Not aware of anything else that may be present on the system causing this.
Running the EXE from the ZIP in an ADMIN command box I get this:
```text
C:\T_Drive\ardIDE_2>"Arduino IDE.exe"
C:\T_Drive\ardIDE_2>
Starting backend process. PID: 13200
Using browser-only version of superagent in non-browser environment
Error: EISDIR: illegal operation on a directory, realpath 'R:\Temp'
at Function.realpathSync.native (node:fs:2540:3)
at Function.native (node:electron/js2c/asar_bundle:5:4819)
at new SketchesServiceImpl (C:\T_Drive\ardIDE_2\resources\app\node_modules\arduino-ide-extension\lib\node\sketches-service-impl.js:48:51)
at _createInstance (C:\T_Drive\ardIDE_2\resources\app\node_modules\inversify\lib\resolution\instantiation.js:27:12)
at Object.resolveInstance (C:\T_Drive\ardIDE_2\resources\app\node_modules\inversify\lib\resolution\instantiation.js:47:18)
at C:\T_Drive\ardIDE_2\resources\app\node_modules\inversify\lib\resolution\resolver.js:75:42
at Object.resolve (C:\T_Drive\ardIDE_2\resources\app\node_modules\inversify\lib\resolution\resolver.js:99:12)
at C:\T_Drive\ardIDE_2\resources\app\node_modules\inversify\lib\container\container.js:335:37
at Container._get (C:\T_Drive\ardIDE_2\resources\app\node_modules\inversify\lib\container\container.js:326:44)
at Container.get (C:\T_Drive\ardIDE_2\resources\app\node_modules\inversify\lib\container\container.js:243:21) {
errno: -4068,
syscall: 'realpath',
code: 'EISDIR',
path: 'R:\\Temp'
}
Configuration directory URI: 'file:///c%3A/Users/Tim/.theia'
Theia app listening on http://localhost:56933.
root INFO Finished starting backend application: 4.1 ms [Finished 1.286 s after backend start]
[30924:0720/231630.034:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is disabled, ANGLE is
Stored workspaces roots:
C:\T_Drive\ardIDE_2>
```
---
{Using IDE 1.8.19 - freshly unzipped and TeensyDuino {1.57b4} installed and confirmed to work. It has no history of `preferences.txt` and no sketchbook or local libraries from actual folder are linked. Removal of `Arduino15` took away prior hardware packages as well}
---
Additional reports:
- https://github.com/arduino/arduino-ide/issues/1117
- https://forum.arduino.cc/t/arduino-ide-2-stalls-on-start/1037599
- https://forum.arduino.cc/t/arduino-ide-2-rc7-stalls-on-windows-11-system/1002172
- https://forum.arduino.cc/t/arduino-ide-2-1-1-0-not-work/1145930
- https://forum.arduino.cc/t/arduino-ide-2-2-1-wont-start-up-if-windows-environment-variable-temp-is-assigned-to-a-ram-disk/1197911
---
Possibly related:
- https://github.com/nodejs/node/issues/6861
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://github.com/arduino/arduino-ide#nightly-builds)
- [X] My report contains all necessary details
If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject:
fxmark
December 10, 2023, 1:23pm
7
I have the same issue as @m8nix , in which I use ImDisk to turn 64GB ram to d: and set d:\TEMP as temp dir.
Looking at the bug tracking @ptillisch posted, there is a workaround for 2.1.1, but the file structure is different on 2.2.1, where the specific .js file is not there anymore.
Does anyone know where
fs.realpath.native and fs.realpathSync.native
keys are now located?
system
Closed
June 7, 2024, 1:23pm
8
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.