Skip to content

IDE hangs on startup when system temporary folder is on a RAM drive #1236

@Defragster

Description

@Defragster

Describe the problem

When I start Arduino IDE on my computer where I am using a RAM drive, the window and title bar appear, but it remains forever on the splash screen/loading animation.

To reproduce

  1. Use the Imdisk Toolkit utility to create a virtual disk in memory and configure the system temporary folder to be placed on it:
    remdrive2
  2. Start Arduino IDE.

🐛 Startup hangs forever at the loading animation.

Expected behavior

Arduino IDE starts and is fully functional.

If there is a reason Arduino IDE can not start, I expect it to communicate to the user about the problem (#2585).

Arduino IDE version

Original report

2.0.0-rc9

Last verified with

76f9f63 (reference)

Operating system

Windows

Operating system version

11 (Version 10.0.22000.739)

Additional context

When I did the install and looked at the time stamps for file created at that time - there seemed to be bunch of zero size.


The relevant environment variables have the following values:

> SET TEMP

TEMP=R:\Temp

> SET TMP

TMP=R:\Temp

I tried changing the values of these variables to R:\TEMP (note the changed case of the folder name to TEMP vs Temp), but this did not solve the problem.

Also removed "%systemroot%" that was preceding the one set of ImDisk entries.


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

(see posts 270 and 274)


Removed %appdata% folder local\arduino15 and the two in roaming and no difference.


I configured my security software to avoid it interfering with Arduino IDE:

Arduino IDE ZIP package is 'unblocked' so extracted files are not marked 'Blocked'.

Folder is in an excluded 'scan' folder for MalwareBytes.

Windows Defender also active, added exclusion.


Machine has been restarted as needed to allow removal of indicated folders and behavior persists.


The fault occurs with the MSI and ZIP packages of Arduino IDE


The fault still occurs after deleting the Arduino15 folder.


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:

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>

(my RAM drive is on R:\)


The fault does not occur when using Arduino IDE 1.8.19 + Teensyduino 1.57b4.


Related discussion:

https://forum.pjrc.com/threads/70455-Teensyduino-1-57-Beta-3?p=309464&viewfull=1#post309464

(see posts 33, 36, 38)

Additional reports

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions