KeenSoftwareHouse / SpaceEngineers

2.94k stars 894 forks source link

Build error with SGenAutoResolve_x64.exe #571

Open Geneticus opened 7 years ago

Geneticus commented 7 years ago

""C:\Users\Geneticus\Documents\Projects\SpaceEngineers\Sources\SpaceEngineers.ObjectBuilders....\Build\Tools\SGenAutoResolve\SGenAutoResolve_x64.exe" /a:"C:\Users\Geneticus\Documents\Projects\SpaceEngineers\Sources\SpaceEngineers.ObjectBuilders\bin\x64\Release\SpaceEngineers.ObjectBuilders.dll" /d:"C:\Users\Geneticus\Documents\Projects\SpaceEngineers\Sources\SpaceEngineers.ObjectBuilders\bin\x64\Release\VRage.Game.dll" /b /v" exited with code -532462766. SpaceEngineers.ObjectBuilders

w00zla commented 7 years ago

Nailed it down to some memory problems (pasted text is build-output of project "SpaceEngineers.ObjectBuilders"):

2>------ Build started: Project: SpaceEngineers.ObjectBuilders, Configuration: Debug x64 ------ 2> SpaceEngineers.ObjectBuilders -> D:\ProjectsLocal\SpaceEngineers-master\Sources\SpaceEngineers.ObjectBuilders\bin\x64\Debug\SpaceEngineers.ObjectBuilders.dll 2> [6,0058ms] Assemblies loaded. 2> Generate serializer for: MyObjectBuilder_UpgradeModuleDefinition 2> Generate serializer for: MyObjectBuilder_DemoComponentDefinition ..... 2> Generate serializer for: MyObjectBuilder_WeaponBlockDefinition 2> Generate serializer for: MyObjectBuilder_WelderDefinition 2> [18,017ms] Types collected. 2> [1908,9268ms] Dependencies solved. 2>
2> Unbehandelte Ausnahme: OutOfMemoryException. 2>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: The command ""D:\ProjectsLocal\SpaceEngineers-master\Sources\SpaceEngineers.ObjectBuilders....\Build\Tools\SGenAutoResolve\SGenAutoResolve_x64.exe" /a:"D:\ProjectsLocal\SpaceEngineers-master\Sources\SpaceEngineers.ObjectBuilders\bin\x64\Debug\SpaceEngineers.ObjectBuilders.dll" /d:"D:\ProjectsLocal\SpaceEngineers-master\Sources\SpaceEngineers.ObjectBuilders\bin\x64\Debug\VRage.Game.dll" /b /v" exited with code -532462766.

Krienas commented 7 years ago

hope they will update these files, as currently they are the only real show stopper to build solution.

spacebuilder2020 commented 7 years ago

I am also getting this error when trying to build.

Equinox- commented 7 years ago

If you are getting this error you may be able to use SGen without conflict resolution. (https://msdn.microsoft.com/en-us/library/bk3w6240(v=vs.110).aspx) Doing this, and correcting a few type name conflicts manually using the System.Xml.Serialization.XmlType annotation I was able to get the engine running correctly (more or less)

Pitj3 commented 7 years ago

@Equinox- what exactly did you do? I still can't compile

Equinox- commented 7 years ago

I modified the project files outside of VS, removed the original post build hook, inserted a custom snippet to list types tagged with an attribute, then passed that into the SGen task supported by MSBuild. You can look at my fork to get an idea.

Rseding91 commented 7 years ago

This is still a problem... both x86 and x64 crash with this error when trying to compile.