Search Unity

Invalid serialized file version after upgrade

Discussion in 'Editor & General Support' started by mihakinova, Dec 9, 2015.

  1. mihakinova

    mihakinova

    Joined:
    Jan 6, 2015
    Posts:
    85
    Just upgraded Unity from 5.3.0f2 to the official release (f4). Now, when I run my game on iOS i get this error and the game closes right after opening:

    Invalid serialized file version. File: "/private/var/mobile/Containers/Bundle/Application/*******/bes.app/Data/globalgamemanagers". Expected version: 5.3.0f2. Actual version: 5.3.0f4.

    I have tried reimporting all assets and creating a new build, with no luck. I'm not using any asset bundles.
    It only happens on iOS, when doing a WebGL build i can run it fine.

    Anyone knows a solution to this?

    EDIT: The entire log:
    2015-12-09 11:54:56.467 bes[376:18301] -> registered mono modules 0xe33370

    -> applicationDidFinishLaunching()

    Invalid serialized file version. File: "/private/var/mobile/Containers/Bundle/Application/*********/bes.app/Data/globalgamemanagers". Expected version: 5.3.0f2. Actual version: 5.3.0f4.


    (Filename: Line: 1045)


    PlayerInitEngineNoGraphics settings: Could..... not preload global game manager #0 i=0

    engine intialization failed
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,279
    Could you create a bug report with the project so we can take a look?
     
  3. mihakinova

    mihakinova

    Joined:
    Jan 6, 2015
    Posts:
    85
    Managed to fix the problem by completely removing Unity with AppCleaner and reinstalling it.

    Thanks for the support!
     
    karl_jones likes this.
  4. polytropoi

    polytropoi

    Joined:
    Aug 16, 2006
    Posts:
    681
    I'm getting a similar error, after doing the 5.3.1p1 patch, crashes all my Android builds at start. I've used AppCleaner, on 2 separate machines, complete reinstall, same problem. Log says:
    E/Unity (16867): Invalid serialized file version. File: "/data/app/net.servicemedia.ovrTest-2/base.apk/assets/bin/Data/globalgamemanagers". Expected version: 5.3.1f1. Actual version: 5.3.1p1.

    I filed a bug, it's # 756814
     
  5. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,279
    Hmm. Try doing a reimport of your project, it should regenerate the serialized files.
     
  6. polytropoi

    polytropoi

    Joined:
    Aug 16, 2006
    Posts:
    681
    It also does it on new, empty project, with nothing to reimport
     
  7. polytropoi

    polytropoi

    Joined:
    Aug 16, 2006
    Posts:
    681
    Maybe it's mac only, for some reason? Same behavior on 2 different machines ( brand new iMac and an older iMac ) - but I know not everybody is having this problem
     
  8. Bravo_cr

    Bravo_cr

    Joined:
    Jul 19, 2012
    Posts:
    148
    Same problem here with installed version 5.3.1p2 "Expected version 5.3.0f4"
     
  9. polytropoi

    polytropoi

    Joined:
    Aug 16, 2006
    Posts:
    681
    I filed a bug on this and they did reproduce, it's because I didn't install the patch using Download Assistant with the Android build target selected. Rerun the p2 install using Download Assistant and make sure you check the Android build target.
     
  10. funx

    funx

    Joined:
    Jun 9, 2014
    Posts:
    16
    I'm getting this post's original error (invalid version for globalgamemanagers) on iOS / Unity 5.3.1p4.
     
  11. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,279
    Did you do what polytropoi said? Use the download manager?
     
  12. funx

    funx

    Joined:
    Jun 9, 2014
    Posts:
    16
    You mean the download assistant to download Unity? Yes I downloaded it with that from this link:
    https://unity3d.com/unity/qa/patch-releases
    I'm developing for iOS so I don't have the Unity's platform switched to Android though.
     
  13. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,279
    Did you try the app cleaner trick mentioned earlier?
     
  14. BenoitFreslon

    BenoitFreslon

    Joined:
    Jan 16, 2013
    Posts:
    163
    Same problem:

    Expected version: 5.3.0f4. Actual version: 5.3.1f1.

    2016-01-26 09:02:00.473 ProductName[555:203447] -> registered mono modules 0x6f3d00

    -> applicationDidFinishLaunching()

    Invalid serialized file version. File: "/var/mobile/Containers/Bundle/Application/5BDA1D1C-3216-4300-907B-AABB3914B82E/ProductName.app/Data/globalgamemanagers". Expected version: 5.3.0f4. Actual version: 5.3.1f1.


    (Filename: Line: 1045)


    PlayerInitEngineNoGraphics settings: Could..... not preload global game manager #0 i=0

    engine intialization failed
     
  15. FlyingHighUp

    FlyingHighUp

    Joined:
    Apr 23, 2012
    Posts:
    16
    Same problem:

    Invalid serialized file version. File: "/data/app/******.apk/assets/bin/Data/globalgamemanagers". Expected version: 5.3.0f4. Actual version: 5.3.1f1.

    Cleaned Unity off my computer with AppCleaner, reinstalled.
    Made sure to select Android as a platform this time. It worked.
     
  16. afiqyaya

    afiqyaya

    Joined:
    Jan 29, 2016
    Posts:
    1
    hi, for my case, im using unity 32 bit, because im developing AR apps on android. unity 32 bit doesnt have android platform in the download assistants. I manually copy android platform file from unity 64 bit folder and paste it into the unity 32 bit folder. So i think your solution might not work for me. btw, can i import my project from 32 bit to 64 bit and build the .apk files in 64 bit?.please help me, i spend a whole day yesterday to find the solution but still haven't solve it.
     
  17. BenoitFreslon

    BenoitFreslon

    Joined:
    Jan 16, 2013
    Posts:
    163
    I fixed the problem by uninstalling Unity and by downloading the download manager in order to reinstall the iOS export module.
     
  18. MohHeader

    MohHeader

    Joined:
    Aug 12, 2015
    Posts:
    41
    For me,

    When I did updated Unity, I only updated Unity Editor,
    So there was a conflict between Unity Editor version & Builder version.

    using Download Manager, just re-installed Mac Builder to update it.

    Hope that helps
     
  19. pedrevans

    pedrevans

    Joined:
    May 8, 2013
    Posts:
    10
    When I had this problem with the latest patch version 5.3.2p4, I closed Unity and MonoDevelop, then I checked out my code in a new directory (i.e. without Library/ and Temp/), creating a new Unity project, and built it from scratch. That worked for me.
     
  20. mesuttasci

    mesuttasci

    Joined:
    May 7, 2017
    Posts:
    12
    After a year with same error.
    globalmanagers Expected version:5.6.0f3. Actual version :5.6.0f1.
    i hope unity will solve this issue with next update. Or we will change game engine
     

    Attached Files:

    dinindu_unity likes this.
  21. reev4eg

    reev4eg

    Joined:
    May 10, 2015
    Posts:
    37
    This error still appears: upload_2020-8-4_12-58-47.png
     
  22. EugeneJefferson

    EugeneJefferson

    Joined:
    Sep 5, 2016
    Posts:
    10
    Hey there, cleaning and reinstalling Unity doesnt work for me, got "Expected version: 2019.3.2f1. Actual version: 2019.4.11f1" in new created empty project
     
  23. EugeneJefferson

    EugeneJefferson

    Joined:
    Sep 5, 2016
    Posts:
    10
    Fixed, check sdk`s path in Preferences->External Tools, for some reason sdk path was to wrong engine version ¯\_(ツ)_/¯
     
    Last edited: Sep 24, 2020
  24. curtispelissier

    curtispelissier

    Joined:
    Jul 26, 2019
    Posts:
    39
    I am have the same problem on our VR game. We upgraded our Unity from 2019.3.15f1 to 2020.2.2f1 and, each build deployed and launched on Steam, we have this message :
    upload_2021-1-28_15-5-58.png

    I opened the Unity playerlog and here is the "stack trace" :
    Code (JavaScript):
    1. Mono path[0] = 'D:/Jeux/SteamLibrary/steamapps/common/[OUR GAME]/[OUR GAME]_Data/Managed'
    2. Mono config path = 'D:/Jeux/SteamLibrary/steamapps/common/[OUR GAME]/MonoBleedingEdge/etc'
    3. Loading player data from D:/Jeux/SteamLibrary/steamapps/common/[OUR GAME]/[OUR GAME]_Data/data.unity3d
    4. Invalid serialized file version. File: "D:/Jeux/SteamLibrary/steamapps/common[OUR GAME]/[OUR GAME]_Data/globalgamemanagers". Expected version: 2020.2.2f1. Actual version: 2019.3.15f1.
    5.  
    6. Unknown error occurred while loading 'D:/Jeux/SteamLibrary/steamapps/common/[OUR GAME]/[OUR GAME]_Data/globalgamemanagers'.
    7.  
    8. Failed to load PlayerSettings (internal index #0).
    9.  
    10. Most likely data file is corrupted, or built with mismatching
    11.  
    12. editor and platform support versions.
    13. PlayerInitEngineNoGraphics settings: Failed to load PlayerSettings (internal index #0).
    14.  
    15. Most likely data file is corrupted, or built with mismatching
    16.  
    17. editor and platform support versions.
    I tried every solutions above, and none worked. Any other solutions ?
     
  25. lachaal1

    lachaal1

    Joined:
    Oct 23, 2020
    Posts:
    1
    go to the your file with the issue and change 5.3.0f4 to 5.3.0f2.
    and it's work with all this kind of problem i think
    it's working for me