Corrupt level file

OK, so I’m building my game for Win8, (x86). It’s an existing/released game that works just fine in Windows 7.

The menu scene loads, and works as expected, however when I try to start a game, the process terminates. Looking in the log file, I see this as the last line:

The file ‘D:/Unity Projects/trunk/Star Hammer Tactics PC/Builds/Win8/Star Hammer Tactics/bin/x86/Debug/AppX/Data/level5’ is corrupted! Remove it and launch unity again!
[Position out of bounds! 1834180 > 1834176]

(Filename: C:/BuildAgent/work/cac08d8a5e25d4cb/Runtime/Serialize/CacheWrap.cpp Line: 276)

I’m built many times and the same problem occurs every time.

Any advice?

Thanks.

Looks like a serialization bug, please submit a bug report with simple repro attached.

Had the same issue. Minimum repro (single scene, a single game object and 30 lines of code) submitted: http://fogbugz.unity3d.com/default.asp?589454_86d6t7gqvhq2ef6m

I’ve started getting this issue too.

It’s really inconsistent for me though, happens on some builds and then after a small change (nothing to do with serialization) and the next build will be fine. It’s come and gone a few times for me now.

I’d like to point you to http://forum.unity3d.com/threads/78201-Level-is-corrupt which might help.