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
- Global Volume visual details are blurred when Tonemapping mode is set to any other than 'ACES'
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
This is a duplicate of issue #1051704