-
Notifications
You must be signed in to change notification settings - Fork 972
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
thread 'main' has overflowed its stack #2065
Comments
Oh, I believe this is simply because each page extends the other. 🤦 I leave it here as a case for improving the behavior by reporting to the console that such setup is wrong instead of crashing due to stack overflow. If you don't want to consider it as a future enhancement, you may close it. Last but not least, many thanks to this community for creating Zola. 🙏 |
Weird that Tera is not catching that though! |
Facing the same error in Zola v0.17.2 windows build. Same site using Zola v0.17.2 is building fine on Fedora and Ubuntu (Github Actions).
I am not using macros or shortcodes. Only 4 taxonomies and one taxonomy is iterated for pages on home page. |
Is it the same case? Do you have templates extending each other? |
Templates extending each other, no. Just extending base.html in index.html and page.html. Code is available at https://github.com/0xcrypto/0xcrypto.github.io if you wanna take a look. I have now added macros but only after reporting this error. Unfortunately I wont be able to test again on windows or provide much information as my m.2 SSD having Windows is dead (different issue). |
I can reproduce it with the |
I used same codebase, same versions (0.17.2) on Linux and Windows though. In linux it works, in windows it does not. |
ah I tested on Mac |
Tried again today, didn't work in Windows but worked fine in WSL (Kali Linux). |
That should be fixed on the next branch |
Thank you @Keats, next is working! |
Bug Report
Environment
Zola version:
0.16.1
Pop!_OS 22.04 LTS (up to date, with kernel 6.0.12-76060006-generic)
Expected Behavior
zola serve
should just continue working, instead of crashing.Current Behavior
zola serve
crashes.Step to reproduce
Just quickstarting it by following the Overview doc, using the official sam.
config.tml
file: declared theme = "sam"base.html
, createdtemplates/base.html
file with this content:index.html
, createdtemplates/index.html
file with this content:It crashes after saving that content into
index.html
file, and also at start up:…/test_zola ❯ RUST_BACKTRACE=1 zola serve Building site... thread 'main' has overflowed its stack fatal runtime error: stack overflow Aborted (core dumped) …/test_zola took 1s❯
Hope it helps the investigation!
I'm very new to Zola, and depending on the outcome I might try to help as well.
Thanks!
The text was updated successfully, but these errors were encountered: