Search Issue Tracker

Won't Fix

Votes

0

Found in

2017.4.6f1

Issue ID

1073582

Regression

No

Unity Crashes on UnityEngine.Object:Internal_InstantiateSingle_Injected(Object, Vector3&, Quaternion&)

Scripting

-

How to reproduce:
1. Download and open my attached project "BugProject.zip"
2. In the Project window find the folder "scene0" and open "menu" Scene
3. Play the Scene and in the Scene window press on "load after saving" button
-- crash occurs --

Reproducible with: 2017.4.14f1, 2018.1.9f2, 2018.2.14f1, 2018.3.0b7, 2019.1.0a6

First three lines of the stack trace:
UnityEngine.Object:Internal_InstantiateSingle_Injected(Object, Vector3&, Quaternion&)
UnityEngine.Object:Internal_InstantiateSingle(Object, Vector3, Quaternion)
UnityEngine.Object:Instantiate(Object, Vector3, Quaternion)

Note: You'll notice the script called "GameData". It looks like that when commenting the line 103:
GameObject go = Instantiate(prefab, new Vector3(inf.x, inf.y, inf.z), Quaternion.identity) as GameObject;
The project does not crash anymore

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.