Search Issue Tracker

Fixed in 2017.1.X

Votes

0

Found in

5.6.0f2

Issue ID

904408

Regression

Yes

typeinfo for EditorExtension crash when destroying RenderTexture using Destroy.Immediate

Camera

-

To reproduce:
1. Open attached Unity project "SpriteLightKit-master"
2. Click on SpriteLightKitDemo in Assets folder
3. Click on Either "SpriteLightKitScene" or "SpriteLightKitShadowScene"

Expected result: Scene should open without any errors or crashes
Actual result: Unity crashes instantly after clicking on either of the scenes

Regression first introduced in: 5.5.3p1
Reproduced on: 5.6.0f1, 5.6.0f3. 5.6.0p2, 2017.1.0b1
Not reproduced on: 5.4.0f3, 5.5.0f3, 5.5.3p1

Note: In script file "SpriteLightKit.cs" commenting out line 149 "UnityEngine.Object.DestroyImmediate( _texture );" prevents Unity from crashing

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.