# Another "panic: runtime error: invalid memory address or nil pointer dereference"

**URL:** <https://discourse.gohugo.io/t/another-panic-runtime-error-invalid-memory-address-or-nil-pointer-dereference/24763>\
**Category:** support\
**Created:** [April 15, 2020, 9:34am UTC](https://discourse.gohugo.io/t/another-panic-runtime-error-invalid-memory-address-or-nil-pointer-dereference/24763 "2020-04-15T09:34:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![magoley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/magoley/32/11085_2.png) [@magoley](https://discourse.gohugo.io/u/magoley)\
**Post date:** [April 15, 2020, 9:34am UTC](https://discourse.gohugo.io/t/another-panic-runtime-error-invalid-memory-address-or-nil-pointer-dereference/24763/1 "2020-04-15T09:34:51Z")

</div>

First of, yesterday hugo was working. But I was running hugo from a download sub directory and after cleaning my download I had to get a new hugo for my WIN 10 OS.  
Therefor I fetched myself a brand new hugo win 64 ext. (since the used liva template needs the extended hugo version for CSS). And also install git brand new to my PC.

Link to my Repo with the Sources:

> **[magoley/dotm3](https://github.com/magoley/dotm3)**
>
> Source Files to the DOTM Website. Contribute to magoley/dotm3 development by creating an account on GitHub.

I am using the liva theme form “Themefisher”

Who can help me reading the error messages to get my website rendering again? Many Thanks.

1. Guess: I messed with the taxonomies yesterday eve: Changing them in the front matter of posts and deleting the URL output in the index sidebar partial, so that the tags are listed but not clickable.

**Executing** :  
“hugo server”

**This is the result** (I switched “.” to “(dot” so that it is not counted as a link):

Building sites … panic: runtime error: invalid memory address or nil pointer dereference  
[signal 0xc0000005 code=0x0 addr=0x20 pc=0xfdedb9]

goroutine 83 [running]:  
github(dot)com/gohugoio/hugo/hugolib.(\*shortcodeHandler).extractShortcode(0xc0000d1800, 0x1, 0x0, 0xc000723ae0, 0x1, 0x1, 0x1aea8e0)  
/root/project/hugo/hugolib/shortcode.go:505 +0x889  
github(dot)com/gohugoio/hugo/hugolib.(\*pageState).mapContent(0xc000731bf0, 0xc00073e780, 0xc000891400, 0xc00073f940, 0x23f4880)  
/root/project/hugo/hugolib/page.go:783 +0xb87  
github(dot)com/gohugoio/hugo/hugolib.(\*pageMap).newPageFromContentNode(0xc00005b8e0, 0xc000ad2840, 0xc00073e780, 0x0, 0x0, 0x0, 0x0)  
/root/project/hugo/hugolib/content\_map\_page.go:164 +0x62c  
github(dot)com/gohugoio/hugo/hugolib.(\*pageMap).assemblePages.func1(0xc0007a8ed0, 0x2a, 0x1bb6880, 0xc000ad2840, 0xc00088bd00)  
/root/project/hugo/hugolib/content\_map\_page.go:358 +0x157  
github(dot)com/armon/go-radix.recursiveWalk(0xc000ad28a0, 0xc00088be10, 0xc07f00)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:519 +0xf7  
github(dot)com/armon/go-radix.recursiveWalk(0xc000ad2870, 0xc00088be10, 0xfb7a69)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:525 +0x85  
github(dot)com/armon/go-radix.recursiveWalk(0xc0009c2090, 0xc00088be10, 0x0)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:525 +0x85  
github(dot)com/armon/go-radix.recursiveWalk(0xc00097d920, 0xc00088be10, 0x0)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:525 +0x85  
github(dot)com/armon/go-radix.(\*Tree).Walk(…)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:447  
github(dot)com/gohugoio/hugo/hugolib.(\*pageMap).assemblePages(0xc00005b8e0, 0x0, 0x0)  
/root/project/hugo/hugolib/content\_map\_page.go:331 +0xf3  
github(dot)com/gohugoio/hugo/hugolib.(\*pageMaps).AssemblePages.func1(0xc00005b8e0, 0xc0004db2a0, 0xc00008bf00)  
/root/project/hugo/hugolib/content\_map\_page.go:721 +0x6f  
github(dot)com/gohugoio/hugo/hugolib.(\*pageMaps).withMaps.func1(0xc0004db2a0, 0xc00008bf68)  
/root/project/hugo/hugolib/content\_map\_page.go:788 +0x35  
github(dot)com/gohugoio/hugo/common/para.(\*errGroupRunner).Run.func1(0xc0004db298, 0x0)  
/root/project/hugo/common/para/para.go:52 +0x36  
golang(dot)org/x/sync/errgroup.(\*Group).Go.func1(0xc0007308d0, 0xc00073e0a0)  
/go/pkg/mod/golang.org/x/sync@v0.0.0-20190911185100-cd5d95a43a6e/errgroup/errgroup.go:57 +0x60  
created by [golang.org/x/sync/errgroup.(\*Group](http://golang.org/x/sync/errgroup.(*Group)).Go  
/go/pkg/mod/golang.org/x/sync@v0.0.0-20190911185100-cd5d95a43a6e/errgroup/errgroup.go:54 +0x6d  
panic: runtime error: index out of range [0] with length 0

goroutine 48 [running]:  
github(dot)com/gohugoio/hugo/hugolib.(\*pageState).shiftToOutputFormat(0xc000731bf0, 0x401, 0x0, 0x0, 0x0)  
/root/project/hugo/hugolib/page.go:916 +0x35e  
github(dot)com/gohugoio/hugo/hugolib.(\*pageState).initOutputFormat(…)  
/root/project/hugo/hugolib/page.go:474  
github(dot)com/gohugoio/hugo/hugolib.(\*Site).preparePagesForRender.func1(0xc000731bf0, 0x3209ff00)  
/root/project/hugo/hugolib/hugo\_sites.go:754 +0x50  
github(dot)com/gohugoio/hugo/hugolib.(\*pageMap).withEveryBundlePage.func1(0xc0007a8ed0, 0x2a, 0xc000ad2840, 0x2030000)  
/root/project/hugo/hugolib/content\_map\_page.go:696 +0x3e  
github(dot)com/gohugoio/hugo/hugolib.contentTrees.Walk.func1(0xc0007a8ed0, 0x2a, 0x1bb6880, 0xc000ad2840, 0x41a100)  
/root/project/hugo/hugolib/content\_map.go:851 +0x5b  
github(dot)com/armon/go-radix.recursiveWalk(0xc000ad28a0, 0xc0007219c0, 0x0)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:519 +0xf7  
github(dot)com/armon/go-radix.recursiveWalk(0xc000ad2870, 0xc0007219c0, 0xa)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:525 +0x85  
github(dot)com/armon/go-radix.recursiveWalk(0xc0009c2090, 0xc0007219c0, 0x23966ce)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:525 +0x85  
github(dot)com/armon/go-radix.recursiveWalk(0xc00097d920, 0xc0007219c0, 0xc8)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:525 +0x85  
github(dot)com/armon/go-radix.(\*Tree).Walk(…)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:447  
github(dot)com/gohugoio/hugo/hugolib.contentTrees.Walk(0xc0005a23a0, 0x4, 0x4, 0xc000721a00)  
/root/project/hugo/hugolib/content\_map.go:849 +0x6e  
github(dot)com/gohugoio/hugo/hugolib.(\*pageMap).withEveryBundlePage(0xc00005b8e0, 0xc000721a40)  
/root/project/hugo/hugolib/content\_map\_page.go:694 +0x74  
github(dot)com/gohugoio/hugo/hugolib.(\*Site).preparePagesForRender(0xc00012ab40, 0xc0009c8701, 0x0, 0x3, 0xc000422700)  
/root/project/hugo/hugolib/hugo\_sites.go:753 +0x8b  
github(dot)com/gohugoio/hugo/hugolib.(\*HugoSites).render(0xc0005286e0, 0xc0000d12c0, 0x3132f38, 0x1)  
/root/project/hugo/hugolib/hugo\_sites\_build.go:314 +0x1d3  
github(dot)com/gohugoio/hugo/hugolib.(\*HugoSites).Build.func4()  
/root/project/hugo/hugolib/hugo\_sites\_build.go:149 +0x43  
runtime/trace.WithRegion(0x24076c0, 0xc0004db080, 0x1e6a542, 0x6, 0xc000721e60)  
/usr/local/go/src/runtime/trace/annotation.go:137 +0x105  
github(dot)com/gohugoio/hugo/hugolib.(\*HugoSites).Build(0xc0005286e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, …)  
/root/project/hugo/hugolib/hugo\_sites\_build.go:151 +0x7bc  
github(dot)com/gohugoio/hugo/commands.(\*commandeer).buildSites(…)  
/root/project/hugo/commands/hugo.go:703  
github(dot)com/gohugoio/hugo/commands.(\*commandeer).fullBuild.func3(0xc0005e6058, 0x0)  
/root/project/hugo/commands/hugo.go:315 +0x9d  
golang(dot)org/x/sync/errgroup.(\*Group).Go.func1(0xc0004db050, 0xc00059d790)  
/go/pkg/mod/golang.org/x/sync@v0.0.0-20190911185100-cd5d95a43a6e/errgroup/errgroup.go:57 +0x60  
created by golang(dot)org/x/sync/errgroup.(\*Group).Go  
/go/pkg/mod/golang.org/x/sync@v0.0.0-20190911185100-cd5d95a43a6e/errgroup/errgroup.go:54 +0x6d

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [April 15, 2020, 9:40am UTC](https://discourse.gohugo.io/t/another-panic-runtime-error-invalid-memory-address-or-nil-pointer-dereference/24763/2 "2020-04-15T09:40:07Z")

</div>

Hi there,

Please read [Requesting Help](https://discourse.gohugo.io/t/requesting-help/9132) .

---

<div class="post-metadata">

**Author:** ![magoley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/magoley/32/11085_2.png) [@magoley](https://discourse.gohugo.io/u/magoley)\
**Post date:** [April 15, 2020, 10:10am UTC](https://discourse.gohugo.io/t/another-panic-runtime-error-invalid-memory-address-or-nil-pointer-dereference/24763/3 "2020-04-15T10:10:44Z")

</div>

Thanks. I did and I also reached out to the theme provider team in Github.

Will my issue be handled or did I miss out something from the “Requesting help” manual?  
Thanks for the update  
Chris

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [April 15, 2020, 10:29am UTC](https://discourse.gohugo.io/t/another-panic-runtime-error-invalid-memory-address-or-nil-pointer-dereference/24763/4 "2020-04-15T10:29:00Z")

</div>

There’s this whole chunk:

> [@](#):
>
> ### Let us see your code
> 
> Include a **link to the source code repository** of your project, because we really need the _context_ of seeing your templates and partials to be able to help you. It is trivial to do a quick `git clone` on your repo, then run `hugo server` in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.
> 
> If you can’t share your repository for whatever reason, consider creating a dummy repo that you _can_ share, which reproduces the problem you’re experiencing.
> 
> Git repository hosting services include [Github](https://github.com/), [Bitbucket](https://bitbucket.org/), [Codebase](https://www.codebasehq.com/), [Gitlab](http://gitlab.com/), [Sourcehut](https://sourcehut.org/), and others. If you select Github, even if you do not know `git` or have a repository, you can use Github “gists” for pasting logs and files. You can include multiple files in a single gist, like [this one](https://gist.github.com/RickCogley/2f0d21144e5f3091e62a6ced211c71f3).
> 
> ### Are you using a theme?
> 
> Consider contacting the theme’s author, if it is a theme-specific question because often the author will know better than the random passer-by in the forum. Check the theme’s README. But at least include a link to the theme, to help a person trying to help you.
> 
> ### Include Output and Environment Details
> 
> First, use the `--verbose` switch on `hugo server` to produce more details on the command line including about errors.
> 
> Include the output of `hugo env` from the command line, and any other relevant versions.

Please also note that we are all volunteers here. People answer questions when

1. they know the answer,
2. they have time.

---

<div class="post-metadata">

**Author:** ![magoley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/magoley/32/11085_2.png) [@magoley](https://discourse.gohugo.io/u/magoley)\
**Post date:** [April 15, 2020, 10:50am UTC](https://discourse.gohugo.io/t/another-panic-runtime-error-invalid-memory-address-or-nil-pointer-dereference/24763/5 "2020-04-15T10:50:40Z")

</div>

Thanks for guiding the rookie 😉  
Repo is online and linked in the initial post

theme authors are already contacted

> [@pointyfar](#):
>
> `--verbose` switch

goroutine 70 [running]:  
github(dot)com/gohugoio/hugo/hugolib.(\*shortcodeHandler).extractShortcode(0xc0005d1a80, 0x1, 0x0, 0xc0003e4190, 0x1, 0x1, 0x1a65f80)  
/root/project/hugo/hugolib/shortcode.go:505 +0x889  
github(dot)com/gohugoio/hugo/hugolib.(\*pageState).mapContent(0xc000513590, 0xc0006e4000, 0xc0006fc500, 0xc0006e51c0, 0x22575a0)  
/root/project/hugo/hugolib/page.go:783 +0xb87  
github(dot)com/gohugoio/hugo/hugolib.(\*pageMap).newPageFromContentNode(0xc0009f7b60, 0xc000a60ba0, 0xc0006e4000, 0x0, 0x0, 0x0, 0x0)  
/root/project/hugo/hugolib/content\_map\_page.go:164 +0x62c  
github(dot)com/gohugoio/hugo/hugolib.(\*pageMap).assemblePages.func1(0xc0009d80c0, 0x2a, 0x1b31c20, 0xc000a60ba0, 0xc0006bdd00)  
/root/project/hugo/hugolib/content\_map\_page.go:358 +0x157  
github(dot)com/armon/go-radix.recursiveWalk(0xc000a60c00, 0xc0006bde10, 0xc06b00)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:519 +0xf7  
github(dot)com/armon/go-radix.recursiveWalk(0xc000a60bd0, 0xc0006bde10, 0xf34b09)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:525 +0x85  
github(dot)com/armon/go-radix.recursiveWalk(0xc000539140, 0xc0006bde10, 0x0)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:525 +0x85  
github(dot)com/armon/go-radix.recursiveWalk(0xc000a04c00, 0xc0006bde10, 0x0)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:525 +0x85  
github(dot)com/armon/go-radix.(\*Tree).Walk(…)  
/go/pkg/mod/github.com/armon/go-radix@v1.0.0/radix.go:447  
github(dot)com/gohugoio/hugo/hugolib.(\*pageMap).assemblePages(0xc0009f7b60, 0x0, 0x0)  
/root/project/hugo/hugolib/content\_map\_page.go:331 +0xf3  
github(dot)com/gohugoio/hugo/hugolib.(\*pageMaps).AssemblePages.func1(0xc0009f7b60, 0xc0005f2c40, 0xc000423f00)  
/root/project/hugo/hugolib/content\_map\_page.go:721 +0x6f  
github(dot)com/gohugoio/hugo/hugolib.(\*pageMaps).withMaps.func1(0xc0005f2c40, 0xc000423f68)  
/root/project/hugo/hugolib/content\_map\_page.go:788 +0x35  
github(dot)com/gohugoio/hugo/common/para.(\*errGroupRunner).Run.func1(0xc0005f2c38, 0x0)  
/root/project/hugo/common/para/para.go:52 +0x36  
golang(dot)org/x/sync/errgroup.(\*Group).Go.func1(0xc000512270, 0xc0005fb920)  
/go/pkg/mod/golang.org/x/sync@v0.0.0-20190911185100-cd5d95a43a6e/errgroup/errgroup.go:57 +0x60  
created by golang(dot)org/x/sync/errgroup.(\*Group).Go  
/go/pkg/mod/golang.org/x/sync@v0.0.0-20190911185100-cd5d95a43a6e/errgroup/errgroup.go:54 +0x6d

C:\Users\pitje\Documents\Eigene-Websites\dotm2\>hugo env  
Hugo Static Site Generator v0.68.3/extended windows/amd64 BuildDate: unknown  
GOOS=“windows”  
GOARCH=“amd64”  
GOVERSION=“go1.14.1”

I switched to the last version to make sure that the error is not due to a new maybe not stable version.

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [April 15, 2020, 11:06am UTC](https://discourse.gohugo.io/t/another-panic-runtime-error-invalid-memory-address-or-nil-pointer-dereference/24763/6 "2020-04-15T11:06:47Z")

</div>

You have [non-matching shortcode tags](https://github.com/magoley/dotm3/blob/master/content/blog/folge%201%20working%20agreements.md).

---

<div class="post-metadata">

**Author:** ![magoley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/magoley/32/11085_2.png) [@magoley](https://discourse.gohugo.io/u/magoley)\
**Post date:** [April 15, 2020, 11:18am UTC](https://discourse.gohugo.io/t/another-panic-runtime-error-invalid-memory-address-or-nil-pointer-dereference/24763/7 "2020-04-15T11:18:53Z")

</div>

you precisly meant "{{\<\*\*/\*\*rawhtml \>}} "

This was 2 times closing I simply erased the “/” and it works.

Thx for the superfast help

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [April 17, 2020, 11:18am UTC](https://discourse.gohugo.io/t/another-panic-runtime-error-invalid-memory-address-or-nil-pointer-dereference/24763/8 "2020-04-17T11:18:54Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
