Search Unity

Bug Build crash immediately - works in editor or in development mode

Discussion in 'Editor & General Support' started by Rob_Koda, Apr 22, 2023.

  1. Rob_Koda

    Rob_Koda

    Joined:
    May 2, 2017
    Posts:
    7
    Hello

    My game crashes immediately when exported in "normal build", not in "development build"
    I've looked in the log, and I see this error

    ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFFEC24331B)
    0x00007FFFEC24331B (UnityPlayer) (function-name not available)
    0x00007FFFECB6ACE0 (UnityPlayer) UnityMain
    0x00007FFFECB6E0F2 (UnityPlayer) UnityMain
    0x00007FFFECB6E1E1 (UnityPlayer) UnityMain

    I've tried to look at the dump file through WinDbg, but I cannot see anything that looks related to my code

    I'm at a complete lost on what to do to identify the error. Any help would be really appreciated!

    I've been having this issue for a month, updating Unity and packages didn't resolve it.

    Find attached the log with the dump

    EDIT:

    I managed to nail down the code line that breaks everything.
    Code (CSharp):
    1. meshFilter.sharedMesh = new Mesh();
    When I separated the creation of the mesh and its assignment to sharedMesh, it seems that the assignment was the culprit.
     

    Attached Files:

    Last edited: Apr 23, 2023
  2. Jebtor

    Jebtor

    Unity Technologies

    Joined:
    Apr 18, 2018
    Posts:
    115
    Hi! I am sorry to hear you're experiencing a crash. Please submit a bug report with the project and reproduction steps. You can also add a link to this thread.