Unity5.4 AssetBundle: illegal LocalPathID in persistentmanager
When I upgrade to Unity5.4.1p4, AssetBundle:LoadAsset in Editor crash.
illegal LocalPathID in persistentmanager UnityEngine.AssetBundle:LoadAsset_Internal(String, Type) UnityEngine.AssetBundle:LoadAsset(String, Type) (at C:\buildslave\unity\build\artifacts\generated\common\runtime\AssetBundleBindings.gen.cs:204)
...
The file 'archive:/CAB-xxx/CAB-xxx' is corrupted! Remove it and launch unity again! [Position out of bounds!] UnityEngine.AssetBundle:LoadAsset_Internal(String, Type) UnityEngine.AssetBundle:LoadAsset(String, Type) (at C:\buildslave\unity\build\artifacts\generated\common\runtime\AssetBundleBindings.gen.cs:204)
It's ok on iphone and android device. Their is also no problem in Unity5.3 and older version.
What's the problem?,
Answer by 562873336 · Oct 22, 2016 at 02:16 AM
I got the reseaon: public GUIStyle style;
change to:
[NonSerialized] public GUIStyle style;
Hello, I have a similar exception (same message but i have no stack) with my Asset, but impossible to find what is causing this.
Can you explain how did you find that it was the public GUIStyle member in your script that was causing this error ?
thanks !
I'am sorry their is a convenient way to find out what cause it. I search this problem like binary search, move out half assets then try build util find the prefab (or something else). And then check scripts attached to the prefab.
re, building my game give me a more explicit error on GUIStyle also ! here the stack
The file 'archive:/CAB-50656b17ae32908250c37c23f09e65f0/CAB-50656b17ae32908250c37c23f09e65f0' is corrupted! Remove it and launch unity again!
[Position out of bounds!]
The file 'archive:/CAB-50656b17ae32908250c37c23f09e65f0/CAB-50656b17ae32908250c37c23f09e65f0' is corrupted! Remove it and launch unity again!
[Position out of bounds!]
A script behaviour (probably UnityEngine.GUISkin?) has a different serialization layout when loading. (Read -140920916 bytes but expected 7768 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
ArgumentException: The Object you want to instantiate is null.
at UnityEngine.Object.CheckNullArgument (System.Object arg, System.String message) [0x0000e] in C:\buildslave\unity\build\Runtime\Export\UnityEngineObject.cs:240
at UnityEngine.Object.Instantiate[Tontito] (eGearBuilder.Character.Tontito original) [0x0000c] in C:\buildslave\unity\build\Runtime\Export\UnityEngineObject.cs:201
at eGearBuilder.Spawn$$anonymous$$anagement.Spawn$$anonymous$$anager.Spawn (System.String assetName) [0x00072] in D:\DEV\eGearBuilder\eGearBuilder\Assets\Code\SpawnPoint\Spawn$$anonymous$$anager.cs:84
at eGearBuilder.Spawn$$anonymous$$anagement.Spawn$$anonymous$$anager.Start () [0x0002a] in D:\DEV\eGearBuilder\eGearBuilder\Assets\Code\SpawnPoint\Spawn$$anonymous$$anager.cs:29
I will try to fix my script.
Your answer
![](https://koobas.hobune.stream/wayback/20220612095029im_/https://answers.unity.com/themes/thub/images/avi.jpg)