Panic: runtime error: invalid memory address or nil pointer dereference

There are not many clues in
hugo server --debug
Just the same error without any additional info about the causes.
But searching in other support posts gave me a hint which looks like a working fix.

config.toml
debug = 100000

(x10 from default)
I assume that the problem is I have a lot of images which needs to be resized. Don’t know why the cached ones is not enough, but this helps (I hope)g