NovaEngine PostUpdate failed with System.NullReferenceException #330
Drunk3n-P1nky
started this conversation in
Bugs
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Unity Version: 2022.3.4f1
Target Platform: Android
Can be reproduced on Android. Editor is fine.
My setup:
I have TextBlock which represents a dialogue box. I assign strings to "Text" field. Material is always the same. The 1st string assignment works fine, the 2nd string assignment works fine and the 3rd fails. After app reboot everything works as expected. The bug cannot be reproduced anymore as I can tell. I assume the only reason this happens is TextMaterials hashmap in MaterialCache.cs on line 111 successfully finds material which is null. Further on it ends up with NullReferenceException because of attempt of retrieving shader field from null. I guess material either gets destroyed at some point or reference is null initially. I'll try to monitor the build to find some more useful information I can provide you with.
Beta Was this translation helpful? Give feedback.
All reactions