ListView SetDataSource locks main thread if missing DataBinder #261
haywirephoenix
started this conversation in
Bugs
Replies: 1 comment
-
The fix for this issue has been published in Nova v2.0.1! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue:
The editor started locking up on play.
To Reproduce:
Only when forcing the main thread to exit, you can see the error:
The Cause:
After tracing it back to ListView.SetDataSource, it turns out that somehow the ItemViews inside the prefabs has lost their Serialized Reference, reverting Visuals field back to "None (Unassigned)". (You can also cause the freeze by setting that to None.)
This is concerning because no classes or types on those ItemViews/Visuals were touched nor the prefabs edited prior.
Discussion:
Although Nova needs a tweak to circumvent the lockup, I can see that this could be a Unity problem. My inclination is to avoid using ItemViews altogether while SerializedReference is still in it's infancy. Is there a way to prevent those references from being lost again while still using ItemViews?
Unity 2022.3.5f1.0.15175
Microsoft Windows 11 Pro 10.0.22621 Build 22621
Beta Was this translation helpful? Give feedback.
All reactions