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

[Bug]: ClaimHandler.read can cause a watchdog timeout #16

Open
5 tasks done
Jamalam360 opened this issue Aug 9, 2023 · 6 comments
Open
5 tasks done

[Bug]: ClaimHandler.read can cause a watchdog timeout #16

Jamalam360 opened this issue Aug 9, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@Jamalam360
Copy link

Bug Description

The methods earth.terrarium.cadmus.common.claims.ClaimHandler.read and com.teamresourceful.resourcefullib.common.utils.SaveHandler.read can timeout the server and cause it to be killed by the watchdog.

I have specifically ran into this twice through the earth.terrarium.cadmus.common.claims.ClaimApiImpl.canDamageEntity method.

How to Reproduce?

This is how we've caused it, twice:

  1. Go into player 1's claim
  2. Get Player 2 to shoot arrows at blocks or at player 1
  3. (optional? may not be needed) get player 2 to pick up the arrows from the blocks

Expected Behavior

The method should not trigger the watchdog 😆

Version

1.0.0

Mod Loader Version

1.20.1 0.19.2

Mod Loader

Quilt

Logs or additional context

https://mclo.gs/luPwtPQ

Code of Conduct

  • I have searched the issue tracker and confirmed that the issue has not been reported
  • I have checked the FAQ (if one is present) and my issue is not listed
  • I have verified that I am using the latest version of the mod
  • I have verified that I have installed all the required dependencies for the mod
  • I have verified that I do not have Optifine installed. We will close issues if we detect Optifine is in your pack. We cannot fix Optifine issues. Please do not report issues with Optifine present.
@Jamalam360 Jamalam360 added the bug Something isn't working label Aug 9, 2023
@Jamalam360 Jamalam360 changed the title [Bug]: Watchdog Timeout [Bug]: ClaimHandler.read can cause a watchdog timeout Aug 9, 2023
@ThatGravyBoat
Copy link
Member

The method that its timing out on is literally a vanilla call

@Jamalam360
Copy link
Author

OK, well that doesn't rule out Cadmus from being at fault in particular. Is there a chance that the NBT it's trying to save is huge/wrong in some other way?

@ThatGravyBoat
Copy link
Member

the nbt for cadmus is very small like extremely small, its 8 bytes per chunk and then 38 bytes for the key so if you had 100k chunks thats less than an mb

@Jamalam360
Copy link
Author

This is odd then. I've done a mixin export and SavedData is clean, nothing suspicious there.

@AlexNijjar
Copy link
Member

Have you ran into this any more times since the initial report? I've been unable to reproduce it, and as gravy said, it's watchdoging on a vanilla call. Perhaps one of the other mods you have installed is messing with nbt reading?

@Jamalam360
Copy link
Author

It still occurs every time the reproduction step happens, but I haven't updated the pack in a while so it might have been fixed. The mixin export didn't show anything immediately suspicious but I didn't look too deep into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants