tolua icon indicating copy to clipboard operation
tolua copied to clipboard

WebGL 报错 ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds

Open ripwu opened this issue 3 years ago • 1 comments

ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds
Parameter name: destinationArray
  at System.Array.Copy (System.Array sourceArray, System.Int32 sourceIndex, System.Array destinationArray, System.Int32 destinationIndex, System.Int32 length) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Collections.Generic.List`1[T].set_Capacity (System.Int32 value) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Collections.Generic.List`1[T].EnsureCapacity (System.Int32 min) [0x00000] in <00000000000000000000000000000000>:0 
  at System.Collections.Generic.List`1[T].AddWithResize (T item) [0x00000] in <00000000000000000000000000000000>:0 
  at LuaInterface.LuaState.CollectRef (System.Int32 reference, System.String name, System.Boolean isGCThread) [0x00000] in <00000000000000000000000000000000>:0 
  at LuaInterface.LuaBaseRef.Dispose (System.Boolean disposeManagedResources) [0x00000] in <00000000000000000000000000000000>:0 
  at LuaInterface.LuaBaseRef.Finalize () [0x00000] in <00000000000000000000000000000000>:0 
  at XXXXXX.Update () [0x00000] in <00000000000000000000000000000000>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.<>c:<RegisterUECatcher>b__0_0(Object, UnhandledExceptionEventArgs)
System.UnhandledExceptionEventHandler:Invoke(Object, UnhandledExceptionEventArgs)

分析在隔壁 https://github.com/Tencent/xLua/issues/741#issuecomment-1384855454 有爱自取

ripwu avatar Jan 18 '23 03:01 ripwu

感谢大佬

cuddje avatar Aug 22 '23 09:08 cuddje