Sometimes when building my hugo blog, it will fail and display error:
ERROR 2023/02/12 08:48:55 Could not render org: could not write output: runtime error: invalid memory address or nil pointer dereference. Using unrendered content.
I originally wrote in markdown format, now in Org-mode. So there are two types of files in my content folder.
10:14:44 PM: > hugo --gc --buildFuture
10:14:44 PM: Start building sites …
10:14:44 PM: hugo v0.111.0-3fa8bb8318114cd69315eadd35bda169e6a8ca4b+extended linux/amd64 BuildDate=2023-03-01T20:57:44Z VendorInfo=gohugoio
10:14:45 PM: ERROR 2023/03/08 14:14:45 Could not render org: could not write output: runtime error: invalid memory address or nil pointer dereference. Using unrendered content.
10:14:48 PM: Error: Error building site: logged 1 error(s)
10:14:48 PM: Total in 3463 ms
From 2022-12-14 (deploy log), I was using Hugo v0.107.0, repo state. Because I modified git author/email, so if you want to clone the repo, from this repo state, not the netlify deploy page.
This is the earliest I can find. I can’t remember the earlier mistakes.
@kaushalmodi Have you seen either of these intermittent errors before?
ERROR 2023/03/08 14:14:45 Could not render org: could not write output: runtime error: invalid memory address or nil pointer dereference. Using unrendered content.
ERROR 2023/03/09 13:55:35 Could not render org: could not write output: runtime error: unsafe.String: len out of range. Using unrendered content.