Applied Energistics 2

Applied Energistics 2

137M Downloads

[1.16.3] Dedicated server crash on changing settings on a fuzzy card on an export bus. java.lang.IllegalArgumentException: fromKey > toKey

ProsperCraft opened this issue ยท 9 comments

commented

Describe the bug
When changing the settings on a fuzzy card a player caused the dedicated server to crash.
The server crashes now when the player logs back in without any interactions.

To Reproduce
Set up a dedicated server and connect and change the export bus with a fuzzy card in it
Change the settings on that card.

I have uploaded the entire server zip-
https://www.dropbox.com/s/999mjc6bi4htgz4/ae2crashmodpackworld.tar.gz?dl=1

Expected behavior

Additional context
Crashlog-
https://gist.github.com/ProsperCraft/29f457e1e6d33e42122482e76d214a15
Server log-
https://gist.github.com/ProsperCraft/7242da265769f53f9f6c3818d42295e3

Second crash on player logging in -
https://gist.github.com/ProsperCraft/4b33d9db2f4f41485947825d7f24b45c

A third crash from a different player going to the area-
https://gist.github.com/ProsperCraft/bda5d8a95943a1edec09c38376bf1ca1

Environment

  • Environment:
    Centos 7
    openjdk version "1.8.0_262"
    OpenJDK Runtime Environment (build 1.8.0_262-b10)
    fabric-1.16.1-geckolib-2.0.0
    Modpack - The Adventures of Halk for 1.16 Version 0.11
    appliedenergistics2-fabric-8.1.0-alpha.12
commented

I've had this same issue.

crash-2021-01-16_23.22.52-server.txt

The setup:
A 10 priority storage bus with a fuzzy card, on an Iron Chest.
The storage bus is configured to store stone swords with 1 durability missing (130/131).
Then I open up my wireless AE system and start searching for stone sword. Before I get to type "Sto", the game crashes.

commented

https://paste.shockbyte.com/xapogukovojebobocula.rb
Same problem here, had an export bus going into a trash can with a fuzzy card with armor

commented

Can confirm this issue also occurs on forge builds.

commented

Experienced this myself.

commented

Can this be resolved by implementing Comparable<T> in the ItemDamageBound static class, overriding compareTo(ItemDamageBound b) to return Integer.compareTo(b.itemDamage, this.itemDamage)?

static class ItemDamageBound {
final int itemDamage;
public ItemDamageBound(int itemDamage) {
this.itemDamage = itemDamage;
}
}

commented

It might be fixed with the new VERY EXPERIMENTAL PLEASE MAKE A BACKUP 8.3.0-alpha.1 build given that it merges many forge branch commits, but that probably has other bugs as well... That will probably have to wait until we manage to get more stable 8.3.0 builds... If you want to help by testing them out, please go ahead :)

commented

A player reported this crash on a single player world with AOF3 2.7.4.

This setup:
unknown

https://hastebin.com/bosehogika.yaml

I'll check if they want to try the experimental build.

commented

Fixed indeed in the experimental builds.

commented

Can confirm also occurs with forge https://termbin.com/j21f

Specifically i had some hammers from excompressium in my AE that i was exporting because they were stuck in the terminal unable to be removed. so i set a fuzzy card to match any and it crashed.

Edit: ok this one is my fault.. I had hammers inside a autohammer from Exconpressium. Excompressium DOES NOT allow you to extract from those slots only insert so when the storage bus "saw" the items and tried to export them into the chest they were unable to be removed. (Not sure if this is on AE for trying to remove items from unremovable slots or on Excompressium for making those slots not able to be extracted from.) Im going to guess this is a similar situation to these other issues.