NBT Editor

NBT Editor

30k Downloads

[IMPORTANT BUG] Crashing when opening client chest

ohh5724 opened this issue ยท 7 comments

commented

when i try to open my client chest the game crashes

*note (i am using version 1.13.0 of the mod)

commented

i don't have a file named "client_chest"

commented

I think I've figured it out:

  • The large client chest tries to find the nearest pages with items on them (for the << and >> buttons) by listing the files in the client_chest folder
  • The folder isn't created until an item is put on a page
  • The small client chest doesn't list the files in the same way, so it doesn't have this problem

As a result, if you enabled the large mode for the client chest in the config before ever using the client chest, it will crash. I'll fix this before the next update, but in the meantime either of the following will fix it (in theory):

  • Switch back to the small mode, open the client chest, and place an item in it (then switch back to large mode if you want)
  • Create the folder <game directory>/nbteditor/client_chest
commented

thanks it works now :)

commented

Can you send the crash log? It's stored in <game directory>/crash-reports or <game directory>/logs. (This doesn't happen for everyone, so I can't simply reproduce it myself)

commented

---- Minecraft Crash Report ----
// I feel sad now :(

Time: 2024-05-05 15:23:47
Description: mouseClicked event handler

java.lang.NullPointerException: Cannot read the array length because "" is null
at com.luneruniverse.minecraft.mod.nbteditor.clientchest.LargeClientChest.getNearestItems(LargeClientChest.java:80)
at com.luneruniverse.minecraft.mod.nbteditor.clientchest.ClientChest.getNearestPOIs(ClientChest.java:197)
at com.luneruniverse.minecraft.mod.nbteditor.screens.containers.ClientChestScreen.updatePageNavigation(ClientChestScreen.java:227)
at com.luneruniverse.minecraft.mod.nbteditor.screens.containers.ClientChestScreen.method_25426(ClientChestScreen.java:222)
at net.minecraft.class_437.method_25423(class_437.java:298)
at net.minecraft.class_310.method_1507(class_310.java:1187)
at com.luneruniverse.minecraft.mod.nbteditor.screens.containers.ClientChestScreen.show(ClientChestScreen.java:49)
at com.luneruniverse.minecraft.mod.nbteditor.screens.CreativeTab.mouseClicked(CreativeTab.java:103)
at com.luneruniverse.minecraft.mod.nbteditor.screens.CreativeTab$CreativeTabGroup.method_25402(CreativeTab.java:38)
at net.minecraft.class_4069.method_25402(class_4069.java:38)
at net.minecraft.class_465.method_25402(class_465.java:299)
at net.minecraft.class_481.method_25402(class_481.java:585)
at net.minecraft.class_312.method_1611(class_312.java:99)
at net.minecraft.class_437.method_25412(class_437.java:414)
at net.minecraft.class_312.method_1601(class_312.java:99)
at net.minecraft.class_312.method_22686(class_312.java:180)
at net.minecraft.class_1255.execute(class_1255.java:102)
at net.minecraft.class_312.method_22684(class_312.java:180)
at org.lwjgl.glfw.GLFWMouseButtonCallback$Container.invoke(GLFWMouseButtonCallback.java:81)
at com.moulberry.axiom.editor.CustomImGuiImplGlfw.mouseButtonCallback(CustomImGuiImplGlfw.java:218)
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
at org.lwjgl.system.JNI.invokeV(Native Method)
at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438)
at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:202)
at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:213)
at net.minecraft.class_1041.method_15998(class_1041.java:287)
at net.minecraft.class_310.method_1523(class_310.java:1349)
at net.minecraft.class_310.method_1514(class_310.java:888)
at net.minecraft.client.main.Main.main(Main.java:265)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:87)
at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)

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

-- Head --
Thread: Render thread
Stacktrace:
at com.luneruniverse.minecraft.mod.nbteditor.clientchest.LargeClientChest.getNearestItems(LargeClientChest.java:80)
at com.luneruniverse.minecraft.mod.nbteditor.clientchest.ClientChest.getNearestPOIs(ClientChest.java:197)
at com.luneruniverse.minecraft.mod.nbteditor.screens.containers.ClientChestScreen.updatePageNavigation(ClientChestScreen.java:227)
at com.luneruniverse.minecraft.mod.nbteditor.screens.containers.ClientChestScreen.method_25426(ClientChestScreen.java:222)
at net.minecraft.class_437.method_25423(class_437.java:298)
at net.minecraft.class_310.method_1507(class_310.java:1187)
at com.luneruniverse.minecraft.mod.nbteditor.screens.containers.ClientChestScreen.show(ClientChestScreen.java:49)
at com.luneruniverse.minecraft.mod.nbteditor.screens.CreativeTab.mouseClicked(CreativeTab.java:103)
at com.luneruniverse.minecraft.mod.nbteditor.screens.CreativeTab$CreativeTabGroup.method_25402(CreativeTab.java:38)
at net.minecraft.class_4069.method_25402(class_4069.java:38)
at net.minecraft.class_465.method_25402(class_465.java:299)
at net.minecraft.class_481.method_25402(class_481.java:585)
at net.minecraft.class_312.method_1611(class_312.java:99)
at net.minecraft.class_437.method_25412(class_437.java:414)
at net.minecraft.class_312.method_1601(class_312.java:99)
at net.minecraft.class_312.method_22686(class_312.java:180)
at net.minecraft.class_1255.execute(class_1255.java:102)
at net.minecraft.class_312.method_22684(class_312.java:180)
at org.lwjgl.glfw.GLFWMouseButtonCallback$Container.invoke(GLFWMouseButtonCallback.java:81)
at com.moulberry.axiom.editor.CustomImGuiImplGlfw.mouseButtonCallback(CustomImGuiImplGlfw.java:218)
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
at org.lwjgl.system.JNI.invokeV(Native Method)
at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438)
at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:202)
at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:213)

-- Affected screen --
Details:
Screen name: net.minecraft.class_481
Stacktrace:
at net.minecraft.class_437.method_25412(class_437.java:414)
at net.minecraft.class_312.method_1601(class_312.java:99)
at net.minecraft.class_312.method_22686(class_312.java:180)
at net.minecraft.class_1255.execute(class_1255.java:102)
at net.minecraft.class_312.method_22684(class_312.java:180)
at org.lwjgl.glfw.GLFWMouseButtonCallback$Container.invoke(GLFWMouseButtonCallback.java:81)
at com.moulberry.axiom.editor.CustomImGuiImplGlfw.mouseButtonCallback(CustomImGuiImplGlfw.java:218)
at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
at org.lwjgl.system.JNI.invokeV(Native Method)
at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438)
at com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:202)
at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:213)
at net.minecraft.class_1041.method_15998(class_1041.java:287)
at net.minecraft.class_310.method_1523(class_310.java:1349)
at net.minecraft.class_310.method_1514(class_310.java:888)
at net.minecraft.client.main.Main.main(Main.java:265)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:87)
at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)

-- Uptime --
Details:
JVM uptime: 1107.862s
Wall uptime: 1093.664s
High-res time: 1088.799s
Client ticks: 21427 ticks / 1071.350s
Stacktrace:
at net.minecraft.class_310.method_1587(class_310.java:2564)
at net.minecraft.class_310.method_54580(class_310.java:995)
at net.minecraft.class_310.method_1514(class_310.java:908)
at net.minecraft.client.main.Main.main(Main.java:265)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:87)
at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)

-- Affected level --
Details:
All players: 1 total; [class_746['OhDoubleYou'/105, l='ClientLevel', x=82.17, y=-58.00, z=-0.34]]
Chunk stats: 2601, 1825
Level dimension: minecraft:overworld
Level spawn location: World: (0,-60,0), Section: (at 0,4,0 in 0,-4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
Level time: 303460 game time, 11489 day time
Server brand: fabric
Server type: Integrated singleplayer server
Tracked entity count: 105

-- Last reload --
Details:
Reload number: 1
Reload reason: initial
Finished: Yes
Packs: vanilla, fabric, axiom, betterf3, cloth-config, fabric-api, fabric-api-base, fabric-api-lookup-api-v1, fabric-biome-api-v1, fabric-block-api-v1, fabric-block-view-api-v2, fabric-blockrenderlayer-v1, fabric-client-tags-api-v1, fabric-command-api-v1, fabric-command-api-v2, fabric-commands-v0, fabric-containers-v0, fabric-content-registries-v0, fabric-convention-tags-v1, fabric-crash-report-info-v1, fabric-data-attachment-api-v1, fabric-data-generation-api-v1, fabric-dimensions-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-keybindings-v0, fabric-language-kotlin, fabric-lifecycle-events-v1, fabric-loot-api-v2, fabric-message-api-v1, fabric-mining-level-api-v1, fabric-model-loading-api-v1, fabric-models-v0, fabric-networking-api-v1, fabric-object-builder-api-v1, fabric-particles-v1, fabric-recipe-api-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, fabricloader, freecam, modmenu, nbteditor, starlight, xaerominimap, xaeroworldmap, yet_another_config_lib_v3, zoomify

-- System Details --
Details:
Minecraft Version: 1.20.4
Minecraft Version ID: 1.20.4
Operating System: Linux (amd64) version 6.5.0-28-generic
Java Version: 17.0.8, Microsoft
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
Memory: 283113224 bytes (269 MiB) / 1073741824 bytes (1024 MiB) up to 1073741824 bytes (1024 MiB)
CPUs: 8
Processor Vendor: GenuineIntel
Processor Name: Intel(R) Core(TM) i7 CPU 930 @ 2.80GHz
Identifier: Intel64 Family 6 Model 26 Stepping 5
Microarchitecture: Nehalem (Server)
Frequency (GHz): 2.80
Number of physical packages: 1
Number of physical CPUs: 4
Number of logical CPUs: 8
Graphics card #0 name: Cypress XT [Radeon HD 5870]
Graphics card #0 vendor: Advanced Micro Devices, Inc. [AMD/ATI] (0x1002)
Graphics card #0 VRAM (MB): 256.00
Graphics card #0 deviceId: 0x6898
Graphics card #0 versionInfo: unknown
Virtual memory max (MB): 5000.62
Virtual memory used (MB): 4788.18
Swap memory total (MB): 2048.00
Swap memory used (MB): 57.75
JVM Flags: 2 total; -Xms512m -Xmx1024m
Fabric Mods:
axiom: Axiom 2.8.0
com_moulberry_axiomclientapi_axiomclientapi_: axiomclientapi 1.0.0
betterf3: BetterF3 9.0.2
cloth-config: Cloth Config v13 13.0.114
cloth-basic-math: cloth-basic-math 0.6.1
fabric-api: Fabric API 0.97.0+1.20.4
fabric-api-base: Fabric API Base 0.4.37+78d798af4f
fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.50+82b1bb3e4f
fabric-biome-api-v1: Fabric Biome API (v1) 13.0.17+78d798af4f
fabric-block-api-v1: Fabric Block API (v1) 1.0.17+3e2216cb4f
fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.5+78d798af4f
fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.47+78d798af4f
fabric-client-tags-api-v1: Fabric Client Tags 1.1.8+78d798af4f
fabric-command-api-v1: Fabric Command API (v1) 1.2.42+f71b366f4f
fabric-command-api-v2: Fabric Command API (v2) 2.2.21+78d798af4f
fabric-commands-v0: Fabric Commands (v0) 0.2.59+df3654b34f
fabric-containers-v0: Fabric Containers (v0) 0.1.87+df3654b34f
fabric-content-registries-v0: Fabric Content Registries (v0) 5.0.16+78d798af4f
fabric-convention-tags-v1: Fabric Convention Tags 1.5.11+78d798af4f
fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.24+78d798af4f
fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.1.5+b90db5744f
fabric-data-generation-api-v1: Fabric Data Generation API (v1) 13.2.5+5c0133444f
fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.62+78d798af4f
fabric-entity-events-v1: Fabric Entity Events (v1) 1.6.2+09fc25014f
fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.7.2+389931eb4f
fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.75+df3654b34f
fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.47+78d798af4f
fabric-item-api-v1: Fabric Item API (v1) 2.3.0+bcdd12964f
fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.27+ee30b13a4f
fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.42+78d798af4f
fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.40+df3654b34f
fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.3.1+a67ffb5d4f
fabric-loot-api-v2: Fabric Loot API (v2) 2.1.10+78d798af4f
fabric-message-api-v1: Fabric Message API (v1) 6.0.6+78d798af4f
fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.66+78d798af4f
fabric-model-loading-api-v1: Fabric Model Loading API (v1) 1.0.9+78d798af4f
fabric-models-v0: Fabric Models (v0) 0.4.8+9386d8a74f
fabric-networking-api-v1: Fabric Networking API (v1) 3.1.8+2e5ac5484f
fabric-object-builder-api-v1: Fabric Object Builder API (v1) 13.1.0+dba1195c4f
fabric-particles-v1: Fabric Particles (v1) 1.1.8+78d798af4f
fabric-recipe-api-v1: Fabric Recipe API (v1) 2.0.21+78d798af4f
fabric-registry-sync-v0: Fabric Registry Sync (v0) 4.0.20+ee30b13a4f
fabric-renderer-api-v1: Fabric Renderer API (v1) 3.2.5+78d798af4f
fabric-renderer-indigo: Fabric Renderer - Indigo 1.5.5+78d798af4f
fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.54+df3654b34f
fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.43+73761d2e4f
fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.1.2+e761c6694f
fabric-rendering-v0: Fabric Rendering (v0) 1.1.57+df3654b34f
fabric-rendering-v1: Fabric Rendering (v1) 3.2.1+6fd945a04f
fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.15+78d798af4f
fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.21+ee30b13a4f
fabric-screen-api-v1: Fabric Screen API (v1) 2.0.18+78d798af4f
fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.56+78d798af4f
fabric-sound-api-v1: Fabric Sound API (v1) 1.0.18+78d798af4f
fabric-transfer-api-v1: Fabric Transfer API (v1) 4.0.12+90f2d7b14f
fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 5.0.15+78d798af4f
fabric-language-kotlin: Fabric Language Kotlin 1.10.17+kotlin.1.9.22
org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 1.9.22
org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 1.9.22
org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 1.9.22
org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 1.9.22
org_jetbrains_kotlinx_atomicfu-jvm: atomicfu-jvm 0.23.1
org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.7.3
org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.7.3
org_jetbrains_kotlinx_kotlinx-datetime-jvm: kotlinx-datetime-jvm 0.5.0
org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm: kotlinx-serialization-cbor-jvm 1.6.2
org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.6.2
org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.6.2
fabricloader: Fabric Loader 0.15.10
mixinextras: MixinExtras 0.3.5
freecam: Freecam (Modrinth Edition) 1.2.3
iceberg: Iceberg 1.1.18
java: OpenJDK 64-Bit Server VM 17
minecraft: Minecraft 1.20.4
modmenu: Mod Menu 9.0.0
nbteditor: NBT Editor 1.13.0
starlight: Starlight 1.1.3+fabric.f5dcd1a
xaerominimap: Xaero's Minimap 23.9.6
xaeroworldmap: Xaero's World Map 1.37.6
yet_another_config_lib_v3: YetAnotherConfigLib 3.3.2+1.20.4
com_twelvemonkeys_common_common-image: common-image 3.10.0
com_twelvemonkeys_common_common-io: common-io 3.10.0
com_twelvemonkeys_common_common-lang: common-lang 3.10.0
com_twelvemonkeys_imageio_imageio-core: imageio-core 3.10.0
com_twelvemonkeys_imageio_imageio-metadata: imageio-metadata 3.10.0
com_twelvemonkeys_imageio_imageio-webp: imageio-webp 3.10.0
org_quiltmc_parsers_gson: gson 0.2.1
org_quiltmc_parsers_json: json 0.2.1
zoomify: Zoomify 2.13.0
com_akuleshov7_ktoml-core-jvm: ktoml-core-jvm 0.5.1
dev_isxander_settxi_settxi-core: settxi-core 2.10.6
dev_isxander_settxi_settxi-kotlinx-serialization: settxi-kotlinx-serialization 2.10.6
Launched Version: 1.20.4
Launcher name: PrismLauncher
Backend library: LWJGL version 3.3.2-snapshot
Backend API: AMD CYPRESS (DRM 2.50.0 / 6.5.0-28-generic, LLVM 15.0.7) GL version 4.5 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2, Mesa
Window size: 1850x1016
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'
Universe: 400921fb54442d18
Type: Integrated Server (map_client.txt)
Graphics mode: fancy
Render Distance: 22/22 chunks
Resource Packs: vanilla, fabric
Current Language: en_us
Locale: en_CA
CPU: 8x Intel(R) Core(TM) i7 CPU 930 @ 2.80GHz
Server Running: true
Player Count: 1 / 8; [class_3222['OhDoubleYou'/105, l='ServerLevel[Axiom test02]', x=82.17, y=-58.00, z=-0.34]]
Data Packs: vanilla, fabric, axiom, fabric-convention-tags-v1
Enabled Feature Flags: minecraft:vanilla
World Generation: Stable

commented

Do you have a file (not folder) named client_chest in <game directory>/nbteditor? It looks like it is trying to get a list of files in the client_chest folder, but it can't find the folder.

commented

I've now fixed this in v2.0.0!