[SPIGOT-8034] Server crash while saving statistic change Created: 04/Apr/25 Updated: 13/Apr/25 Resolved: 13/Apr/25 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | iPyronic | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Statistic, bug, crash, save, spigot, statistics | ||
| Attachments: |
|
| Version: | CraftBukkit version 4477-Spigot-e339edc-ba251cc (MC: 1.21.5) (Implementing API version 1.21.5-R0.1-SNAPSHOT) |
| Guidelines Read: | Yes |
| Description |
|
What happens Attempting to increment Statistic.USE_ITEM for Material.CARROTS (and other crop blocks) in 1.21.5 causes /save-all to fail (no error in console), and causes the next auto save to crash the server.
What I expect to happen I expect either of these options:
Workarounds
Example plugin (TestStatisticCrash.jar This line is the cause of the crash: event.getPlayer().incrementStatistic(Statistic.USE_ITEM, Material.CARROTS);
Step-by-step instructions{}
(All of the save-all steps are optional and they don't affect whether or not the server crashes.)
Server log: 2025-04-03-1.log Crash log: crash-2025-04-03_22.11.07-server.txt Video showing that 1.21.5 has the issue and 1.21.4 doesn't: spigot_stat_test5.mp4
Extra notes:
|
| Comments |
| Comment by iPyronic [ 04/Apr/25 ] |
|
Sorry about the edit spam, I didn't know it would show every minor change like that. |