Skip to content

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

@ripwu

Description

@ripwu
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) 有爱自取

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions