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

Docpad 6.55.4: JS Allocation failed - out of memory #5

Closed
mikeumus opened this issue Nov 27, 2013 · 3 comments
Closed

Docpad 6.55.4: JS Allocation failed - out of memory #5

mikeumus opened this issue Nov 27, 2013 · 3 comments

Comments

@mikeumus
Copy link
Member

Originally via @Aglezabad - docpad/docpad/issues/719

DocPad v6.55.3
Node v0.10.21
npm v1.3.11
Windows 8.1 - Windows Surface Pro 1

docpad run fails in the following:

Performing generate: Write the database cache at 8/9 89%
 ===========================================---
---FATAL ERROR: JS Allocation failed - process out of memory
An error occured within the child DocPad instance: exited with a non-zero status code

Also as per @Aglezabad, docpad-plugin-related is the culprit here.

@balupton
Copy link
Member

I have an idea of what will be causing this. I'll take a go at it tomorrow. Will likely be a backwards incompatible change. Probably, instead of doing @document.relatedDocuments, instead you will need to do @getRelatedDocuments(@document) instead (this isn't coded yet, just a brainstorm). As the issue will be the database cache hits a cyclic loop due to the related documents when trying to serialize the database, so instead of storing the related documents as a model attribute, we store it as a model attribute (already done), but expose it via a template helper (not yet done).

@balupton
Copy link
Member

Published. Check the readme for the new docs :)

@mikeumus
Copy link
Member Author

Thanks again for saving the day @balupton. 👍

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

2 participants