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

Mac support: This process cannot access the file because it is being used by another process #88

Open
Downchuck opened this issue Oct 22, 2021 · 7 comments
Assignees
Milestone

Comments

@Downchuck
Copy link

This appears to be broken on Mac because when it runs the "cm" tool it does not set the working directory correctly in process execution.

Using zsh to get around that, however, I wind up with "This process cannot access the file because it is being used by another process" which seems to come from RunCommand being run concurrently, as though it is being threaded when only a single process descriptor is open.

Both seem like trivial fixes that would make Mac work.

@SRombauts SRombauts self-assigned this Mar 2, 2022
@SRombauts SRombauts added the bug label Mar 2, 2022
@SRombauts
Copy link
Owner

Hello,

What do you mean by that?

static bool _StartBackgroundPlasticShell(const FString& InPathToPlasticBinary, const FString& InWorkingDirectory)
{
	 ...
	ShellProcessHandle = FPlatformProcess::CreateProc(*InPathToPlasticBinary, *FullCommand, bLaunchDetached, bLaunchHidden, bLaunchReallyHidden, nullptr, 0, *InWorkingDirectory, ShellOutputPipeWrite, ShellInputPipeRead);

Is that that using the WorkspaceRoot as the InWorkingDirectory not what is expected by "cm"?

Or do you mean that somehow Unreal's FPlatformProcess::CreateProc() doesn't work correctly on macOS?

Asking genuinly since I haven't had the opportunity to check myslef the plugin on Mac (yet)

@aTanguay
Copy link

aTanguay commented May 1, 2023

Any movement on a Mac version? We're really hoping for one. Not a programmer, but I'd love to help getting a version going.

@SRombauts
Copy link
Owner

Hello @aTanguay, would you be able to compile the plugin yourself as part as your game project, or do you need a binary version?
What would help the most in order would be:

  1. If you can built it yourself, test and report here with the logs on what isn't working
  2. Or create a support ticket to help us deduce the importance of this, raise priority

@aTanguay
Copy link

aTanguay commented May 1, 2023

Thanks...I need a binary version. I'm a technical director for UE projects, but not a programmer. We're hoping to use Plastic on our project, but we have Macs in our mix.

@SRombauts
Copy link
Owner

Ok, noted! I am currently out for the week.
Would you be able to create a support ticket with the few useful info, most notably the Engine version you use, and perhaps the number of expected users on MacOS?
You can find various support links and email the team, but the most up to date form is https://support.unity.com/hc/en-us/requests/new

@aTanguay
Copy link

aTanguay commented May 1, 2023

Will do! Thanks for your support. We'll see what we can do on our end too. Maybe one of our devs can see what might be involved.

@SRombautsU
Copy link
Collaborator

Hey, checking back on the topic before I try to dig in.
Did you ever get someone to try to fix it?

@SRombauts SRombauts added this to the 1.11.0 milestone May 28, 2024
@SRombauts SRombauts changed the title Mac support missing current working folder Mac support: This process cannot access the file because it is being used by another process Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants