Anyone else getting these Randomly in the Editor?
I haven’t been able to figure out what causes it, just happens every now and then. Nothing is being destroyed.
I seem to get about 10 of these a day at random.
Anyone else getting these Randomly in the Editor?
I haven’t been able to figure out what causes it, just happens every now and then. Nothing is being destroyed.
I seem to get about 10 of these a day at random.
Yeah really frequently in beta 4. Not in previous betas. Even just totally new scene.
Oops, yeah, forgot to mention Beta 4.
Also seeing a lot of SerializedObject::ctor errors, mostly seem to be related to MeshFilterEditor, but not always…
Hi there! I am currently working on this bug and have found the source. I expect it should be gone by b7 or so.
Awesome
Thanks Adam! but shouldn’t you be making my game all physical and stuff? ![]()
Good to know it will be fixed soon. It’s been happening to me constantly.
yea hope it will be fixed in the next one, 5.6.0b6 still has it
Does the fix for this bug include the SerializedObject::ctor errors?
Currently after getting the “Destroying object “” is not allowed” error, the SerializedObject::ctor start piling up. To the point where I need to restart Unity every 20 mins.
It looks as if destroyed Editor objects are hanging around and invoking their constructors on reload. But the targets they pointed to don’t exist anymore. Not sure… The objects that the errors belong to are always different.
Cold you please submit a bug report for that? Might be a distinct problem.
I’ll try, very hard to determine what’s causing it.
FYI, looks as though this particular bug is in 5.6.0b7. Hopefully they get the fix in soon. Good luck Unity Devs!
5.6.0b7 still has it
Are you referring to these?
NullReferenceException: (null)
UnityEditor.SerializedObject…ctor (UnityEngine.Object[ ] objs, UnityEngine.Object context) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/SerializedPropertyBindings.gen.cs:87)
UnityEditor.Editor.GetSerializedObjectInternal () (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:175)
UnityEditor.Editor.get_serializedObject () (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:168)
UnityEditor.MaterialEditor.OnEnable () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/MaterialEditor.cs:1764)
I get them too, but they seem to be harmless so far. Both this and the Destroying object bug are still occurring on b7.
Yes, if you double click the warning and change the inspector mode to “debug” you’ll notice the target objects are usually different.
I’m on 5.5.0b7 and it still appears. Although it seems to do no harm yet. But there is one more thing, when I click on Game mode, there appears to be a weird distortion in image every single time it runs… I’m attaching the image…

FYI everyone, Unity said this bug won’t necessarily be gone in b7, see @LeonhardP 's post above. They said it “should be gone by b7 or so.”
“or so” is the key.
Please keep separate issues in separate threads (start a new thread for this). If you haven’t filed a bug report with a reproduction case yet, it would be great if you could do so and let me know the case #.
Hi again! Yes unfortunately this bug fix got bundled with another, more complicated one, which held up the review process a bit. If it doesn’t make rc1, it will definitely be fixed before the final release candidate for 5.6.0.