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
- [Linux] Crash on System.Runtime.InteropServices.Marshal:copy_from_unmanaged_fixed when accessing shared memory
- Misaligned text in Preferences window > 2D > Animation, Asperite and Sprite Editor preferences
- Unable to Install ZivaRT Player deprecated package
- Inconsistent Label Popup UI in Package Manager
- All active Audio Sources play their Clips when the "Play On Awake" checkbox is enabled and Scene view Audio is unmuted
This is a duplicate of issue #1051704