IL2CPP crash on launch
Describe the bug The IL2CPP version of builds is crashing shortly after launch and throwing an exception through EOSManager.GetoEOSPlatformInterface. The Mono version of builds work fine, but we cannot use that.
Specifically: Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
In my attempts to fix this, I have retroactively applied #361 to the 2.3.3 version by applying the same changes to the .tar plugin source, but to no avail. I have previously commented out the code within "OnSteamGUI" in EpicOnlineServicesConfigEditor.cs as that was producing a lot of errors, but since we are not using anything steam related in this case, should not cause any issues.
I was able to reproduce this issue in an empty project, and can upload that here to review if need be.
To Reproduce Steps to reproduce the behavior:
- Create empty project in 2020.3.48f1
- Install EOS plugin for unity 2.3.3
- Set to compile with IL2CPP
- Create build
- Launch build, observe crash.
Desktop (please complete the following information):
- OS: Windows x64
- Standalone Build
- Unity Version: 2020.3.48f1
- Plugin Version: 2.3.3
Additional context We are using 2.3.3 as it is the latest version compatible with Unity 2020.3.48f1. 3.0.0 onwards targets 2021 and uses a different c# version, which produced a lot of errors in the editor.
Hi @Vale-X, I will look into this issue today, but I am wondering whether we might be able to more quickly resolve the issue by making a more current version of the plugin work for you - understanding that the constraints are that it needs to be compatible with Unity 2020.3.48f1, an older version of C#, and be compatible only with IL2CPP. What version of C# are you targeting?
In the meantime, I will look into the issue at version 2.3.3.
Hi @paulhazen,
Creating a version of the latest which targets unity 2020.3 would be very helpful! I am however happy to work with 2.3.3 if there's too many incompatibilities - nearly 2 years of updates is a lot after all. I'll keep a close eye on this thread and provide whatever I can to help.
Unity 2020.3 uses language version c# 8.0, and the scripting runtime version is .NET 4.6 equivalent as specified in this unity doc.
Thank you!
We have received this issue and are working on a fix in a future release of the plugin. We have moved our support to EOSHelp. For future issues, please raise a private discussion here.