Search Issue Tracker

Fixed in 2019.1

Fixed in 2018.3

Votes

0

Found in

2017.4.1f1

Issue ID

1069988

Regression

No

Unity crashes on Transform::SetLocalPosition when entering Play Mode

Scripting

-

Unity crashes on Transform::SetLocalPosition when entering Play Mode after adding [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] to a private static void Main() in GameController.cs

How to reproduce:
1. Open the user's attached project
2. Enter Play Mode

Expected result: Editor keeps working
Actual result: Crash occurs

Reproducible with - 2017.4.9f1, 2018.1.9f1, 2018.2.3f1, 2018.3.0a8
Can't reproduce on earlier versions due to compiler errors

Fixed in 2018.3.0b12, 2019.1.0a10

Last 5 lines of stack trace:
0x00000001408D43A7 (Unity) Transform::SetLocalPosition
0x00000000358384F5 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Transform:INTERNAL_set_localPosition (UnityEngine.Vector3&)
0x000000003583838B (Mono JIT Code) [C:\buildslave\unity\build\artifacts\generated\common\runtime\TransformBindings.gen.cs:42] UnityEngine.Transform:set_localPosition (UnityEngine.Vector3)
0x00000000358378C7 (Mono JIT Code) [C:\Develop\Droplet\hptm\HPTM\Assets\Scripts\UIController.cs:39] HPTM.UIController:Init ()

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.