- Home /
Look at your ouptut.log file ... what do you see?
Below you will see what I find in my output.log file when I open a brand new unity project, save the scene (with just the camera in it) and do a build and run. Some of the messages claim to be harmless, but surely the one about the 'unity default resources' file being corrupted isn't. This is on a brand-new fresh re-install of Unity. Do you see messages like this in output.log when you start up a built executable?
Direct3D: Version: Direct3D 9.0c [nvd3dum.dll 8.16.11.9107] Renderer: NVIDIA GeForce 8400 GS
Vendor: NVIDIA VRAM: 496 MB (via DXGI) Caps: Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 DF24=0 INTZ=1 RAWZ=0 NULL=1 RESZ=0 SlowINTZ=0 desktop: 1280x1024 60Hz; virtual: 1280x1024 at 0,0 Initializing (RawInput).
Input initialized.
Non platform assembly: data-02F8ADA8 (this message is harmless) Mismatched serialization in the builtin class 'Shader'. (Read 2164 bytes but expected 2212 bytes)
(Filename: C:/BuildAgent/work/842f9557127e852/Runtime/Serialize/SerializedFile.cpp Line: 816)
Mismatched serialization in the builtin class 'Shader'. (Read 1960 bytes but expected 1972 bytes)
(Filename: C:/BuildAgent/work/842f9557127e852/Runtime/Serialize/SerializedFile.cpp Line: 816)
The file 'C:/Users/Michael/Documents/New Unity Project 7/tester_Data/Resources/unity default resources' is corrupted! Remove it and launch unity again! [Position out of bounds!]
(Filename: C:/BuildAgent/work/842f9557127e852/Runtime/Serialize/CacheWrap.cpp Line: 263)
The file 'C:/Users/Michael/Documents/New Unity Project 7/tester_Data/Resources/unity default resources' is corrupted! Remove it and launch unity again! [Position out of bounds!]
(Filename: C:/BuildAgent/work/842f9557127e852/Runtime/Serialize/CacheWrap.cpp Line: 269)
The file 'C:/Users/Michael/Documents/New Unity Project 7/tester_Data/Resources/unity default resources' is corrupted! Remove it and launch unity again! [Position out of bounds!]
(Filename: C:/BuildAgent/work/842f9557127e852/Runtime/Serialize/CacheWrap.cpp Line: 263)
The file 'C:/Users/Michael/Documents/New Unity Project 7/tester_Data/Resources/unity default resources' is corrupted! Remove it and launch unity again! [Position out of bounds!]
(Filename: C:/BuildAgent/work/842f9557127e852/Runtime/Serialize/CacheWrap.cpp Line: 269)
Mismatched serialization in the builtin class 'Shader'. (Read 1884 bytes but expected 1896 bytes)
(Filename: C:/BuildAgent/work/842f9557127e852/Runtime/Serialize/SerializedFile.cpp Line: 816)
I'm not seeing any of that. O_O No corruption on my end. Only the Direct3D header, and a few of those non-platform assembly and platform-assembly messages, then a bunch of stuff that got logged from leftover Debug.Log calls that made it into the build. But no corrupted stuff.
Thanks for posting your results, Christian. I've been developing software long enough not to believe every error message I read, but I was pretty sure this was something abnormal. Now I'm completely sure. What in the world could this be? Something related to Windows, I assume. Is it worth it to try and clear out the registry entries that persist after you uninstall?
There is a file called "unity default resources" in the Resources folder in your [Projectname]_Data folder in the build directory. It's that file containing the corruption. I don't know what it's for, but a guess would be some kind of serialized data that the .exe loads at runtime, possibly meshes or textures or something. If Unity's screwing the file up even on empty projects, it suggests a bug in its build routine, I think.
Try cleaning Unity completely out of your system (including leftover registry entries, just to be safe), and then reinstall it. I'm sorry I can't be more help, this one's out of my league. :-/
Your answer
Follow this Question
Related Questions
Seems to build, shows the following errors 2 Answers
Build failed with errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer 0 Answers
Distribute terrain in zones 3 Answers
Build failure: Failed to build apk 0 Answers
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors 0 Answers