0.93.* giving "stack exceeds" error

from: Hugo 0.93.0 Released - #10 by baker

All fine up to 0.92.2 but 0.93.* giving me a “stack exceeds” error.

The culprit seems to be this line in baseof.html :
{{ block "main" . }} {{ end }}

I remove it and hugo server and hugo run fine (of course parts of site missing).

How can I do a workaround?

There is an infinite recursion in one of the project’s templates.

You need to either share the full project or a repo with sample content (that reproduces the problem) for people in this forum to have a look.

I already told him that the error messages he reported in the link above where not hugo errors.

1 Like

Sorry, only HTML is online, not the dev. Meanwhile I cloned the dev site and did some criss-cross testing (now with hugo 0.93.2). It comes down to one _index.md (there are a few, but just one causes an issue):

---
title: Bake the Hugo
draft: false
url: /hugo
tags: null
keywords:
    - hugo
    - baking
description: A site about Hugo - the static site generator - see what we can bake with Hugo
---

# Hugo - Static Site Generator
Well, you can look up all details about Hugo on the official Hugo website, [https://gohugo.io](https://gohugo.io). This site is more about my personal collection of shortcodes. But if you are totally new, I have a short [why Hugo](/hugo/why-hugo) page.

I nailed it down a bit further: When I change [https://gohugo.io](https://gohugo.io) to [gohugo.io](https://gohugo.io) the site works fine. The issue seems to be the https:// in the text link.

So my issue is basically solved. (I like to add that in < 0.93.* it was no problem)

The Renderer (tested with Goldmark) can render links (autolink extension).

Well, you can look up all details about Hugo on the official Hugo website, https://gohugo.io. This site is more about my personal collection of shortcodes. But if you are totally new, I have a short [why Hugo](/hugo/why-hugo) page.

redered as

Well, you can look up all details about Hugo on the official Hugo website, https://gohugo.io. This site is more about my personal collection of shortcodes. But if you are totally new, I have a short why Hugo page.

hi @ju52 , the link shared seems to be broken thanks

HI, I used the sample from@baker. Main part is the first link! :wink:

I never get to rendering anything, as soon as I do a [https://gohugo.io](https://gohugo.io) it crashes. Can also be related to my config.toml, where I have this lines:

[markup]
  [markup.goldmark]
    [markup.goldmark.renderer]
      unsafe = true
  [markup.highlight]
    anchorLineNos = false
    codeFences = true
    guessSyntax = false
    hl_Lines = ''
    lineAnchors = ''
    lineNoStart = 1
    lineNos = false
    lineNumbersInTable = true
    noClasses = true
    style = 'monokai'
    tabWidth = 4

I will look if any of those settings causes the crash later.

@ pitifi9191
Internal links don’t work outside its domain. But okay, here we go: hugo/why-hugo/ (it’s just a test site to play with some stuff, I know, that <!--more--> needs finetuning :wink: ) # done, removed the <!--more--> and use summary:

Final words: I can not reproduce this error in another Hugo container, even with the same config.toml settings.

1 Like

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