Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error: EISDIR: illegal operation on a directory, realpath 'R:\Temp' #428

Open
MrDemocracy opened this issue Jul 4, 2024 · 1 comment · May be fixed by #429
Open

[BUG] Error: EISDIR: illegal operation on a directory, realpath 'R:\Temp' #428

MrDemocracy opened this issue Jul 4, 2024 · 1 comment · May be fixed by #429
Labels
bug Something isn't working

Comments

@MrDemocracy
Copy link

Describe the bug
When using a ram disk for the Temp path Flashpoint crashes whenever I try to change the config.
The usage of realpath on this line could be responsible for the bug:

return path.join(await fs.promises.realpath(os.tmpdir()), uuid() + '.' + ext);

To Reproduce
Steps to reproduce the behavior:

  1. Create a ram disk (could be done with ImDisk Toolkit)
  2. Set your Temp path to the new ram disk volume you just created by changing the environment variables (can also be done directly from ImDisk)
  3. Open flashpoint and change something in the config tab
  4. See error

Expected behavior
It should be possible to have the temp path set to a non-default path without Flashpoint crashing.

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Flashpoint Version [Infinity 13.0.2]
  • Log text (if relevant)

Additional context

--- Build Version: 2024-05-26 (c2d0000) ---
Back - Initializing...
Back - Loaded Config
Checking for prefs override at ..\.preferences.defaults.json
Back - Loaded Preferences
Back - Initialized Languages
Back - Parsed Playlists
Back - Parsed Extensions
Back - Initialized Themes
Back - Registered System Middleware
Back - Opened File Server
Back - Opened Websocket
Back - Ready for Init
Back - Loaded Extension Config
Back - Checked Component Updates
Back - Initialized Services
Back - Loaded Exec Mappings
Back - Initialized Database
finding playlists?
Back - Initialized Logo Sets
Back - Initialized Extensions
Back - Initialized Curations
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: EISDIR: illegal operation on a directory, realpath 'R:\Temp'] {
  errno: -4068,
  code: 'EISDIR',
  syscall: 'realpath',
  path: 'R:\\Temp'
}
@MrDemocracy MrDemocracy added the bug Something isn't working label Jul 4, 2024
@colin969 colin969 linked a pull request Jul 30, 2024 that will close this issue
@colin969
Copy link
Member

Should be fixed by caa54f3 in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants