Search Issue Tracker
Fixed in 2017.1.0f3
Fixed in 5.6.X, 2017.1.X
Votes
57
Found in
5.6.0f3
Issue ID
897994
Regression
Yes
Enabling Mesh Renderer during rendering causes error in Console tab
Steps to reproduce:
1) Download attached project 'MeshRendererError.zip' and open in Unity
2) Open scene 'ReproScene' and press Play
3) Click on IndividualSoldier gameObject in Hierarchy tab
4) Click on Scene view and press F to focus on that gameObject
5) Check the Console tab and you will see that each frame error will be thrown :
Enabling or adding a Renderer during rendering; this is not allowed. Renderer '2WK_heavy_infantry_06_combat_walk_StaticFromSkinned' will not be added.
UnityEditor.DockArea:OnGUI()
Expected result: No errors in Console tab
Actual result: Error 'Enabling or adding a Renderer during rendering; this is not allowed. Renderer '2WK_heavy_infantry_06_combat_walk_StaticFromSkinned' will not be added.
UnityEditor.DockArea:OnGUI()' when object is visible on the Scene or Game views
Reproduced with:
5.6.0b8, 5.6.0f3, 2017.1.0b1
Not reproduced with:
5.5.3p1, 5.6.0b7
Regression from:
5.6.0b8
-----------------------------
Fixed in: 5.6.2p1, 2017.1.0f1
Comments (13)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
DroidifyDevs
Apr 19, 2017 15:10
I can't upgrade my project from 5.5 to 5.6 because of this. I contacted Unity QA via the bug report tool and they haven't been able to give me any workaround for the issue.
davenirline
Apr 19, 2017 14:46
^ Me too. Also have an animation that activates an object in one of its key frame. Any workaround to this?
playemgames
Apr 19, 2017 10:01
This happens to me using 5.6.0p1 while enabling renderers through the animator in an animation.