-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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 server crashes when lots of content files change within a short period of time #6193
Comments
Is there a repo that can be used to reproduce this? |
Sorry, I can't provide a repo to reproduce. I'm currently to busy to set something up. |
Hugo Static Site Generator v0.56.3/extended darwin/amd64 BuildDate: unknown
reappearance
and open 3 terminals.
since this issue is multithreaded, you may need to repeat the command multiple times in the third terminal.
If the reproduction is successful, you will see the above message. the above appears to be a problem in causefirst, I checked
as the error suggests, the wrong memory reference is the problem. To see this, I added a simple code above
The result is If this field is nil:
I checked if nil is assigned in If you look at the code a little bit further, you can see that all three of these things run on different goroutines.
At this point, In this case, this problem occurs when each goroutine is executed in the following order.
|
Wrap the field to make it accessible after initialization. Fixes gohugoio#6193
…used Wrap the field to make it accessible after initialization. Fixes #6193
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. |
I programatically delete and regenerate directories and markdown files. Running Hugo server at the same time often causes Hugo v0.56.3/extended windows/amd64 to crash. Here ist the log:
The text was updated successfully, but these errors were encountered: