Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandcastle is running out of memory #1059

Closed
dasdebas opened this issue May 16, 2024 · 7 comments
Closed

Sandcastle is running out of memory #1059

dasdebas opened this issue May 16, 2024 · 7 comments

Comments

@dasdebas
Copy link

Hi There:
sandcastle is failing in the last steps ( CompilingHelpFile) because of no memory available error. I closed all other application, still getting same error, tried other things still fails. It might be that sandcastle is not able to process 130,255 generated html files when compiling help files. What can we do? My machine has 32GB physical memory, sandcastle process if hardly taking max ~5GB. I also tried x64 ( see the attached image), still fails. Your help is greatly appreciated. Thanks
........................
CompilingHelpFile

SHFB: Error BE0043: Unexpected error detected in last build step. See build log for details.
at SandcastleBuilder.Utils.BuildEngine.TaskRunner.Run(String processFilename, String targetFile, String arguments)
at SandcastleBuilder.Utils.BuildEngine.BuildProcess.Build()

pls see the attached image

sandcastle_memory

@EWSoftware
Copy link
Owner

EWSoftware commented May 16, 2024

The x64 setting applies to the platform selected for the solution/project documentation sources. SHFB is itself 64-bit so no issues there. If you're building a Help 1 file though, that is the issue since the help 1 compiler is a 32-bit application so won't use all available memory. There's nothing SHFB can do about that. Switching to website or Open XML output for standalone help are the only alternatives. Although with that many topics, Open XML probably isn't a good solution so website is the better option assuming you can host it somewhere.

@dasdebas
Copy link
Author

Thanks a lot Eric. I was able to generate help using one of the 2 approaches you mentioned.

@dasdebas
Copy link
Author

can 64 bit of "help 1 compiler" be integrated with SHFB? I see many posting in web due to memory limit issue, integrating 64 bits of "help 1 compiler" will help a lot. Thanks

@EWSoftware
Copy link
Owner

As far as I know there is no 64-bit version of the help 1 compiler (part of the HTML Help Workshop). It's really old and 32-bit only.

@VBWebprofi
Copy link
Contributor

VBWebprofi commented May 23, 2024

can 64 bit of "help 1 compiler" be integrated with SHFB? I see many posting in web due to memory limit issue, integrating 64 bits of "help 1 compiler" will help a lot. Thanks

@dasdebas, you might try the HTML Help 1 Compiler from Visual Studio resources, see my HowTo issue #1060.

@EWSoftware
Copy link
Owner

They're still the same 32-bit components so it likely won't make any difference.

@VBWebprofi
Copy link
Contributor

VBWebprofi commented May 24, 2024

It could be a newer version might manage the memory better than an old one. This was the intension behind.

And there is a 2GB and 4GB border in 32 bit. A vendor of a CAD application was able to switch from 2GB usage to 4GB of its 32 bit application with a compile setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants