Search Issue Tracker
Fixed in 2017.1.X
Votes
0
Found in
5.6.0f3
Issue ID
897665
Regression
Yes
DestroyImmediate(RenderTexture) and creating and setting a new one in OnPreRender results in a crash
Steps to reproduce:
1. Create a new project
2. Import the attached script "TestScript.cs"
3. Add the script to a camera
4. Enter Playmode
Result: crash
Reproduced on 5.6.0a1, 5.6.0f3, 2017.1.0a5
Not reproduced on 5.5.3f1
Notes:
-Does not appear to crash on Standalone build
-Workaround: use Destroy(RenderTexture) instead
The workaround in current project(with SpriteLightKit)
1. Deleting Library folder from your project
2. Go to your project Assets folder ---> SpriteLightKit folder
3. Open SpriteLightKit.cs and change UnityEngine.Object.DestroyImmediate( _texture ); to UnityEngine.Object.Destroy( _texture ); on line 149
Verified FIXED 2017.1.0b6, 5.6.1p2
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts which worked with TMP Font Asset Creator
Add comment