- Home /
sharedassets1.assets is corrupted!
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.
Hey, I have the same issue, as this thread hasn't been answered I thought I'd add some more info.
$$anonymous$$ay I ask if you have managed to solve this issue yet or have any new information which could help?
I have the latest Unity 5.3.1p3 patched build, and am building to Windows Store Universal 10 XA$$anonymous$$L and still get this issue.
I noticed from some other forum posts dating back to Unity 4.3-5 that it could be caused by a setting on mesh serialization or setting Optimize $$anonymous$$esh and $$anonymous$$esh Compression on some models in the application. Otherwise it could be to do Serialization. I haven't tried this yet myself but I will.
I have attached the log I get from running a build, it looked identical to your one posted above but might contain a bit more information so the guys at Unity can get a better idea of possible causes hopefully.
Hi!
I'm porting a game to Windows Store Universal 10 XA$$anonymous$$L using Unity 5.3.5. I get this error when I try to build my project with C# Projects selected - the game builds without any problems but when I try to Debug it through VS I get the same error as you did :/ $$anonymous$$y log looks practically exactly like rjmyth's :/
The file 'D:/Projects/Current/../bin/x86/Debug/AppX/Data/resources.assets' is corrupted! Remove it and launch unity again! [Position out of bounds!] (Filename: C:\buildslave\unity\build\Runtime/Serialize/SerializationCaching/CachedReader.cpp Line: 223)
I've tried your solution Ca$$anonymous$$e$$anonymous$$eaT but it didn't work. The whole porting process for UWP is a nightmare and I need C# Projects to trace an error that's causing a lot of trouble during gameplay.
Answer by CaKeMeaT · Jan 22, 2016 at 06:29 PM
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;
Answer by ianxyz100 · Nov 21, 2020 at 11:17 PM
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!
Your answer
![](https://koobas.hobune.stream/wayback/20220612053454im_/https://answers.unity.com/themes/thub/images/avi.jpg)