Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    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:
    341
    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:
    341
  3. alexeyzakharov

    alexeyzakharov

    Unity Technologies

    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:
    341
    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.