Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

globalgamemanagers.assets corrupted between builds

Discussion in 'Unity Build Automation' started by unityventures7, Aug 6, 2021.

  1. unityventures7

    unityventures7

    Joined:
    Mar 19, 2020
    Posts:
    13
    Hi!

    We started seeing some builds (Android/iOS) being corrupted in globalgamemanagers.assets with "position out of bonds", which causes a crash when the app startup.

    We thought it was due to URP, since sometimes it shows something about render pipeline crash, but doesn't seem so (URP is at 10.6)

    The bizarre thing is if we started backtracking the commits to check if it was something we did, and when we triggered exact same commit sometimes the builds startup successfully, sometimes it crashes.

    Extra Notes:
    Unity Version
    : 2020.2.15f2 (latest available on cloud build)
    When it started: Last week out of nowhere and the times it occurred kept increasing until almost all the builds crash on startup :/
    Local build with the same setup: it works flawlessly :/
     
  2. unityventures7

    unityventures7

    Joined:
    Mar 19, 2020
    Posts:
    13
    We reverted the Cloud Build to Unity to 2020.2.14 and Android worked fine, iOS still crashing with error in render pipeline
     
  3. kaarloew

    kaarloew

    Joined:
    Nov 1, 2018
    Posts:
    360
    In our case clean local build works. If we try to rebuild then it gets broken.
     
    Last edited: Aug 12, 2021
  4. unityventures7

    unityventures7

    Joined:
    Mar 19, 2020
    Posts:
    13
    We discovered some new info.

    The serialization of the asset "UniversalRenderPipelineAsset" breaks when it is set on the Graphics settings, and the inspector shows nothing, when it occurs, the local build stops working with the same error above, moving the asset around or playing the editor, fix the serialization and the build works successfully

    What happens, is when you open the Unity this asset is broken, so the build will fail if you dont hit play on editor or move it around to fix the serialization
     
    juholyytikainen likes this.
  5. kaarloew

    kaarloew

    Joined:
    Nov 1, 2018
    Posts:
    360