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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a14