Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
2019.3
2019.3.12f1
2020.2
Issue ID
1244474
Regression
No
[ECS] Crash on Transform::GetPosition when accessing object's position in SystemBase.OnCreate method
Reproduction steps:
1. Open the attached "case_1244474.zip" project
2. Load the "SamepleScene"
3. Enter Play mode
-- Observe the crash
Reproducible with: 2019.3.13f1, 2020.1.0b8, 2020.2.0a11 (0.6.0-preview.24, 0.10.0-preview.6)
Couldn't test with Unity: 2018.4.21f1 (Entities Package does not exist)
Could not test with Entities package versions: 0.5.1-preview.11 and earlier package versions (SystemBase class was introduced in 0.6.0-preview.24)
Top 5 lines of the stack trace:
0x00007FF61D756C99 (Unity) Transform::GetPosition
0x00007FF61DD2D50F (Unity) Transform_CUSTOM_get_position_Injected
0x0000016ACADC8B06 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Transform:get_position_Injected (UnityEngine.Transform,UnityEngine.Vector3&)
0x0000016ACADC8A23 (Mono JIT Code) UnityEngine.Transform:get_position ()
0x0000016ACADC88F3 (Mono JIT Code) [D:\Downloads\case_1244474\Assets\CrashRepro.cs:23] CrashReproEntities:OnCreate ()
<...>
Comments (1)
-
Reticulatas
Nov 18, 2020 02:03
Will this be backported? I have a 100% crash on start with this very issue in 2019.4.x LTS not using ECS.
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
- Win64 CPU is set to None when applying changes to plugin where the meta has the serializedVersion 2
- Sprite Atlas textures from all included build scenes persist in Editor memory when building the Player
- Disabling all columns in Light Explorer throws “ArgumentException” error in the Console window
- Multiple errors are thrown in the console while using perforce when moving an asset using shortcuts
- PlayerPropertiesChanged event fires before Player Properties are applied
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a14