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 ()
<...>
-
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
- The Scene view flickers when moving around if there are visible Hair Shaders
- The gradient ShaderGraph is inverted when using the Perceptual blend mode
- Particle System allocates large amounts of memory when it is very far away from the origin of the Scene
- [Build Profile] [VisionOS/iOS/tvOS] - Build Player Library button is getting displayed depending on the selected build target
- EnsureRunningOnMainThread error in TessellationJob.ApplyInset
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a14