tolua
tolua copied to clipboard
WebGL 报错 ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds
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 有爱自取
感谢大佬