Bug / Crash Random null error when editing cloth BP - Printable Version +- Obi Official Forum (https://obi.virtualmethodstudio.com/forum) +-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html) +--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html) +--- Thread: Bug / Crash Random null error when editing cloth BP (/thread-2873.html) Pages:
1
2
|
Random null error when editing cloth BP - Mmero - 18-04-2021 I can edit the cloth blueprint few times and after 5th or sometimes second it dissapears and gives null errors Code: NullReferenceException: Object reference not set to an instance of an object RE: Random null error when editing cloth BP - Mmero - 18-04-2021 One thing i can add is that after this point any new added blueprints dont work when editing. RE: Random null error when editing cloth BP - josemendez - 19-04-2021 (18-04-2021, 11:04 PM)Mmero Wrote: One thing i can add is that after this point any new added blueprints dont work when editing. Hi Mmero, Had another user report a similar issue on Unity 2020.2. What Unity version are you using? RE: Random null error when editing cloth BP - Mmero - 19-04-2021 (19-04-2021, 07:42 AM)josemendez Wrote: Hi Mmero, 2020.2.6f1 RE: Random null error when editing cloth BP - Mmero - 19-04-2021 Any idea how to resolve this issue? From my perspective i bought the asset that just doesnt work. Assetstore page doesnt say anything about "this asset doesnt work in versions 2020.1 and above" RE: Random null error when editing cloth BP - josemendez - 20-04-2021 Hi there, (19-04-2021, 08:32 PM)Mmero Wrote: Any idea how to resolve this issue?It has been reported only very recently, so still figuring it out. Judging from the stack trace, the culprit is a variable that should be initialized but it isn't. That variable is initialized when the editor gets its OnEnable() called, so it should *always* be initialized. Coupled with the fact that this only happens in 2020.2 and up, makes it look like a bug in Unity. I hope to have more details today. (19-04-2021, 08:32 PM)Mmero Wrote: From my perspective i bought the asset that just doesnt work. I'm fully aware of this, my apologies. The asset is supposed to work in 2020.2 just fine. Will investigate and provide a patch asap. RE: Random null error when editing cloth BP - josemendez - 20-04-2021 So far I've been unable to reproduce this. Tried 2020.2.6f1 and 2020.3.0 without success. The stack trace points to a NullRefException in this line: Code: currentProperty.OnSceneRepaint(); The only thing that can be null here is currentProperty. This grabs the first property in the properties list, initialized in the editor's OnEnable(): Code: properties.Add(new ObiBlueprintMass(this)); So as long as Unity is calling OnEnable() -as it should- there's literally no way currentProperty can be null. - You mentioned this happens 5 seconds or so after opening the blueprint editor, is this correct? - Can you share the mesh you're using to generate the blueprint? Also, can you try resetting Unity's window layout (Window->Layouts->Reset All Layouts)? 2020.X has a fair share of layout-related editor issues, some of them have affected us in the past. Just to make sure this isn't layout relayed. RE: Random null error when editing cloth BP - Mmero - 21-04-2021 I upgraded the unity version and the problem doesn't show up Now I'm having a problem with cloth properties but this is for another topic RE: Random null error when editing cloth BP - josemendez - 22-04-2021 One of those unsolved Unity mysteries . I'd actually like to get this to happen to me so that I can investigate and fully understand the issue, but this one is slippery! Glad you got it working though. Let me know if I can help in any way. RE: Random null error when editing cloth BP - sdpgames - 03-05-2021 Got the same (Unity 2019.4.22f1) found a working temporary fix: Look at the code added by // SDP tag ObiActorBluePrintEditor.cs [attachment=997] Selectable.cs (in Unity source code Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Selectable.cs) [attachment=998] [attachment=996] Can be useful if upgrading your Unity is not an option |