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 running in shared environment: UnauthorizedAccessException: Access to the path "<gamedata>/ML-Agents" is denied. #4911

Closed
pt2302 opened this issue Feb 5, 2021 · 4 comments
Assignees
Labels
bug Issue describes a potential bug in ml-agents.

Comments

@pt2302
Copy link

pt2302 commented Feb 5, 2021

It looks like this is caused by the Timer.cs code, which catches IOExceptions but not UnauthorizedAccessExceptions.

This happens when the file [gamedata]/ML-Agents/Timers/[GameName]_timers.json is owned by someone else.

@awjuliani awjuliani added the bug Issue describes a potential bug in ml-agents. label Feb 5, 2021
@awjuliani
Copy link
Contributor

Hi @pt2302

Just to clarify, you'd like the code to also catch the UnauthorizedAccessException exception and log the same warning.

@pt2302
Copy link
Author

pt2302 commented Feb 6, 2021

@awjuliani, thanks for the response!

Yes, exactly. Currently, the (uncaught) exception triggers a Unity.MLAgents.Academy.Dispose() call, which then leads to UnityEngine.Application.Internal_ApplicationQuit(), interrupting the training process.

@awjuliani awjuliani self-assigned this Feb 7, 2021
@awjuliani
Copy link
Contributor

Hi @pt2302

I've just merged a fix for this issue into master. #4921. It should make it into the next release. I will close the issue for now. Thanks again for bringing it to our attention.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue describes a potential bug in ml-agents.
Projects
None yet
Development

No branches or pull requests

2 participants