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
Error executing task on Client - java.lang.IllegalArgumentException: Default value cannot be lower than minimum value! #13
Comments
This error is saying the client has received some attribute value that's lower the minimum allowed value.
|
@BillyGalbreath Are you sure it isn't a conflict with a Purpur patch and Citizens (fake player entities)? Here is a self contained zipped test server you can use to easily reproduce the problem for testing and debugging. --- Removed --- Launch Use a vanilla 1.15.2 client with The only plugin is Citizens dev 1857. This error only occurs on Purpur. It does not occur with Tuinity or Paper.
This error occurs on Tuinity and Purpur, caused by Tuinity's patches. It does not occur with Paper.
When testing with just Paper, no errors occur and client lag spikes when loading chunks are significantly less impactful. |
Ok, so i spent more time looking into this than I wanted to. In the end, this is actually a vanilla bug in the client. This bit of code is called in the client when the server needs to update an attribute for an entity:
Here is the constructor of the attribute
The middle check is the bit of code that's causing the error. The problem is There is nothing I can do to fix this. I was able to easily recreate the problem, even without Citizens, by simply summoning a bat into the game. Purpur sets the Added this info to an existing Mojira ticket that I believe might be related: https://bugs.mojang.com/browse/MC-172801 |
As for the NPE
This is something to do with Tuinity's optimized tracker. The error goes away if you disable that in |
Is Purpur doing something to update or check attributes when entities are loaded into view of the client? Since it does not occur with Tuinity or Paper. Edit: Would it be caused by this patch / commit? In which case, does the attribute need to be set if ridables is not used at all? 8888839 https://github.com/pl3xgaming/Purpur/blob/master/patches/server/0008-Ridables.patch As for the NPE, I forwarded it to Tuinity a couple days ago but it's good to know that I can disable the optimized tracker in the meantime until it is fixed. |
RE: NPE, are you sure the error goes away if you disable the optimized tracker? I have It seems unrelated to the optimized tracker setting but caused by the Tuinity patch. |
You'll have to take this to Tuinity as it is tracker related. Tuinity optimizes the entity tracker for performance, but Citizens also modifies the tracker for their own use as well. The two are known to conflict. |
Upstream has released updates that appear to apply and compile correctly Paper Changes: 8c74d3126 Updated Upstream (Bukkit) (#5359) fd3c66a91 bug #5362 - correctly pass "render type" when registering a new scoreboard objective 39c487b37 Add per-command perms for paper command cdbf2578c Add Item Rarity API (#5352) d80e43647 [CI-SKIP] Removal from the MIT list (#5345) Tuinity Changes: aea6b8347 Merge dev/playerchunkloading 722c7ca8a Use hash table for maintaing changed block set 98ae59d85 Custom table implementation for blockstate state lookups 8b8704fb6 Oprimise map impl for tracked players ea71d6ba4 Optimise snow & ice in chunk ticking 9871d4ce5 Remove chunk lookup & lambda allocation from counting mobs 5a4a35f3e Add patreon 7d93d9618 Refactor data management for region manager c3035219f Change license from MIT to LGPLv3 Airplane Changes: 580f380b6 Updated Upstream (Tuinity) 82253fd36 Early return optimization for target finding 9572643bb Cache entityhuman display name 5df98254f Remove iterators from inventory contains 18d2be193 Merge pull request #14 from violetwtf/patch-1 f716d4c33 Merge pull request #13 from violetwtf/master 128cbe519 Reduce entity chunk ticking checks from 3 to 1 03ac0933b Skip copying unloading tile entities 97dd027b5 Smaller pool size for tracking 9e9f57be4 Only set up Flare if token is available
Describe the bug
@BillyGalbreath Similar to this issue Tuinity/Tuinity#55 except the client seems to spam this separate error to the client, unique to connecting with Purpur.
To Reproduce
Connect with a vanilla 1.15.2 client on Purpur dev 507 with Citizens2 dev 1852.
purpur.yml
https://paste.ubuntu.com/p/yYd9vk74JS/
tuinity.yml
https://paste.ubuntu.com/p/KzV4Y4j43j/
Plugins
[08:35:03 INFO]: Plugins (1): Citizens
Version
This server is running Purpur version git-Purpur-508 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
Is bug present on Paper, Spigot, CraftBukkit, or Vanilla
No to all. Just Purpur as far as I can tell from testing.
The text was updated successfully, but these errors were encountered: