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. Dismiss Notice

Bug Game runs fine in editor but crashes on build

Discussion in '2022.2 Beta' started by spinaljack, Nov 17, 2022.

  1. spinaljack

    spinaljack

    Joined:
    Mar 18, 2010
    Posts:
    984
    This is no doubt caused by my code but there's no error messages in unity or visual studios and it makes debugging practically impossible.

    The player crash logs says something about function name not accessible :

    Code (CSharp):
    1. 0x00007FF82AA2632A (UnityPlayer) (function-name not available)
    2.   ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF82AD7A957)
    which is not very helpful.

    Please improve your entities debugging tools.

    EDIT: Turns out unity broke the resources folder and addressables loading
    CASE IN-23345
     
    Last edited: Nov 17, 2022
  2. spinaljack

    spinaljack

    Joined:
    Mar 18, 2010
    Posts:
    984
    This is a really weird bug.
    I can get my build to run by changing the length of my scripts.
    Adding or removing a few lines of code can make it work for one scene but not in others.
    There's no script errors and it works fine in the editor.
    The player crash happens straight away before instantiating anything.