Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

AllowInventory when building schematic causes crash

AstroBeagle opened this issue ยท 3 comments

commented

Some information

Operating system: Windows 11
Java version: 18?
Minecraft version: 1.17
Baritone version:
baritone-standalone-fabric-1.7.1.jar
https://github.com/cabaletta/baritone/actions/runs/1451572684

Exception, error or logs

latest.log

How to reproduce

  1. allowInventory = true
  2. build schematic

Final checklist

  • I know how to properly use check boxes
  • I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
  • I have included logs, exceptions and / or steps to reproduce the issue.
  • I have not used any OwO's or UwU's in this issue.
commented

Came across teh same issue.
Windows 10, MInecraft 1.18.1
FabricLoader with Optifine_1.18.1_HD_U_H4
Too lazy to dig out the specific crash reports, but it is a null pointer exception when calling a specific method.

Reproduceable through the described steps.

commented

Having the same issue using Fabric with optifine 1.18.1. Here is the crash report: ---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!

Time: 2/6/22, 1:29 AM
Description: Unexpected error

java.lang.NullPointerException: Cannot invoke "net.minecraft.class_2680.method_26204()" because "" is null
at baritone.process.BuilderProcess.a(Unknown Source)
at baritone.process.BuilderProcess.onTick(Unknown Source)
at baritone.utils.PathingControlManager.a(Unknown Source)
at baritone.behavior.PathingBehavior.onTick(Unknown Source)
at baritone.event.GameEventHandler.a(Unknown Source)
at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
at baritone.event.GameEventHandler.onTick(Unknown Source)
at net.minecraft.class_310.handler$zzh000$runTick(class_310.java)
at net.minecraft.class_310.method_1574(class_310.java:1720)
at net.minecraft.class_310.method_1523(class_310.java:1086)
at net.minecraft.class_310.method_1514(class_310.java:733)
at net.minecraft.client.main.Main.main(Main.java:238)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:608)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

A detailed walkthrough of the error, its code path and all known details is as follows:

-- Head --
Thread: Render thread
Stacktrace:
at baritone.process.BuilderProcess.a(Unknown Source)
at baritone.process.BuilderProcess.onTick(Unknown Source)
at baritone.utils.PathingControlManager.a(Unknown Source)
at baritone.behavior.PathingBehavior.onTick(Unknown Source)
at baritone.event.GameEventHandler.a(Unknown Source)
at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
at baritone.event.GameEventHandler.onTick(Unknown Source)
at net.minecraft.class_310.handler$zzh000$runTick(class_310.java)

-- Affected level --
Details:
All players: 1 total; [class_746['That1ShortGuy'/113, l='ClientLevel', x=-96.49, y=63.94, z=54.71]]
Chunk stats: 1521, 1021
Level dimension: minecraft:overworld
Level spawn location: World: (0,66,16), Section: (at 0,2,0 in 0,4,1; chunk contains blocks 0,-64,16 to 15,319,31), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
Level time: 204753 game time, 20355 day time
Server brand: fabric
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.class_638.method_8538(class_638.java:517)
at net.minecraft.class_310.method_1587(class_310.java:2402)
at net.minecraft.class_310.method_1514(class_310.java:757)
at net.minecraft.client.main.Main.main(Main.java:238)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:608)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- Last reload --
Details:
Reload number: 1
Reload reason: initial
Finished: Yes
Packs: Default, Glowing+Ores+1.17.zip, Fabric Mods

-- System Details --
Details:
Minecraft Version: 1.18.1
Minecraft Version ID: 1.18.1
Operating System: Windows 10 (amd64) version 10.0
Java Version: 17.0.1, Microsoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
Memory: 2476741336 bytes (2362 MiB) / 5435817984 bytes (5184 MiB) up to 8589934592 bytes (8192 MiB)
CPUs: 12
Processor Vendor: GenuineIntel
Processor Name: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
Identifier: Intel64 Family 6 Model 165 Stepping 5
Microarchitecture: unknown
Frequency (GHz): 4.10
Number of physical packages: 1
Number of physical CPUs: 6
Number of logical CPUs: 12
Graphics card #0 name: NVIDIA GeForce RTX 3060
Graphics card #0 vendor: NVIDIA (0x10de)
Graphics card #0 VRAM (MB): 4095.00
Graphics card #0 deviceId: 0x2504
Graphics card #0 versionInfo: DriverVersion=30.0.15.1123
Memory slot #0 capacity (MB): 16384.00
Memory slot #0 clockSpeed (GHz): 3.07
Memory slot #0 type: DDR4
Memory slot #1 capacity (MB): 8192.00
Memory slot #1 clockSpeed (GHz): 3.07
Memory slot #1 type: DDR4
Memory slot #2 capacity (MB): 16384.00
Memory slot #2 clockSpeed (GHz): 3.07
Memory slot #2 type: DDR4
Memory slot #3 capacity (MB): 8192.00
Memory slot #3 clockSpeed (GHz): 3.07
Memory slot #3 type: DDR4
Virtual memory max (MB): 56211.29
Virtual memory used (MB): 20210.51
Swap memory total (MB): 7168.00
Swap memory used (MB): 139.13
JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx8G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
Launched Version: fabric-loader-0.12.12-1.18.1
Backend library: LWJGL version 3.2.2 build 10
Backend API: NVIDIA GeForce RTX 3060/PCIe/SSE2 GL version 3.2.0 NVIDIA 511.23, NVIDIA Corporation
Window size: 1920x1080
GL Caps: Using framebuffer using OpenGL 3.2
GL debug messages:
Using VBOs: Yes
Is Modded: Definitely; Client brand changed to 'fabric'; Server brand changed to 'fabric'
Type: Integrated Server (map_client.txt)
Graphics mode: fancy
Resource Packs: vanilla, file/Glowing+Ores+1.17.zip (incompatible)
Current Language: English (US)
CPU: 12x Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
Server Running: true
Player Count: 1 / 8; [class_3222['That1ShortGuy'/113, l='ServerLevel[idk testing]', x=-96.49, y=63.94, z=54.71]]
Data Packs: vanilla
OptiFine Version: OptiFine_1.18.1_HD_U_H4
OptiFine Build: 20211212-175054
Render Distance Chunks: 16
Mipmaps: 4
Anisotropic Filtering: 1
Antialiasing: 0
Multitexture: false
Shaders: null
OpenGlVersion: 3.2.0 NVIDIA 511.23
OpenGlRenderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
OpenGlVendor: NVIDIA Corporation
CpuCount: 12

-- OptiFabric --
Details:
OptiFine jar designed for: 1.18.1
OptiFine jar version: OptiFine_1.18.1_HD_U_H4
OptiFine jar status: Valid OptiFine installer
OptiFine remapped jar: C:/Users/braxt/AppData/Roaming/.minecraft/.optifine/OptiFine_1.18.1_HD_U_H4/Optifine-mapped.jar
OptiFabric error:

commented

#3308 merged closing this