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

Prevent windows crash when generating Unity mapping files #344

Merged
merged 1 commit into from
Nov 17, 2020

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented Nov 16, 2020

Goal

Prevents a crash on Windows when generating Unity mapping files. The rootProjectDir was unnecessarily defined as a task input, which is hashed by Gradle for the purposes of knowing whether to cache the output or not. On Windows a file lock is taken out on this directory which prevents the hash, throwing an exception. Marking the property as internal instead means no exception is thrown.

Testing

Ran on a Windows machine and verified that the task completed without throwing an exception when using a local artefact.

It's worth noting that objdump appears to fail to generate SO files for libunity/libil2cpp, so this will require further investigation - but this fixes the immediate issue of crashing in the plugin.

@fractalwrench fractalwrench marked this pull request as ready for review November 16, 2020 14:48
@fractalwrench fractalwrench merged commit e130c76 into next Nov 17, 2020
@fractalwrench fractalwrench deleted the PLAT-5350/unity-windows branch November 17, 2020 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants