How to crash Hugo

subtitle: Don’t do this!

Simply put in your template
{{.Page | jsonify}}

Hugo takes a stupidly long time and, on my computer, it runs out of memory and crashes. [I have 16Gb]


#support is for questions. Do you have a question?

1 Like

Perhaps the title should be is there a way to prevent this?

(I had hoped a touch of irony would bring wry smiles, but re-reading it perhaps this was too optimistic; ah well. :slight_smile: )

I spent a while crashing my laptop and doing reboots and eventually found this was the reason. I hope the information is useful.

One way would be to not sending a gigantic object graph into jsonify.