Unity Issue Tracker - Excessive IL2CPP Stripping of [RuntimeInitializeOnLoadMethod] method with [Preserve] causes crash on runtime
Closed
UUM-1908
Excessive IL2CPP Stripping of [RuntimeInitializeOnLoadMethod] method with [Preserve] causes crash on runtime
Unity: Scripting
Backport
Won't Fix
2020.3.X
Not planning to backport to 2020.3 currently
How to reproduce:
1. Open the attached "UWP_StrippingExcessive.zip" project
2. Make sure that "Script changes while playing" has "Stop Playing and Recompile" option chosen in Preferences Settings
3. Build to UWP
4. Open the Visual Studio Solution file, located in the built project's directory
5. Build the Solution on Local Machine with Debug and x64 options
Expected results: The build does not crash when doing excessive IL2CPP stripping of [RuntimeInitializeOnLoadMethod] method with [Preserve]
Actual results: The build crashes when doing excessive IL2CPP stripping of [RuntimeInitializeOnLoadMethod] method with [Preserve]