Strange Fatal Bug

bazzboyy1

New member
I've been recieving this error. It was crashing on play originally, then I tried deleting tasks one by one to see what was causing it. Eventually it would only crash when I unplay whilst in the game tab (it doesnt crash when you stop playing wwith the game tab closed strangely..).

Any idea what I've done wrong?

ArgumentException: Type cannot be null.
BehaviorDesigner.Runtime.SharedVariable`1[T].InitializePropertyMapping (BehaviorDesigner.Runtime.BehaviorSource behaviorSource) (at <00cb1070d60241ceb207182662d41ddd>:0)
BinaryDeserialization.BytesToSharedVariable (BehaviorDesigner.Runtime.FieldSerializationData fieldSerializationData, System.Collections.Generic.Dictionary`2[TKey,TValue] fieldIndexMap, System.Byte[] bytes, System.Int32 dataPosition, BehaviorDesigner.Runtime.IVariableSource variableSource, System.Boolean fromField, System.Int32 hashPrefix) (at <00cb1070d60241ceb207182662d41ddd>:0)
BinaryDeserialization.LoadField (BehaviorDesigner.Runtime.FieldSerializationData fieldSerializationData, System.Collections.Generic.Dictionary`2[TKey,TValue] fieldIndexMap, System.Type fieldType, System.String fieldName, System.Int32 hashPrefix, BehaviorDesigner.Runtime.IVariableSource variableSource, System.Object obj, System.Reflection.FieldInfo fieldInfo) (at <00cb1070d60241ceb207182662d41ddd>:0)
BinaryDeserialization.LoadFields (BehaviorDesigner.Runtime.FieldSerializationData fieldSerializationData, System.Collections.Generic.Dictionary`2[TKey,TValue] fieldIndexMap, System.Object obj, System.Int32 hashPrefix, BehaviorDesigner.Runtime.IVariableSource variableSource) (at <00cb1070d60241ceb207182662d41ddd>:0)
BinaryDeserialization.LoadTask (BehaviorDesigner.Runtime.TaskSerializationData taskSerializationData, BehaviorDesigner.Runtime.FieldSerializationData fieldSerializationData, System.Collections.Generic.List`1[BehaviorDesigner.Runtime.Tasks.Task]& taskList, BehaviorDesigner.Runtime.BehaviorSource& behaviorSource) (at <00cb1070d60241ceb207182662d41ddd>:0)
BinaryDeserialization.Load (BehaviorDesigner.Runtime.TaskSerializationData taskData, BehaviorDesigner.Runtime.BehaviorSource behaviorSource) (at <00cb1070d60241ceb207182662d41ddd>:0)
BehaviorDesigner.Runtime.BehaviorSource.CheckForSerialization (System.Boolean force, BehaviorDesigner.Runtime.BehaviorSource behaviorSource) (at <00cb1070d60241ceb207182662d41ddd>:0)
BehaviorDesigner.Runtime.Behavior.CheckForSerialization () (at <00cb1070d60241ceb207182662d41ddd>:0)
BehaviorDesigner.Runtime.Behavior.DrawTaskGizmos (System.Boolean selected) (at <00cb1070d60241ceb207182662d41ddd>:0)
BehaviorDesigner.Runtime.Behavior.OnDrawGizmos () (at <00cb1070d60241ceb207182662d41ddd>:0)
 

bazzboyy1

New member
Just tried removing all the behaviour tree components off my agents, saved the scene, reloaded unity and this happened Capture.PNG
 
Last edited:

Justin

Administrator
Staff member
That second bug looks like it's a deeper unity issue - I haven't seen a white screen like that before.

The first error looks like it is trying to assign a property mapping but that mapping is no longer available. I can add a better error message but for any property mappings that you've added make sure that component is available as is the property.
 

bazzboyy1

New member
Okay so I probably deleted a property that was being mapped? I definitely didnt remove the component.

I believe the 2nd issue is due to bugs in the editor stack which prevents the rest of the editor loading?

Anyway not sure how I'll fix, maybe Ill try opening the project in a different scene and fixing the property.

It would be nice if there was some way to be safeguarded from this error becuase it really breaks unity :eek:

Thanks for your help
 

Justin

Administrator
Staff member
If you reset your window layout it should clear all of the errors so you can open the editor again. I just looked at InitializePropertyMapping and there is some error checking built in so I'm not sure which line is causing the problem. Can you import the runtime source and tell me the line number that it is having trouble with?

 
Top