Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Real World on June 07, 2017, 04:57:13 AM

Title: Exception thrown from UIPanel.FillAllDrawCalls
Post by: Real World on June 07, 2017, 04:57:13 AM
I'm getting the following exception on iOS occasionally in my menus. It's showing up in large numbers on Unitys performance reporting tool

MESSAGE

ArgumentException: texture is null
STACK TRACE

UIDrawCall.Create (System.String name, .UIPanel pan, UnityEngine.Material mat, UnityEngine.Texture tex, UnityEngine.Shader shader)
UIPanel.FillAllDrawCalls ()
UIPanel.UpdateSelf ()
UIPanel.LateUpdate ()

Title: Re: Exception thrown from UIPanel.FillAllDrawCalls
Post by: ArenMook on June 10, 2017, 06:31:25 AM
Why is the texture null? Trace which widget it's coming from that has no texture. That said, not sure why this would be causing an issue regardless. NGUI doesn't require a texture. Are you doing scene switching when this happens?
Title: Re: Exception thrown from UIPanel.FillAllDrawCalls
Post by: Real World on June 22, 2017, 03:48:28 AM
It's going to be difficult to trace from a call stack alone.
Whenever I have seen this personally it has been when tapping an input box. The error only happens once though and the game appears to render normally. We're not doing scene switching at this point (or at all anywhere in the app)