Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.24f1
Issue ID
UUM-45308
Regression
No
IL2CPP Player crashes due to trying to use a generic method as targetting Game.EntityOwnershipComponent instead of Unity.Jobs.Handle
1. What happened?
The build crashes due to trying to use a generic method as targetting Game.EntityOwnershipComponent, when it shoudl target Unity.Jobs.Handle instead.
2. How can we reproduce it using the example you attached?
Obtain the user project from [~jordi.caballol] or [~seb.vasquez] (it is about 50GB).
Install Steam locally, and log into Steam ([~seb.vasquez] can provide a Unity support login for Steam if you don't have one). This prevents the Steam error (red screen) mentioned in the comments.
Build the play with their custom build menu: Framework > Build > Configuration Manager... Make sure only the configuration you need is selected ({*}TED_SteamWindows64_IL2CPP_Debug{*}) and then click the Build Configuration(s) button.
!image.png!
Run the built player. Move through the prompts to start loading the first level, and the game will crash.
The call stack is:
{code:java}
> GameAssembly.dll!UnsafeUtility_WriteArrayElement_TisMonsterSpawnComponent_t51284FF182B47F92506334FACFDF275C78E4BBE2_mFF2344DDB0F15E3D0093973D9BD5B938592BE1B5_gshared(void * ___0_destination, int ___1_index, MonsterSpawnComponent_t51284FF182B47F92506334FACFDF275C78E4BBE2 ___2_value, const MethodInfo * method) Line 47754 C++
GameAssembly.dll!UnsafeList_1_Add_m2C9A6AF8B51738278D43A0A59CB9AC182D9C2AB2_gshared(UnsafeList_1_tB334625C5252971FB79E3456D8482F63746A1A79 * __this, JobHandle_t5DF5F99902FED3C801A81C05205CEA6CE039EF08 * ___0_value, const MethodInfo * method) Line 29919 C++
[Inline Frame] GameAssembly.dll!UnsafeList_1_Add_m2C9A6AF8B51738278D43A0A59CB9AC182D9C2AB2(UnsafeList_1_tB334625C5252971FB79E3456D8482F63746A1A79 *) Line 13525 C++
GameAssembly.dll!NativeList_1_Add_m5EACEE35BD1F746E067CA44A7973C60832CA060D_gshared(NativeList_1_tD1E9B2A6BF457A57B586ABF911481925F9DB2053 * __this, JobHandle_t5DF5F99902FED3C801A81C05205CEA6CE039EF08 * ___0_value, const MethodInfo * method) Line 32516 C++
[Inline Frame] GameAssembly.dll!NativeList_1_Add_m5EACEE35BD1F746E067CA44A7973C60832CA060D(NativeList_1_tD1E9B2A6BF457A57B586ABF911481925F9DB2053 *) Line 8337 C++
GameAssembly.dll!BuildContainer_Schedule_m333668FE8745AE3501ABD0D9C4420867847A11EA(BuildContainer_t7DD938F6E5C95D4BEED23A4E29E90696C7BAC553 * __this, Settings_t974155E79E00233709D26CC8A127D35994EA9209 * * ___0_settings, JobHandle_t5DF5F99902FED3C801A81C05205CEA6CE039EF08 ___1_dependency, const MethodInfo * method) Line 20271 C++
GameAssembly.dll!BuilderContainer_Schedule_m993B36BB79959D8FD83A7ACDF553DEED46D75535(BuilderContainer_t50EE0052ADEC66638D894730E75E73AC1ED9D39C * __this, NativeArray_1_tDF193790761EDB0DA5285D2C3611196207F48EE8 * ___0_blockers, bool ___1_includeDynamicBlockers, Settings_t974155E79E00233709D26CC8A127D35994EA9209 * ___2_settings, JobHandle_t5DF5F99902FED3C801A81C05205CEA6CE039EF08 ___3_dependency, const MethodInfo * method) Line 17343 C++
GameAssembly.dll!RedDistanceFieldBlockerKdTree_ScheduleBuilding_mC077FB53E91435FB5A11DE61A151AC8264EC8AD8(RedDistanceFieldBlockerKdTree_t39140061A96E9D6DC30FB7150F4874A10C20847F * __this, DistanceFieldBlockerU5BU5D_tFEF05619783DCFFAA62E61AB35D8E44C52031973 * ___0_blockers, int ___1_blockerCount, const MethodInfo * method) Line 15414 C++
GameAssembly.dll!RedWorld_ScheduleJobs_m09BAE4D5A4A5B5487E17DE4C06672E6E3B47E5B8(RedWorld_t06A71AE6A30CCFB0EB0524E4552D29F4FA050D52 * __this, RedRenderGraph_tA762A9276F6418788B7C3EBE5A656648F3529A12 * ___0_graph, const MethodInfo * method) Line 10037 C++
[Inline Frame] GameAssembly.dll!Callback_Invoke_mFAAB4D103CF219CE8BDD78F8BEAA6938730D0E37_inline(Callback_t4DF0D2BCDC15E94917F9638B96BC1118FEA13124 *) Line 35619 C++
GameAssembly.dll!RedRenderNode_RequestScheduleJobs_m665543D833A90E76BB263EE9B07D93A829504167(RedRenderNode_t917E963FB4B69AA757F3C48F945C97A4240126FC * __this, RedRenderGraph_tA762A9276F6418788B7C3EBE5A656648F3529A12 * ___0_graph, const MethodInfo * method) Line 27052 C++
GameAssembly.dll!RedRenderGraph_Update_mDC5CFD0EFF2B68B6A1E5B7FBD677CEAA7587A9B6(RedRenderGraph_tA762A9276F6418788B7C3EBE5A656648F3529A12 * __this, const MethodInfo * method) Line 26593 C++
[Inline Frame] GameAssembly.dll!UpdateFunction_Invoke_m9BCEE4E5BEE924EB804DA64314B78D0E831C179B_inline(UpdateFunction_t1C48B7EECBE47AC123A9D9D7D9D2A9EE951C56C4 *) Line 46609 C++
GameAssembly.dll!PlayerLoopDelegate_Delegate_mE5788F7B3F72A3A8035D73226C7A9D97E0C949C1(PlayerLoopDelegate_tC78F3CE44B4F2CEAA2F7B6865722CA4CA7713CE7 * __this, const MethodInfo * method) Line 22074 C++
GameAssembly.dll!il2cpp::vm::Runtime::InvokeWithThrow(const MethodInfo * method, void * obj, void * * params) Line 579 C++
GameAssembly.dll!il2cpp::vm::Runtime::Invoke(const MethodInfo * method, void * obj, void * * params, Il2CppException * * exc) Line 564 C++
UnityPlayer.dll!scripting_method_invoke(class ScriptingMethodPtr,class ScriptingObjectPtr,struct ScriptingArguments &,class ScriptingExceptionPtr *,bool) Unknown
UnityPlayer.dll!ScriptingInvocation::Invoke(class ScriptingExceptionPtr *,bool) Unknown
UnityPlayer.dll!ExecutePlayerLoop(struct NativePlayerLoopSystem *) Unknown
UnityPlayer.dll!ExecutePlayerLoop(struct NativePlayerLoopSystem *) Unknown
UnityPlayer.dll!PlayerLoop(void) Unknown
UnityPlayer.dll!PerformMainLoop() Unknown
UnityPlayer.dll!MainMessageLoop() Unknown
UnityPlayer.dll!UnityMainImpl(struct HINSTANCE__ *,struct HINSTANCE__ *,wchar_t *,int) Unknown
UnityPlayer.dll!UnityMain() Unknown
ENDLESS™ Dungeon.exe!__scrt_common_main_seh() Unknown
kernel32.dll!00007ff95ec6257d() Unknown
ntdll.dll!00007ff96016aa68() Unknown
{code}
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Resolution Note:
This bug seems unrelated to IL2CPP. It may be a memory corruption elsewhere though.