Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug Standalone Build - EXCEPTION_ACCESS_VIOLATION_READ

Discussion in 'Profiler Previews' started by SniperED007, Jun 16, 2022.

  1. SniperED007

    SniperED007

    Joined:
    Sep 29, 2013
    Posts:
    345
    I'm getting random crashes on a standalone build, here are two of them, do these have something to do with ProfilerRecorder? I don't use it in any of my code.. and the editor doesn't throw any errors.. but the build crashes often.
    Unity 2021.3.4f1 (Windows - IL2CPP build)
    upload_2022-6-16_0-24-59.png
     

    Attached Files:

    Last edited: Jun 16, 2022
  2. SniperED007

    SniperED007

    Joined:
    Sep 29, 2013
    Posts:
    345
  3. alexeyzakharov

    alexeyzakharov

    Joined:
    Jul 2, 2014
    Posts:
    507
    Hi @SniperED007 !

    Do you use by any chance Recorder ? The callstack points potentially to the domain reload cleanup or thread cleanup where finalizers kick in and potentially the recorder instance was already disposed o_O
    This looks like a bug that needs fixing
     
  4. SniperED007

    SniperED007

    Joined:
    Sep 29, 2013
    Posts:
    345
    I do use Recorder to record videos in the editor, but considering it can't be used in the Standalone Build it probably is some bug with that.
    My issue was caused from calling SetDirty() on the UniversalRendererData every frame.
    Once I changed that to only call it when needed it stopped the crashing.