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

'Access violation writing location' crash in IL2CPP build #62

Open
Goti593 opened this issue Nov 19, 2021 · 1 comment
Open

'Access violation writing location' crash in IL2CPP build #62

Goti593 opened this issue Nov 19, 2021 · 1 comment

Comments

@Goti593
Copy link

Goti593 commented Nov 19, 2021

We are working on a game in Unity and are using the deformer plugin in certain parts of the game. As soon as an action that uses the plugin is triggered, the game crashes with an "Unhandled exception : access violation writing location" error. This happens only in IL2CPP builds. Mono builds work perfectly fine without any crashes. When I debug the crash.dmp file, the detailed error message that I get is "Unhandled exception at 0x00007FFC38D71003 (GameAssembly.dll) in crash.dmp: 0xC0000005: Access violation writing location 0x0000000000000000. occurred". The crash occurs in the "ResetNormalsJob - Execute" method. I am attaching the crash.dmp file and error log as well as screenshots of the call stack and crash location below.

CrashInfo.zip

deformVSScreenshot

deformCallStack

@keenanwoodall
Copy link
Owner

Hey so sorry for the delay - I hope you've been able to find a workaround!

From what I can tell, that seems like an issue with the IL2CPP compiler. I'm actually not sure if there's anything I can do on my end. There's a small chance the problem is with the burst compiler. To test, you could comment out the BurstCompile attribute on the ResetNormalsJob, but the job is so simple it suggests to me that the problem is external and warrants a bug report to Unity.

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

No branches or pull requests

2 participants