Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

Unhandled exception occured, this error is in your games log

DoctorWhiff opened this issue ยท 7 comments

commented

Some information

Operating system: Windows 10
Java version: Version 8 Update 361
Minecraft version: 1.19.3
Baritone version: 1.19.3
Other mods (if used): none

Exception, error or logs

[23:13:31] [main/INFO]: Loading Minecraft 1.19.3 with Fabric Loader 0.14.13
[23:13:31] [main/INFO]: Loading 53 mods:
- baritone-meteor 1.19.3-SNAPSHOT
- fabric-api 0.68.1+1.19.3
- fabric-api-base 0.4.19+8d1895cf72 via fabric-api
- fabric-api-lookup-api-v1 1.6.18+49abcf7e72 via fabric-api
- fabric-biome-api-v1 12.0.0+689f5e7172 via fabric-api
- fabric-block-api-v1 1.0.3+12bfe4ea72 via fabric-api
- fabric-blockrenderlayer-v1 1.1.28+c6af733c72 via fabric-api
- fabric-client-tags-api-v1 1.0.9+49abcf7e72 via fabric-api
- fabric-command-api-v1 1.2.19+f71b366f72 via fabric-api
- fabric-command-api-v2 2.1.15+49abcf7e72 via fabric-api
- fabric-commands-v0 0.2.36+df3654b372 via fabric-api
- fabric-containers-v0 0.1.44+df3654b372 via fabric-api
- fabric-content-registries-v0 3.4.11+49abcf7e72 via fabric-api
- fabric-convention-tags-v1 1.1.9+2894d6df72 via fabric-api
- fabric-crash-report-info-v1 0.2.12+aeb40ebe72 via fabric-api
- fabric-data-generation-api-v1 11.0.1+65e415cb72 via fabric-api
- fabric-dimensions-v1 2.1.39+48349a3f72 via fabric-api
- fabric-entity-events-v1 1.5.5+b83334a072 via fabric-api
- fabric-events-interaction-v0 0.4.37+422b77fb72 via fabric-api
- fabric-events-lifecycle-v0 0.2.38+df3654b372 via fabric-api
- fabric-game-rule-api-v1 1.0.28+2894d6df72 via fabric-api
- fabric-item-api-v1 2.1.4+fa25da9972 via fabric-api
- fabric-item-group-api-v1 2.1.6+b7096da872 via fabric-api
- fabric-key-binding-api-v1 1.0.28+aaaf9d3372 via fabric-api
- fabric-keybindings-v0 0.2.26+df3654b372 via fabric-api
- fabric-lifecycle-events-v1 2.2.8+2894d6df72 via fabric-api
- fabric-loot-api-v2 1.1.17+75e9821172 via fabric-api
- fabric-loot-tables-v1 1.1.21+9e7660c672 via fabric-api
- fabric-message-api-v1 5.0.12+6ede1da972 via fabric-api
- fabric-mining-level-api-v1 2.1.28+49abcf7e72 via fabric-api
- fabric-models-v0 0.3.25+11ba9c3b72 via fabric-api
- fabric-networking-api-v1 1.2.14+d9ac3c3972 via fabric-api
- fabric-networking-v0 0.3.31+df3654b372 via fabric-api
- fabric-object-builder-api-v1 5.1.6+49abcf7e72 via fabric-api
- fabric-particles-v1 1.0.18+fbde993d72 via fabric-api
- fabric-registry-sync-v0 2.0.1+2608564672 via fabric-api
- fabric-renderer-api-v1 2.1.0+2063beff72 via fabric-api
- fabric-renderer-indigo 0.6.23+11ba9c3b72 via fabric-api
- fabric-renderer-registries-v1 3.2.28+df3654b372 via fabric-api
- fabric-rendering-data-attachment-v1 0.3.23+48349a3f72 via fabric-api
- fabric-rendering-fluids-v1 3.0.16+3067f46372 via fabric-api
- fabric-rendering-v0 1.1.31+df3654b372 via fabric-api
- fabric-rendering-v1 1.11.7+49abcf7e72 via fabric-api
- fabric-resource-conditions-api-v1 2.2.0+280be3ab72 via fabric-api
- fabric-resource-loader-v0 0.10.2+f6c919d672 via fabric-api
- fabric-screen-api-v1 1.0.38+8c84281072 via fabric-api
- fabric-screen-handler-api-v1 1.3.10+689f5e7172 via fabric-api
- fabric-sound-api-v1 1.0.6+75e9821172 via fabric-api
- fabric-transfer-api-v1 2.1.11+28ac448f72 via fabric-api
- fabric-transitive-access-wideners-v1 2.1.0+0efcd39b72 via fabric-api
- fabricloader 0.14.13
- java 17
- minecraft 1.19.3
[23:13:31] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/C:/Users/calvi/AppData/Roaming/.minecraft/libraries/net/fabricmc/sponge-mixin/0.11.4+mixin.0.8.5/sponge-mixin-0.11.4+mixin.0.8.5.jar Service=Knot/Fabric Env=CLIENT
[23:13:31] [main/INFO]: Compatibility level set to JAVA_17
[23:13:36] [main/INFO]: Building optimized datafixer
[23:13:40] [Render thread/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[23:13:40] [Render thread/INFO]: Setting user: DoctorWhiff
[23:13:41] [Render thread/INFO]: [Indigo] Registering Indigo renderer!
[23:13:42] [Render thread/INFO]: Backend library: LWJGL version 3.3.1 SNAPSHOT
[23:13:43] [Render thread/INFO]: Found non-pack entry 'C:\Users\calvi\AppData\Roaming.minecraft\resourcepacks\OptiFine_1.16', ignoring
[23:13:43] [Render thread/INFO]: Found non-pack entry 'C:\Users\calvi\AppData\Roaming.minecraft\resourcepacks\OptiFine_1.16.3_HD_U_G3.jar', ignoring
[23:13:44] [Render thread/INFO]: Narrator library for x64 successfully loaded
[23:13:44] [Render thread/INFO]: Reloading ResourceManager: vanilla, file/John Smith Legacy 1.19.3 v5.zip, file/John Smith Legacy Models 1.19 v3.4.1.zip, Fabric Mods (Fabric API, Fabric API Base, Fabric API Lookup API (v1), Fabric Biome API (v1), Fabric BlockRenderLayer Registration (v1), Fabric Client Tags, Fabric Command API (v1), Fabric Command API (v2), Fabric Commands (v0), Fabric Containers (v0), Fabric Content Registries (v0), Fabric Convention Tags, Fabric Crash Report Info (v1), Fabric Data Generation API (v1), Fabric Dimensions API (v1), Fabric Entity Events (v1), Fabric Events Interaction (v0), Fabric Events Lifecycle (v0), Fabric Game Rule API (v1), Fabric Item API (v1), Fabric Item Group API (v1), Fabric Key Binding API (v1), Fabric Key Bindings (v0), Fabric Lifecycle Events (v1), Fabric Loot API (v2), Fabric Loot Tables (v1), Fabric Message API (v1), Fabric Mining Level API (v1), Fabric Models (v0), Fabric Networking API (v1), Fabric Networking (v0), Fabric Object Builder API (v1), Fabric Particles (v1), Fabric Registry Sync (v0), Fabric Renderer API (v1), Fabric Renderer - Indigo, Fabric Renderer Registries (v1), Fabric Rendering Data Attachment (v1), Fabric Rendering Fluids (v1), Fabric Rendering (v0), Fabric Rendering (v1), Fabric Resource Conditions API (v1), Fabric Resource Loader (v0), Fabric Screen API (v1), Fabric Screen Handler API (v1), Fabric Sound API (v1), Fabric Transfer API (v1), Fabric Transitive Access Wideners (v1), Fabric Loader)
[23:13:45] [Render thread/INFO]: [STDOUT]: Baritone settings file not found, resetting.
[23:13:50] [Render thread/WARN]: Missing sound for event: minecraft:item.goat_horn.play
[23:13:50] [Render thread/WARN]: Missing sound for event: minecraft:entity.goat.screaming.horn_break
[23:13:51] [Render thread/INFO]: OpenAL initialized on device OpenAL Soft on Headset Earphone (HyperX Virtual Surround Sound)
[23:13:51] [Render thread/INFO]: Sound engine started
[23:13:51] [Render thread/INFO]: Created: 4096x2048x4 minecraft:textures/atlas/blocks.png-atlas
[23:13:51] [Render thread/INFO]: Created: 1024x1024x4 minecraft:textures/atlas/signs.png-atlas
[23:13:51] [Render thread/INFO]: Created: 4096x2048x4 minecraft:textures/atlas/shield_patterns.png-atlas
[23:13:51] [Render thread/INFO]: Created: 2048x1024x4 minecraft:textures/atlas/banner_patterns.png-atlas
[23:13:51] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/chest.png-atlas
[23:13:51] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/beds.png-atlas
[23:13:51] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/shulker_boxes.png-atlas
[23:13:51] [Render thread/WARN]: Shader rendertype_entity_translucent_emissive could not find sampler named Sampler2 in the specified shader program.
[23:13:51] [Render thread/INFO]: Created: 1024x512x0 minecraft:textures/atlas/particles.png-atlas
[23:13:51] [Render thread/INFO]: Created: 1024x1024x0 minecraft:textures/atlas/paintings.png-atlas
[23:13:51] [Render thread/INFO]: Created: 512x256x0 minecraft:textures/atlas/mob_effects.png-atlas
[23:14:05] [Render thread/INFO]: Connecting to minecraft.bylenny.com, 25565
[23:14:07] [Worker-Bootstrap-3/INFO]: 4445 Datafixer optimizations took 30773 milliseconds
[23:14:08] [Render thread/INFO]: [System] [CHAT] DoctorWhiff joined the game
[23:14:08] [Render thread/INFO]: Loaded 518 advancements
[23:14:15] [Render thread/INFO]: [System] [CHAT] [Baritone] > modified
[23:14:15] [Render thread/INFO]: [System] [CHAT] [Baritone] All modified settings:
[23:14:15] [Render thread/INFO]: [System] [CHAT] [Baritone] --
[23:14:15] [Render thread/INFO]: [System] [CHAT] [Baritone] --
[23:14:15] [Render thread/INFO]: [System] [CHAT] [Baritone] --
[23:14:15] [Render thread/INFO]: [System] [CHAT] [Baritone] --
[23:14:15] [Render thread/INFO]: [System] [CHAT] [Baritone] --
[23:14:15] [Render thread/INFO]: [System] [CHAT] [Baritone] --
[23:14:15] [Render thread/INFO]: [System] [CHAT] [Baritone] --
[23:14:15] [Render thread/INFO]: [System] [CHAT] [Baritone] --
[23:14:15] [Render thread/INFO]: [System] [CHAT] [Baritone] << | >> 1/1
[23:14:43] [Render thread/INFO]: [System] [CHAT] [Baritone] > mine minecraft:deepslate
[23:14:43] [Render thread/INFO]: Reloading ResourceManager: vanilla
[23:14:43] [Render thread/INFO]: [System] [CHAT] [Baritone] An unhandled exception occurred. The error is in your game's log, please report this at https://github.com/cabaletta/baritone/issues
[23:14:43] [Render thread/INFO]: [STDERR]: baritone.api.command.exception.CommandUnhandledException: java.lang.NullPointerException: Cannot invoke "baritone.api.cache.IWorldData.getCachedWorld()" because the return value of "baritone.api.utils.IPlayerContext.worldData()" is null
[23:14:43] [Render thread/INFO]: [STDERR]: at baritone.command.manager.CommandManager.execute(Unknown Source)
[23:14:43] [Render thread/INFO]: [STDERR]: at baritone.command.ExampleBaritoneControl.a(Unknown Source)
[23:14:43] [Render thread/INFO]: [STDERR]: at baritone.command.ExampleBaritoneControl.onSendChatMessage(Unknown Source)
[23:14:43] [Render thread/INFO]: [STDERR]: at baritone.event.GameEventHandler.a(Unknown Source)
[23:14:43] [Render thread/INFO]: [STDERR]: at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:807)
[23:14:43] [Render thread/INFO]: [STDERR]: at baritone.event.GameEventHandler.onSendChatMessage(Unknown Source)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_634.handler$zzb000$sendChatMessage(class_634.java)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_634.method_45729(class_634.java)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_408.method_44056(class_408.java:253)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_408.method_25404(class_408.java:101)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_309.method_1454(class_309.java:371)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_437.method_25412(class_437.java:492)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_309.method_1466(class_309.java:367)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_309.method_22678(class_309.java:455)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_1255.execute(class_1255.java:102)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_309.method_22676(class_309.java:455)
[23:14:43] [Render thread/INFO]: [STDERR]: at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:44)
[23:14:43] [Render thread/INFO]: [STDERR]: at org.lwjgl.system.JNI.invokeV(Native Method)
[23:14:43] [Render thread/INFO]: [STDERR]: at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3403)
[23:14:43] [Render thread/INFO]: [STDERR]: at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:197)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_1041.method_15998(class_1041.java:310)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_310.method_1523(class_310.java:1222)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.class_310.method_1514(class_310.java:781)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.client.main.Main.method_44604(Main.java:244)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.minecraft.client.main.Main.main(Main.java:51)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:461)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
[23:14:43] [Render thread/INFO]: [STDERR]: at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
[23:14:43] [Render thread/INFO]: [STDERR]: Caused by: java.lang.NullPointerException: Cannot invoke "baritone.api.cache.IWorldData.getCachedWorld()" because the return value of "baritone.api.utils.IPlayerContext.worldData()" is null
[23:14:43] [Render thread/INFO]: [STDERR]: at baritone.cache.WorldScanner.repack(Unknown Source)
[23:14:43] [Render thread/INFO]: [STDERR]: at baritone.cache.WorldScanner.repack(Unknown Source)
[23:14:43] [Render thread/INFO]: [STDERR]: at baritone.command.defaults.MineCommand.execute(Unknown Source)
[23:14:43] [Render thread/INFO]: [STDERR]: ... 28 more

How to reproduce:

I tried:
#mine minecraft:deepslate
#mine minecraft:cobbled_deepslate
#mine deepslate
#mine minecraft:stone
#mine stone
etc.

Modified settings

None

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

is meteor using the newest baritone version? i thought this error was fixed.

commented

is meteor using the newest baritone version? i thought this error was fixed.

Uhm, what exactly is meteor? And yes I saw some earlier threads of the same problem but I didn't see a real solution, which I could recreate. Sometimes it just states solved, yet without saying how. But I am new to GitHub, so maybe I overlooked something

commented

You got your baritone from an unofficial source, in your logs it says baritone-meteor 1.19.3-SNAPSHOT which is directly from the client meteor, if you want an updated baritone just go to the github actions

commented

Ah okay, but how do I do that? I cant't find "baritone" under "all workflows"

commented

so basically
image

commented

But this is for 1.19 and 1.19.2, and I have 1.19.3, will it still work?

commented

well, then click on the latest 1.19.1 one, because it's actually 1.19.3 now. you'll know it's right if it's at least 1.8.3-226