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

Hugo panics when "disableKinds page" and "defaultContentLanguage custom" #12144

Closed
MarlonLuan opened this issue Feb 24, 2024 · 1 comment · Fixed by #12145
Closed

Hugo panics when "disableKinds page" and "defaultContentLanguage custom" #12144

MarlonLuan opened this issue Feb 24, 2024 · 1 comment · Fixed by #12145

Comments

@MarlonLuan
Copy link

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.123.3-a75a659f6fc0cb3a52b2b2ba666a81f79a459376+extended linux/amd64 BuildDate=2024-02-23T17:09:20Z VendorInfo=gohugoio

Does this issue reproduce with the latest release?

git clone https://github.com/MarlonLuan/hugo-0.123.x
cd hugo-0.123.x
hugo

Start building sites … 
hugo v0.123.3-a75a659f6fc0cb3a52b2b2ba666a81f79a459376+extended linux/amd64 BuildDate=2024-02-23T17:09:20Z VendorInfo=gohugoio

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x179bed0]

goroutine 40 [running]:
github.com/gohugoio/hugo/common/paths.(*Path).IsBundle(...)
        /root/project/hugo/common/paths/pathparser.go:533
github.com/gohugoio/hugo/common/paths.(*Path).Base(...)
        /root/project/hugo/common/paths/pathparser.go:461
github.com/gohugoio/hugo/hugolib.(*pageMap).AddFi.func1({0x41043a0, 0xc000329580})
        /root/project/hugo/hugolib/content_map.go:196 +0x1d0
github.com/gohugoio/hugo/hugolib.(*pageMap).AddFi(0xc00094b500, {0x41043a0, 0xc000329580})
        /root/project/hugo/hugolib/content_map.go:218 +0x113
github.com/gohugoio/hugo/hugolib.(*pagesCollector).Collect.func3({0xc000b55f38?, 0xc000b55f18?}, {0x41043a0, 0xc000329580})
        /root/project/hugo/hugolib/pages_capture.go:116 +0x46
github.com/gohugoio/hugo/common/rungroup.Run[...].func1()
        /root/project/hugo/common/rungroup/rungroup.go:64 +0xbd
golang.org/x/sync/errgroup.(*Group).Go.func1()
        /root/project/gomodcache/golang.org/x/sync@v0.6.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 8
        /root/project/gomodcache/golang.org/x/sync@v0.6.0/errgroup/errgroup.go:75 +0x96
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants