Search Issue Tracker
Duplicate
Votes
3
Found in
5.4.0p4
Issue ID
828408
Regression
Yes
Active child of disabled parent crashes editor when creating new scene
How to reproduce:
1. Open user attached project
2. Open scene 'ISSUE'
3. From hierarchy, expand 'policeCar01_Gewicht2050'
Notice 'BlinkerGroup' is active (lightly colored) even though the parent is deactivated
4. Create new scene (CTRL + N). Unity crashes
Expected results: Child object disabled when parent object is disabled
Actual result: One of the child objects is enabled and causes a crash when creating a new scene
Workaround: disable and enable 'BlinkerGroup'. This makes it inactive because parent object is deactivated. Reloading the scene reenables the 'BlinkerGroup'.
Reproduced on: 5.4.0f3. 5.4.0p4, 5.4.1f1.
Not reproduced on: 5.3.6p4, 5.5.0b3
Comments (2)
-
Linkupdated
Aug 10, 2018 05:03
Wow, even if your script if one year old it saved us. We had that crash since like 5 months and every time we needed to start unity we had to check and uncheck every root object in our scene or it would result in a unity crash even on 2018.2.0f2. But this script once updated work and fixed the scene.
Thanks!
-
sarahnorthway
Jul 09, 2017 20:35
I wrote an editor script to check for invalid enabled children and fix them on scene load, on play, and every minute. Might be overkill as I've never seen the bug show up except when loading a scene, but it works. https://pastebin.com/HK6jXaRF
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
- Standalone Profiler Targets another Project if a Standalone Profiler was launched in it before when switching between Edit or Play Mode Targets
- Crash on ForwardRenderLoopJob when opening a specific project
- [Android] Memory leak and eventual crash on Snapdragon 8 Gen 1+ devices when a Clear Pass is executed after Framebuffer Fetch
- PhysicsRaycaster ray length is incorrect when casting from rotated Camera
- Crash on EnumerateDisabledKeywordsInVariantsArray or UNITY_XXH32 when rapidly saving ShaderGraph or VFXGraph changes
This is a duplicate of issue #1051704