Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ripwu opened this issue Jan 18, 2023 · 1 comment

Comments

@ripwu
Copy link

ripwu commented Jan 18, 2023

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)

分析在隔壁 Tencent/xLua#741 (comment) 有爱自取

@cuddje
Copy link

cuddje commented Aug 22, 2023

感谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants