Sharedassets1.assets is corrupted!
Asked Answered
C

3

0

I get this error when running my game built for Windows 8.1 and WPhone 8.1. It crashes on device, it crashes on debug run. With all of my goofing around this error wont go away, it occasionally changes which file the error mentions: eg. sharedassets1.assets , sharedassets2.assets. Ultimately, one of the .assets file says corrupted no matter what (only on Windows 8.1 builds)

• ERROR-- The file 'D:/WPSystem/SharedData/PhoneTools/AppxLayouts/e4ad5e80-96b3-48fd-b338-57c21f165085VS.Release_ARM.MM/Data/sharedassets1.assets' is corrupted! Remove it and launch unity again! [Position out of bounds!]

(Filename: C:/buildslave/unity/build/Runtime/Serialize/SerializationCaching/CachedReader.cpp Line: 241) 

Have Tried:
-Deleting affected scene, remaking with new name and new prefabs *see below
-Deleting all prefabs present from this scene.
-Removing all duplicate filenames.
-Remaking all scripts used in this scene as new files.
-Removing all JS scripts from project and HDD, recreated them as C# scripts with new file names.
-Rebuilding prefabs from scratch (with new scripts).
-removing all 3d models from project.
-removing all textures from project.

Cloche answered 4/10, 2023 at 16:27 Comment(0)
C
0

I resolved the problem (I guess) by removing [Serializable] tags, and then removing pointer-style references inside my InventoryScript that were used like a linked list.

Example:

InventoryItem next;
InventoryItem prev;
Cloche answered 4/10, 2023 at 16:28 Comment(0)
T
0

I also had this issue. For me it was a corrupted Prefab. I recommend using version control software like Github, backing up your project, and then you can delete large swaths of your project (for example, I did one where I deleted scripts, that didn’t work, but then restored to the older version, deleted all prefabs, and the crash stopped.) From there I just had to rebuild prefabs… apparently meshes can also be corrupt. Hope this helps!

Trellis answered 21/11, 2020 at 23:17 Comment(0)
S
0

Update Unity. It was the only thing that fixed it for me.

Sinter answered 4/10, 2023 at 15:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.