sentry-unity
sentry-unity copied to clipboard
IL2CPP builds with Codegen.OptimizeSize break due to `FullySharedGeneric`
If we check this original issue reported here: Builds on Unity 2022.1 break with aliased package #691
This still happens on Unity 2021.3.10f1 The trick to reproduce the bug is create an android Build with these options:
PlayerSettings.SetIl2CppCompilerConfiguration(BuildTargetGroup.Android, Il2CppCompilerConfiguration.Debug);
EditorUserBuildSettings.il2CppCodeGeneration = UnityEditor.Build.Il2CppCodeGeneration.OptimizeSize;
Versions of Sentry used: 0.23.1 and also happens on 0.19.0 (I've tried upgrading to see if the issue was related to a particular version.
Hey @pmabres and thanks for raising this. I'll check it out.
I can't seem to reproduce the issue on an M1. On what platform are you building for Android?
Same thing, for iOS as well
I'm using Mac i9
I'm using MacBook pro with an Intel arch
On Fri, 7 Oct 2022, 03:49 VadymTykhoniuk, @.***> wrote:
I'm using Mac i9
— Reply to this email directly, view it on GitHub https://github.com/getsentry/sentry-unity/issues/1006#issuecomment-1270196707, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABF5C3IHBZU5555PEUHBYWLWB3RHXANCNFSM6AAAAAAQ6E2XEE . You are receiving this because you were mentioned.Message ID: @.***>
I'll see if I can push. sample repo later
Use just empty project with imported sentry with samples
Thanks, @pmabres, and @VadymTykhoniuk. I can reproduce the issue and I reported it with Unity. I'll update here once we know more.
Thanks @bitsandfoxes ! do you happen to have the tracking id for the issue?
@pmabres not yet. It did not pass through their bug-report verification yet.
@bitsandfoxes sorry to bother, do you have any updates from the Unity team regarding this issue?
@pmabres no worries at all! Sorry to not have any better news but the report (with a repro) got rejected initially with "cannot reproduce" so I provided another one and that one seems to be stuck in eternal open
.
Thanks for reminding me. I'll give it another go.
@pmabres an update on the Unity issue tracker
I'm having the same issue on 2021.3.16f1. I can't upgrade to 2022 and need the full generic sharing mechanism which is enabled by "Faster (smaller) builds". Unfortunately it means I likely have to exclude Sentry from the build during the launch of the app.
Good news! Looks like it's in progress and a fix is on it's way: https://issuetracker.unity3d.com/issues/il2cpp-build-fails-when-using-an-assembly-renamed-via-sentrys-assembly-alias-tool
Thanks @bitsandfoxes for taking the time to report it!
Good news, seems to have been fixed on: 2021.3.21f1, 2022.1.12f1, 2022.2.0b4, 2023.1.0a5
Good news, seems to have been fixed on: 2021.3.21f1, 2022.1.12f1, 2022.2.0b4, 2023.1.0a5
🎉 All that's left to do is wait for the update!
Closing this since it's fixed (tm).