AdvancementInfo

AdvancementInfo

3M Downloads

Game crash when revoking and granting advancements every tick

James103 opened this issue ยท 0 comments

commented

When revoking lots of advancements then granting lots of advancements in the same tick, the advancements screen may permanently crash on open. In other words, the game will crash, then every time the screen is opened, the game will crash again, until restart.
crash-2022-01-21_13.43.08-client.txt

To reproduce:

  1. Start a dedicated vanilla server.
  2. Join the game as a client of that server with the Advancement Info mod installed.
  3. Gain some advancements e.g. by killing a monster, getting stone or diamonds, or crafting an iron pickaxe.
  4. Give yourself a command block /give @s command_block.
  5. Place a repeating command block, then a chain command block on top.
  6. The repeating command block should have /advancement revoke @a everything and Needs Redstone.
  7. The chain command block should have /advancement grant @a everything and Always Active.
  8. Place a pressure plate next to the repeating command block.
  9. Step on the pressure plate.
  10. Open the advancements screen.
  11. Mouse over some advancements (if necessary -- the game may crash immediately).
  12. Game crash