-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
AOT exception when running a game built with Unity 2021.3 IL2CPP #400
Comments
Unfortunately I'm not a game developer and don't have any experience with Unity, so I can't give you a lot of concrete guidance here. FlatSharp does try to emit a static I wish I could help more here since Unity devs seem to get lots of value out of FlatSharp. Are there any resources you could point me to to help reproduce the problem locally? If you do manage to figure out the correct annotations for Unity, I'm also happy to adjust the FlatSharp codegen to accommodate. |
No worries! Even if we can't come up with a solution to this, I hope this issue helps others in a similar situation as me. 😄
Steps to download the Unity Editor:
Steps to set up the test project:
Steps to open the test project with the Unity Editor:
Steps to make a build (and reproduce the issue):
The code in The FlatSharp generated code is in |
Thanks for this! I will try to work through this as I have some time over the next week or so. |
i use unity 2023.4.41f1 has the same .ExecutionEngineException: NotSupportAdjustorThunk this code maybe cut . |
@bmotamer / @yingnierxiao any success with getting FlatSharp to work with Unity. For us it seems to work fine when targetting Windows, but when targetting iOs or Android we are getting errors |
@njannink Try changing |
Hello 👋
I'm getting the following error on 7.2.3 when running a game targeting Linux or Android (potentially iOS too) built with Unity 2021.3, IL2CPP as the scripting backend and IL2CPP Code Generation set to "Faster runtime":
So far I have tried:
generic-virtual-method-iterations
to 5, 100 and 1000.FlatSharp.Runtime
to link.xml.The current solutions I've found are:
Any help is greatly appreciated. 🙇 🙏
Related thread: https://forum.unity.com/threads/il2cpp-aot-exceptions-when-loading-subscenes-in-a-build.1198528/
The text was updated successfully, but these errors were encountered: