Attribute error with null literal

babywka 3 years ago updated by squirtzMD 3 years ago 9 1 duplicate

after some changes, I, unfortunately, can't enter the state of state machine

Bolt Version:
1.4.1 and 1.4.2
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

Duplicates 1

Pending Review

Hm, seems like there's an issue with a null literal somewhere. I believe this is an easy fix on my end but I unfortunately don't think there's an easy workaround in the mean time. Can you try duplicating your state and entering the duplicate?

yea, did it, have copied the content of state to flow graph from previous commits and then tried to open it on newer commit, doesn't work

content of state

Pending Review

Hi Squirtz,

I'll have a look, this seems related to another 1.4 bug. Thanks for the report.

Glad that helps. I was looking for a download link for 1.3 as all my backup projects seem to automatically update to 1.4. Just want to revert so I can copy/paste everything to a fresh 1.4 object

Fixed in Next Version

Hi babywka,

So from what I understand, it seems that you had a literal for a type that failed to deserialize (maybe it was renamed or deleted). This is what would cause the issue, from stack trace analysis.

I'll add a safeguard to prevent this in 1.4.3.

Can confirm this is related to the other issue that will be fixed in v.1.4.3. Merging!

Since the update it seems I have a problem with a new graph being grayed out that wasn't before, I'll attach the error and the asset again:


MissingMemberException: Failed to find reflected member 'enter' on 'ScalarMultiply':
Ludiq.MemberMetadata.Reflect (Boolean throwOnFail) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Editor/Meta/MemberMetadata.cs:93)
Ludiq.MemberMetadata..ctor (System.String name, BindingFlags bindingFlags, Ludiq.Metadata parent) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Editor/Meta/MemberMetadata.cs:19)
Ludiq.Metadata+DigMember.<.ctor>b__0_0 (Ludiq.Metadata parent) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Editor/Meta/Metadata.cs:1321)
Ludiq.Metadata.Dig[String,MemberMetadata] (System.String subpath, System.Func`2 constructor, Boolean createInPrefab, Ludiq.Metadata prefabInstance) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Editor/Meta/Metadata.cs:592)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:291)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:284)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:251)