
0
Need More Information
Undo can cause class to break until gameobject reselected
Sometimes, when undoing, the graph can vanish (not always) and the inspector changes to this:
Console say:
Inspector block accessor mismatch.
Started GunCam (BoltComponent) [WeaponsAll (BoltClass)].trait.f79bc6e6-0a92-4436-ba71-b6f98d1c6c45, ended GunCam (BoltComponent) [WeaponsAll (BoltClass)].
UnityEngine.Debug:LogWarning(Object)
Ludiq.Inspector:EndBlock(Accessor) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:794)
Ludiq.Inspector:EndBlock() (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:779)
Ludiq.Inspector:DrawControl(Rect) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:458)
Ludiq.Inspector:DrawControlLayout(Single) (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Inspector.cs:858)
Ludiq.Persistent:OnGUI() (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/Root/LudiqRootObjectEditor.cs:48)
Ludiq.PersistentRootEditorWrapper:OnInspectorGUI() (at Assets/Ludiq/Ludiq.Core/Editor/Inspection/PersistentRootEditorWrapper.cs:33)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()
Reselecting the object fixes it. I also found a class stopped working properly until Unity was restarted.
PS: There has still been no permanent loss of any graphs since the Undo Bug™ was fixed.
Bolt Version:
2.0.0a10
Unity Version:
2019.3.6f1
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Customer support service by UserEcho
Hi Elvishish,
Thanks for the report. Unfortunately, Bolt's own error recovery code here is preventing us from seeing what the root cause is.
You can disable the error recovery by enabling "Developer Mode" in Project Settings > Ludiq Core. Then, you'll get the real error thrown in the console. Then, try your reproduction again and paste the full stack trace.
Please also give me a step-by-step instruction of how to trigger this on a clean project.
I'll look into maybe removing that error recovery in the future, as it makes bug reports harder to debug.
I'll try that. Undo is just still flakey, I did some undoing during Play mode, and some things broke until restart. Really random seeming stuuff:
Here's one error:
(Not sure how helpful that last set of info is) but I get this a lot with undo, I still can't undo really since it pretty much always breaks, but at least nothing dies forever anymore.