Sorry for the all caps urgent. We have a standalone PC application that runs fine in the IDE with no errors, compiles fine, but does not run. Here is a copy of the output_log.txt file. If there is any more information that would be helpful let me know. Please help, our project is due tomorrow!
Direct3D: Version: Direct3D 9.0c [nvd3dum.dll 126.96.36.19958] Renderer: NVIDIA GeForce GTX 580 Vendor: NVIDIA VRAM: 1536 MB Caps: Shader=30 DepthRT=1 NativeDepth=1 NativeShadow=1 DF16=0 DF24=0 INTZ=1 RAWZ=0 NULL=1 RESZ=0 SlowINTZ=0 desktop: 1920x1200 59Hz; virtual: 3200x1200 at 0,0 Initializing (RawInput).
Non platform assembly: data-03006DB0 (this message is harmless) Non platform assembly: data-0306B088 (this message is harmless) Non platform assembly: data-07210180 (this message is harmless) Non platform assembly: data-07276FF0 (this message is harmless) Platform assembly: C:\Users\Public\Documents\Unity Projects\Project Unity\Project_Data\Managed\System.Xml.dll (this message is harmless) Platform assembly: C:\Users\Public\Documents\Unity Projects\Project Unity\Project_Data\Managed\Boo.Lang.dll (this message is harmless) Platform assembly: C:\Users\Public\Documents\Unity Projects\Project Unity\Project_Data\Managed\UnityScript.Lang.dll (this message is harmless) Platform assembly: C:\Users\Public\Documents\Unity Projects\Project Unity\Project_Data\Managed\System.dll (this message is harmless) Your 64 bit Windows installation is missing an imporant service pack patch. Please apply [url]http://support.microsoft.com/kb/976038[/url] to ensure stability.
(Filename: C:/BuildAgent/work/f724c1acfee760b6/PlatformDependent/Win/wow64.cpp Line: 42)
NullReferenceException: Object reference not set to an instance of an object at Main.Start () [0x00000] in :0
(Filename: Line: -1)
Two more pieces of information I can share:
We tried to compile it again recently and here are some more errors we are getting:
Error building Player: IOException: Failed to Copy File / Directory from 'Temp/StagingArea/Data' to 'C:/Users/Public/Documents/Unity Projects/Project Unity\Project_Data'. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
Exception: Error building Player: IOException: Failed to Copy File / Directory from 'Temp/StagingArea/Data' to 'C:/Users/Public/Documents/Unity Projects/Project Unity\Project_Data'. UnityEditor.BuildPlayerWindow.BuildPlayerWithDefaultSettings (Boolean askForBuildLocation, BuildOptions forceOptions) (at C:/BuildAgent/work/f724c1acfee760b6/Editor/Mono/BuildPlayerWindow.cs:340) UnityEditor.BuildPlayerWindow.BuildPlayerAndRun () (at C:/BuildAgent/work/f724c1acfee760b6/Editor/Mono/BuildPlayerWindow.cs:262)
Right-Clicking my batch (.bat) and "Run as Administrator" solved my problem just now.
answered Apr 17 at 07:16 PM
I had this happen when another process/application was using the output file it was compiling to. So getting rid of that hurdle fixed it.
answered Mar 03 '12 at 12:10 AM
Do you have any 'Application.isEditor' clauses in your code? It's caught me out before ;) The file copy problem was cured here by re-booting and/or restarting Unity (as efge said).
answered Mar 03 '11 at 09:45 PM
Run it in the mono-debugger, if you'r lucky the error persists and you can trace it, if not it might be a race-condition and need a bit more investigation. Cheers,
answered Mar 03 '11 at 09:33 PM
That first one sounds like a bad bug. The other ones seem suspiciously like what I was seeing before I excluded those folders from my virus scanner.
answered Mar 03 '11 at 09:02 PM