cabaletta / baritone

google maps for block game
GNU Lesser General Public License v3.0
7.22k stars 1.44k forks source link

Baritone crashes when trying to fill selected area #1646

Open dhalucario opened 4 years ago

dhalucario commented 4 years ago

Some information

Operating system: Fedora 31 (Workstation Edition) (Kernel: 5.6.7-200.fc31.x86_64) Java version: OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode) Minecraft version: 1.15.2 Baritone version: 1.5.3 Forge mods (if used): I'm using impact.

Exception, error or logs

2020-05-01-3.log

How to reproduce

Add your steps to reproduce the issue/bug experienced here. I marked an area and then used #sel set smooth_stone

Modified settings

To get the modified settings run #modified in game grafik grafik grafik

Final checklist

TheAifam5 commented 4 years ago

I spotted similar crash, looks like approxPlaceable adds NULL to the array which then later crashes at:

public boolean matches(@Nonnull BlockState blockstate) {
        Block block = blockstate.getBlock(); // crash cuz blockstate is NULL
        return block == this.block && stateHashes.contains(blockstate.hashCode());
    }

that might be also issue from my side while porting baritone to Fabric :)

EDIT: Crash log looks exactly the same as from my port so is an issue with Baritone.

EDIT2: BlockState is null for the items

[21:23:11] [main/INFO]: [STDOUT]: 2 kelp Block{minecraft:kelp}
[21:23:11] [main/INFO]: [STDOUT]: 1 tripwire_hook Block{minecraft:tripwire_hook}

also spotted that the inventory gets shuffled.

NatoBoram commented 3 years ago

I was also having this problem, but I'm using Fabric. I reported it here, but idk if it's the same cause.