rexdex / recompiler

Xbox360 -> Windows executable converter
MIT License
1.64k stars 81 forks source link

Compiler is out of heap space in pass 2 #28

Open 0x8080 opened 6 years ago

0x8080 commented 6 years ago

VS usually spits out this error when compiling large projects, trying to find a fix but currently no success.

TBirdSoars commented 4 years ago

I was having this problem with Sonic Adventure 2. It appears that the problem was caused by the recompilation using the 32-bit version of MSBuild. After redirecting to the 64-bit version, it compiled after an hour and maxing out at 10GB of RAM used. I'm not sure if it was related to using that version of MSBuild, but the game would not launch following the recompilation. This solution was implemented in the following fork: https://github.com/HaydnTrigg/recompiler

The specific changes were made in "codeGeneratorMSVC.cpp" and can be found in this commit: https://github.com/HaydnTrigg/recompiler/commit/59e8137f65fee137eaf92045a7f7fdbc9fade5d1