Author Topic: Exception thrown from UIPanel.FillAllDrawCalls  (Read 5236 times)

Real World

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 15
    • View Profile
Exception thrown from UIPanel.FillAllDrawCalls
« 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 ()


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Exception thrown from UIPanel.FillAllDrawCalls
« Reply #1 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?

Real World

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: Exception thrown from UIPanel.FillAllDrawCalls
« Reply #2 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)