Search Unity

Help Wanted Fragmentation Pipeline crash editor with "Attempt to access invalid address"

Discussion in 'Unity Transport' started by BobFlame, May 16, 2021.

  1. BobFlame

    BobFlame

    Joined:
    Nov 12, 2018
    Posts:
    69
    There is a issue with fragmentation pipeline sending.
    It occurs when the data payload size is at some magic length.
    I guess it is around integral multiple of MTU.
    Could someone help me ?
    Code (CSharp):
    1. Stack Trace of Crashed Thread 28168:
    2. ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF6F5AC13FE)
    3. 0x00007FF6F5AC13FE (Unity) (function-name not available)
    4. ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF6F28EDAD7)
    5. 0x00007FF6F28EDAD7 (Unity) (function-name not available)
    6. 0x00000155AAFAE800 (UnityEngine.CoreModule) Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemCpy()
    7. 0x00000155AA914B2B (Unity.Networking.Transport) Unity.Networking.Transport.FragmentationPipelineStage.Send$BurstManaged()
    8. 0x00000155AA914313 (Unity.Networking.Transport) Unity.Networking.Transport.Send_00000129$BurstDirectCall.Invoke()
    9. 0x00000155AA9141BB (Unity.Networking.Transport) Unity.Networking.Transport.FragmentationPipelineStage.Send()
    10. 0x000001554D41FA33 (Unity.Networking.Transport) Unity.Networking.Transport.FragmentationPipelineStage.Send()
    11. 0x00000155AA913F9D (mscorlib) System.Object.wrapper_native_000001554CF806E0()
    12. 0x00000155AA913BB9 (Unity.Networking.Transport) Concurrent.ProcessSendStage()
    13. 0x00000155AA911843 (Unity.Networking.Transport) Concurrent.ProcessPipelineSend()
    14. 0x00000155AA90CC03 (Unity.Networking.Transport) Concurrent.Send()
    15. 0x00000155765C405B (Unity.Networking.Transport) Concurrent.EndSend()
    16. 0x000001557668BE5B (DOTS_Foundation) DOTS.Foundation.<>c__DisplayClass_OnUpdate_LambdaJob2.OriginalLambdaBody()
    17. 0x000001557668AC5B (DOTS_Foundation) DOTS.Foundation.<>c__DisplayClass_OnUpdate_LambdaJob2.IterateEntities()
    18. 0x000001557668928B (DOTS_Foundation) DOTS.Foundation.<>c__DisplayClass_OnUpdate_LambdaJob2.Execute()
    19. 0x0000015576688F63 (Unity.Entities) JobChunkProducer`1.ExecuteInternal()
    20. 0x000001557668864B (Unity.Entities) JobChunkProducer`1.Execute()
    21. 0x0000015576688832 (Unity.Entities) ExecuteJobFunction.invoke_void_JobChunkExtensions/JobChunkWrapper`1<T>&_intptr_intptr_JobRanges&_int()
    22. 0x000001557601EB39 (Unity.Entities) <Module>.runtime_invoke_void__this___intptr&_intptr_intptr_intptr&_int()
    23. 0x00007FFDC16DE480 (mono-2.0-bdwgc) mono_get_runtime_build_info
    24. 0x00007FFDC1662902 (mono-2.0-bdwgc) mono_perfcounters_init
    25. 0x00007FFDC166B95F (mono-2.0-bdwgc) mono_runtime_invoke
     
  2. timjohansson

    timjohansson

    Unity Technologies

    Joined:
    Jul 13, 2016
    Posts:
    367
    Moving this thread to the transport forums.

    There is a crash with fragmentation pipeline and some sizes just below MTU, it will be fixed in transport 0.8
     
    BobFlame likes this.
  3. BobFlame

    BobFlame

    Joined:
    Nov 12, 2018
    Posts:
    69
    I just implement a simple fragmentation pipeline myself, sigh.....
     
unityunity