Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: shokinhan on September 08, 2013, 05:17:42 AM

Title: UIPanel exception
Post by: shokinhan on September 08, 2013, 05:17:42 AM
When game run a long time , the panel would make excetions as
"
System.Array.CopyTo (System.Array array, Int32 index)
BetterList`1[UnityEngine.Color32].AllocateMore ()
BetterList`1[UnityEngine.Color32].Add (Color32 item)
UIGeometry.WriteToBuffers (.BetterList`1 v, .BetterList`1 u, .BetterList`1 c, .BetterList`1 n, .BetterList`1 t)
UIWidget.WriteToBuffers (.BetterList`1 v, .BetterList`1 u, .BetterList`1 c, .BetterList`1 n, .BetterList`1 t)
UIPanel.Fill (UnityEngine.Material mat)
UIPanel.LateUpdate () TIME = 8556080
"
Wheather the go has too many  uiwidgets ?


Title: Re: UIPanel exception
Post by: ArenMook on September 09, 2013, 01:08:21 AM
Sounds like you've ran out of memory on your device. The location of where it throws an exception is just a coincidence.
Title: Re: UIPanel exception
Post by: shokinhan on September 09, 2013, 02:11:30 AM
Some gameobject links too many UIwidget?


Title: Re: UIPanel exception
Post by: ENAY on September 10, 2013, 04:40:37 AM
There is indeed a limit to how many you can have. In anything.

But by your own admission, after your game runs for a long time, the error comes up. Check your creation code as you probably have a memory leak somewhere.