Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

[BUG] Editor error - InvalidCastException

Discussion in 'Project Tiny' started by andrewmil, Jan 12, 2019.

  1. andrewmil

    andrewmil

    Joined:
    Dec 30, 2018
    Posts:
    10
    I don't know how reproduce it.
    Sometimes when I try change uint32 value in an entity with simple component, the unity editor starts infinitely posting exception error to the console window. And the component disappears.

    Code (CSharp):
    1. nvalidCastException: Specified cast is not valid.
    2. System.Nullable`1[T].Unbox (System.Object o) (at <ac823e2bb42b41bda67924a45a0173c3>:0)
    3. Unity.Tiny.TinyObject+PropertiesContainer+StructValueFieldProperty`1[TValue].MakeRef (Unity.Properties.StructValueClassProperty`2+ByRef[TContainer,TValue] byRef, Unity.Properties.StructValueClassProperty`2[TContainer,TValue] property, Unity.Tiny.TinyObject+PropertiesContainer container, Unity.Properties.IPropertyVisitor visitor) (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Runtime/Runtime/Data/TinyObjectProperties.cs:410)
    4. Unity.Properties.StructValueClassProperty`2[TContainer,TValue].Accept (TContainer container, Unity.Properties.IPropertyVisitor visitor) (at Library/PackageCache/com.unity.properties@0.4.0-preview/Unity.Properties/Value/Impl/ValuePropertyImpl.cs:158)
    5. Unity.Properties.PropertyBag`1[TProperty].Visit[TContainer] (TContainer container, Unity.Properties.IPropertyVisitor visitor) (at Library/PackageCache/com.unity.properties@0.4.0-preview/Unity.Properties/PropertyBag.cs:89)
    6. Unity.Properties.PropertyContainer.Visit[TContainer] (TContainer container, Unity.Properties.IPropertyVisitor visitor) (at Library/PackageCache/com.unity.properties@0.4.0-preview/Unity.Properties/PropertyContainerVisit.cs:20)
    7. Unity.Properties.ClassValueClassProperty`2[TContainer,TValue].Accept (TContainer container, Unity.Properties.IPropertyVisitor visitor) (at Library/PackageCache/com.unity.properties@0.4.0-preview/Unity.Properties/Value/Impl/ValuePropertyImpl.cs:118)
    8. Unity.Properties.ClassPropertyBag`1[TContainer].Visit (TContainer container, Unity.Properties.IPropertyVisitor visitor) (at Library/PackageCache/com.unity.properties@0.4.0-preview/Unity.Properties/PropertyBag.cs:168)
    9. Unity.Properties.PropertyContainer.Visit[TContainer] (TContainer container, Unity.Properties.IPropertyVisitor visitor) (at Library/PackageCache/com.unity.properties@0.4.0-preview/Unity.Properties/PropertyContainerVisit.cs:16)
    10. Unity.Properties.ClassListClassProperty`2[TContainer,TItem].Accept (TContainer container, Unity.Properties.IPropertyVisitor visitor) (at Library/PackageCache/com.unity.properties@0.4.0-preview/Unity.Properties/List/Impl/ListPropertyImpl.cs:202)
    11. Unity.Properties.ListClassPropertyBase`2[TContainer,TItem].Accept (Unity.Properties.IPropertyContainer container, Unity.Properties.IPropertyVisitor visitor) (at Library/PackageCache/com.unity.properties@0.4.0-preview/Unity.Properties/List/ListProperty.cs:72)
    12. Unity.Properties.PropertyBag`1[TProperty].Visit[TContainer] (TContainer container, Unity.Properties.IPropertyVisitor visitor) (at Library/PackageCache/com.unity.properties@0.4.0-preview/Unity.Properties/PropertyBag.cs:94)
    13. Unity.Properties.PropertyContainer.Visit[TContainer] (TContainer container, Unity.Properties.IPropertyVisitor visitor) (at Library/PackageCache/com.unity.properties@0.4.0-preview/Unity.Properties/PropertyContainerVisit.cs:20)
    14. Unity.Properties.Serialization.BinaryPropertyVisitor.WriteContainer[TContainer] (TContainer container) (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Runtime/Unity.Properties.Serialization/Binary/BinaryPropertyVisitor.cs:37)
    15. Unity.Properties.Serialization.BinaryPropertyContainerWriter.Write[TContainer] (System.IO.Stream stream, TContainer container, Unity.Properties.Serialization.BinaryPropertyVisitor visitor) (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Runtime/Unity.Properties.Serialization/Binary/BinaryPropertyContainerWriter.cs:18)
    16. Unity.Tiny.Serialization.Binary.BinaryBackEnd.Persist (System.IO.Stream output, System.Collections.Generic.IEnumerable`1[T] objects) (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Runtime/Runtime/Serialization/Binary/BinaryBackEnd.cs:54)
    17. Unity.Tiny.Serialization.Binary.BinaryBackEnd.Persist (System.IO.Stream output, Unity.Properties.IPropertyContainer[] objects) (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Runtime/Runtime/Serialization/Binary/BinaryBackEnd.cs:33)
    18. Unity.Tiny.Serialization.CommandStream.CommandBackEnd.Persist (System.IO.Stream output, System.Collections.Generic.IEnumerable`1[T] objects) (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Runtime/Runtime/Serialization/CommandStream/CommandBackEnd.cs:35)
    19. Unity.Tiny.Serialization.CommandStream.CommandBackEnd.Persist (System.IO.Stream output, Unity.Properties.IPropertyContainer[] objects) (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Runtime/Runtime/Serialization/CommandStream/CommandBackEnd.cs:16)
    20. Unity.Tiny.TinyRegistryObjectBase+CommandMemento..ctor (Unity.Tiny.TinyRegistryObjectBase obj) (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Runtime/Runtime/Core/TinyRegistryObjectBase.cs:76)
    21. Unity.Tiny.TinyRegistryObjectBase.Save () (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Runtime/Runtime/Core/TinyRegistryObjectBase.cs:105)
    22. Unity.Tiny.TinyCaretaker.Update (System.Collections.Generic.IReadOnlyList`1[T] objects) (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Runtime/Runtime/Core/TinyCaretaker.cs:135)
    23. Unity.Tiny.TinyCaretaker.Update () (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Runtime/Runtime/Core/TinyCaretaker.cs:80)
    24. Unity.Tiny.TinyUndoManager.Update () (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Editor/Context/TinyUndoManager.cs:346)
    25. Unity.Tiny.Bridge.EditorApplication.ProcessUpdates (System.Collections.Generic.List`1[T] list) (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Editor/InternalBridge/EditorApplication.cs:94)
    26. Unity.Tiny.Bridge.EditorApplication.Update () (at Library/PackageCache/com.unity.tiny@0.13.4-preview/Editor/InternalBridge/EditorApplication.cs:72)
    27. UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorApplication.cs:200)
     
  2. raymondyunity

    raymondyunity

    Unity Technologies

    Joined:
    Apr 30, 2018
    Posts:
    97
    Hey @andrewmillion

    Can you please report this with the bug reported in the Tiny menu or feel free to DM your tiny project to me.

    Thank You!