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

Package

-

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 ()
<...>

  1. Resolution Note (fix version 2020.2):

    Fixed in: 2020.2.0a14

Comments (1)

  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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.