SmileycorpMC / DawnCraft-Tweaks

MIT License
2 stars 9 forks source link

Human Companions Dawncraft Tweaks Easter Egg Hangs Server World Generation #3

Closed Davoleo closed 7 months ago

Davoleo commented 1 year ago

@PierKnight and I have been investigating some crash reports and logs after server hang watchdogs when using the chunky pregenerator.

Reading into the stacktraces we realized this mod is actually causing the server crash when replacing the spawn of a human companion with a custom one in world, more precisely on this line: https://github.com/SmileycorpMC/DawnCraft-Tweaks/blob/master/src/main/java/com/afunproject/dawncraft/integration/humancompanions/HCEvents.java#L48 We don't know how precisely that becomes a vanilla IndexOutOfBound issue but since part of this feature is just an easter egg it would be cool if it was hotfixed and disabled or at least able to be disabled via config while an actual fix of the problem is developed.

We also found a stacktrace call that references this class: https://github.com/SmileycorpMC/DawnCraft-Tweaks/blob/master/src/main/java/com/afunproject/dawncraft/integration/dcmobs/SimpleMobsEvents.java Not sure how related it is, but it might give more insight, I'll also share some of the crash reports.

Crash Report [dedicated server]: crash-2023-07-20_15.37.30-server.txt Crash Report [integrated server]: message.txt

SmileycorpMC commented 1 year ago

Firstly I'd recommend disabling server watchdog in the forge config, this modpack has a few issues that can cause it,

Secondly, as it's one of our patron rewards I can't disable the functionality, but I will have a look at why it's crashing, and why it's causing ticks to take so long or crashing and see if that's fixable, or potentially if there's another way to do it. From looking at the method, the line that's mentioned is the only line of it that could potentially cause issue, so I'll see if there's ways around it.

Davoleo commented 1 year ago

We've already tried disabling the server watchdog before, the result is the same though, the server thread just freezes and the only way out of it is to kill the process entirely, which btw also doesn't give any crash-report so in this case watchdog actually helped tracking down the cause.

Thanks for your time to investigate. Since the issue is quite serious and a bit frustrating when trying to pregenerate worlds is creating a config option for it that unfeasible? even if it's a Patreon feature, we could disable it for our instance specifically and other users that are not interested in those rewards could do it as well, while still keeping the default value to enabled, at least to temporarily fix this crash?

Shybella commented 1 year ago

Experiencing this now

log: https://pastebin.com/raw/HC5B48sg

Disabling watchdog does not stop this from happening.

Shybella commented 1 year ago

What can be done or a quick solution? I removed Humancompanions but that does not solve the issue because the issue doesn't occur in that mod, used BadMobs to disable knights from spawning but issue will occurs.

I have no issues with supporting you on Patreon, I just need the fix if I do that. Thanks

I was just going to recompile this mod with https://github.com/SmileycorpMC/DawnCraft-Tweaks/blob/master/src/main/java/com/afunproject/dawncraft/integration/humancompanions/HCEvents.java#L48 just removed and continue pregeneration, I just didn't want another mod to manage.

Shybella commented 1 year ago

What's the point of having an issues section if it just gets ignored??

SettingDust commented 10 months ago

What's the point of having an issues section if it just gets ignored??

@Shybella Be patient and polite. It's a free and open-source project under an MIT license(https://github.com/SmileycorpMC/DawnCraft-Tweaks/blob/master/LICENSE). No one has the liability or warranty to pick up your issue.

Your log is truncated and not a crash report.

For this issue. As the original post said

Not sure how related it is

It's not enough to prove the line causes it. I think a spark profile is helpful. It's just stuck at getting chunks from the world. The server watchdog only shows the stack trace when the tick achieves the throttle. Not all the tick is running for the stack trace.

Shybella commented 10 months ago

What's the point of having an issues section if it just gets ignored??

@Shybella Be patient and polite. It's a free and open-source project under an MIT license(https://github.com/SmileycorpMC/DawnCraft-Tweaks/blob/master/LICENSE). No one has the liability or warranty to pick up your issue.

Your log is truncated and not a crash report.

For this issue. As the original post said

Not sure how related it is

It's not enough to prove the line causes it. I think a spark profile is helpful. It's just stuck at getting chunks from the world. The server watchdog only shows the stack trace when the tick achieves the throttle. Not all the tick is running for the stack trace.

This is a joke, right? Have you not seen OPs post? You cannot even generate a world for more than 5 minutes without the crash happening, its super easy to reproduce with chunky.

It's actually insane because the issue has way above average debug data than you'd find on average and enough fingers pointing at what the problem is and yet still an excuse.

Lazyboneitus, even if a PR was made it would be ignored.

SmileycorpMC commented 10 months ago

The issue is already fixed, I'm just waiting on the pack to update.

SettingDust commented 10 months ago

This is a joke, right? Have you not seen OPs post? You cannot even generate a world for more than 5 minutes without the crash happening, its super easy to reproduce with chunky.

Where is the logic?

Lazyboneitus, even if a PR was made it would be ignored.

Where is the PR?

Shybella commented 7 months ago

Any update? It's been a few months

SmileycorpMC commented 7 months ago

Pack should hopefully be updating soon, unfortunatley I don't have any control on when the actual pack updates.

Shybella commented 7 months ago

Pack should hopefully be updating soon, unfortunatley I don't have any control on when the actual pack updates.

thanks for the response and hard work

Shybella commented 7 months ago

amazing update, this is fixed now

SmileycorpMC commented 7 months ago

Sorry it took so long for the release to come out and fix the issue.