Search Unity

Resolved NRE from Burst, burst.memcpy.inline.AVX2.i64

Discussion in 'Burst' started by IgreygooI, Sep 23, 2021.

  1. IgreygooI

    IgreygooI

    Joined:
    Mar 13, 2021
    Posts:
    48
    What is this supposed to mean?
    System.NullReferenceException: Object reference not set to an instance of an object
    This Exception was thrown from a job compiled with Burst, which has limited exception support.
    0x00007ffbd60bff31 (9ea3637444843dbcab8ae256e2a22f2) burst.memcpy.inline.AVX2.i64
    0x00007ffbd60a63e6 (9ea3637444843dbcab8ae256e2a22f2) [DataStream.cs:249] Unity.Networking.Transport.DataStreamWriter.230::Unity.Networking.Transport.DataStreamWriter.WriteBytes
     
  2. sheredom

    sheredom

    Unity Technologies

    Joined:
    Jul 15, 2019
    Posts:
    300
    My guess is that one of the inputs to the memcpy was a null pointer.
     
  3. IgreygooI

    IgreygooI

    Joined:
    Mar 13, 2021
    Posts:
    48
    Yes, it was my mistake but index out of boundary. I was out of my mind posting.

    Any chances that Burst could compile a generic delegate or better, an interface methods?

    Any chances that Unity could provide better static analysis with the C#/HPC# code that deals with anything unmanaged instead of relying on AtomicSafetyHandle/DisposeSentinel?

    "C# first class for developing game, while getting the performance of C++ and more" is a dream, but we need better tools than what we have with current DOTS. One way I could see it is with better native bindings from the engine. Any chances that is happening?