Modular-Item-API icon indicating copy to clipboard operation
Modular-Item-API copied to clipboard

Non-english game crash

Open AstrumStriker opened this issue 8 months ago • 1 comments

Describe the bug Crash when using creative mode search bar when a secondary language is chosen via Language Reload - does not occur when searching in EMI

Steps to reproduce the behavior:

  1. Set Tagalog as secondary language
  2. Be in creative
  3. Go to search bar
  4. Type any character

Expected behaviour : List of items starting with n for example in Tagalog & anything not translated in US english

Fabric 1.21.1

Full Mod List Architectury API Fabric API Language Reload Truly Modular: arsenal Truly Modular API

Ingame Logs ---- Minecraft Crash Report ---- // This doesn't make any sense!

Time: 2025-05-24 11:42:00 Description: charTyped event handler

java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source) at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source) at java.base/java.util.Objects.checkIndex(Unknown Source) at java.base/java.util.ArrayList.get(Unknown Source) at knot//smartin.miapi.modules.properties.LoreProperty.format(LoreProperty.java:106) at knot//smartin.miapi.modules.properties.LoreProperty.gray(LoreProperty.java:102) at knot//smartin.miapi.modules.properties.LoreProperty.addToolTipsClient(LoreProperty.java:134) at knot//smartin.miapi.modules.properties.LoreProperty.injectTooltipOnNonModularItems(LoreProperty.java:115) at knot//net.minecraft.class_1799.handler$bdc000$miapi$injectToolTip(class_1799.java:3704) at knot//net.minecraft.class_1799.method_57369(class_1799.java:741) at knot//net.minecraft.class_1799.method_7950(class_1799.java:777) at knot//net.minecraft.class_1124.mixinextras$bridge$method_7950$28(class_1124.java) at knot//net.minecraft.class_1124.wrapOperation$bbd000$languagereload$addFallbackTranslationsToSearchTooltips(class_1124.java:541) at knot//net.minecraft.class_1124.method_60365(class_1124.java:52) at java.base/java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.base/java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Unknown Source) at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source) at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source) at knot//net.minecraft.class_1129.plainText(class_1129.java:21) at knot//net.minecraft.class_1126.(class_1126.java:16) at knot//net.minecraft.class_1124.method_60350(class_1124.java:100) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source) at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)

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

-- Head -- Thread: Render thread Stacktrace: at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source) at java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source) at java.base/java.util.Objects.checkIndex(Unknown Source) at java.base/java.util.ArrayList.get(Unknown Source) at knot//smartin.miapi.modules.properties.LoreProperty.format(LoreProperty.java:106) at knot//smartin.miapi.modules.properties.LoreProperty.gray(LoreProperty.java:102) at knot//smartin.miapi.modules.properties.LoreProperty.addToolTipsClient(LoreProperty.java:134) at knot//smartin.miapi.modules.properties.LoreProperty.injectTooltipOnNonModularItems(LoreProperty.java:115) at knot//net.minecraft.class_1799.handler$bdc000$miapi$injectToolTip(class_1799.java:3704) at knot//net.minecraft.class_1799.method_57369(class_1799.java:741) at knot//net.minecraft.class_1799.method_7950(class_1799.java:777) at knot//net.minecraft.class_1124.mixinextras$bridge$method_7950$28(class_1124.java) at knot//net.minecraft.class_1124.wrapOperation$bbd000$languagereload$addFallbackTranslationsToSearchTooltips(class_1124.java:541) at knot//net.minecraft.class_1124.method_60365(class_1124.java:52) at java.base/java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)

-- Affected screen -- Details: Screen name: net.minecraft.class_481 Stacktrace: at knot//net.minecraft.class_437.method_25412(class_437.java:434) at knot//net.minecraft.class_309.method_1457(class_309.java:489) at knot//net.minecraft.class_309.method_22677(class_309.java:500) at knot//net.minecraft.class_1255.execute(class_1255.java:108) at knot//net.minecraft.class_309.method_22675(class_309.java:500) at knot//org.lwjgl.glfw.GLFWCharModsCallbackI.callback(GLFWCharModsCallbackI.java:46) at knot//org.lwjgl.system.JNI.invokeV(Native Method) at knot//org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3438) at knot//com.mojang.blaze3d.systems.RenderSystem.pollEvents(RenderSystem.java:150) at knot//com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:161) at knot//net.minecraft.class_1041.method_15998(class_1041.java:303) at knot//net.minecraft.class_310.method_1523(class_310.java:1307) at knot//net.minecraft.class_310.method_1514(class_310.java:882) at knot//net.minecraft.client.main.Main.main(Main.java:256) at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480) at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- Uptime -- Details: JVM uptime: 21.599s Wall uptime: 15.863s High-res time: 14.860s Client ticks: 249 ticks / 12.450s

-- Affected level -- Details: All players: 1 total; [class_746['{MINECRAFT_USERNAME}'/95, l='ClientLevel', x=10.48, y=74.00, z=-16.77]] Chunk stats: 961, 609 Level dimension: minecraft:overworld Level spawn location: World: (0,78,0), Section: (at 0,14,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: 1316 game time, 1316 day time Server brand: fabric Server type: Integrated singleplayer server Tracked entity count: 177

-- Last reload -- Details: Reload number: 1 Reload reason: initial Finished: Yes Packs: vanilla, fabric, 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-content-registries-v0, fabric-convention-tags-v1, fabric-convention-tags-v2, 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-game-rule-api-v1, fabric-item-api-v1, fabric-item-group-api-v1, fabric-key-binding-api-v1, fabric-keybindings-v0, fabric-lifecycle-events-v1, fabric-loot-api-v2, fabric-loot-api-v3, fabric-message-api-v1, fabric-model-loading-api-v1, 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, languagereload, miapi, nucleus, nucleus_config, tm_arsenal

-- System Details -- Details: Minecraft Version: 1.21.1 Minecraft Version ID: 1.21.1 Operating System: Windows 11 (amd64) version 10.0 Java Version: 21.0.7, Azul Systems, Inc. Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Azul Systems, Inc. Memory: 126353408 bytes (120 MiB) / 751828992 bytes (717 MiB) up to 2147483648 bytes (2048 MiB) CPUs: 12 Processor Vendor: AuthenticAMD Processor Name: AMD Ryzen 5 7600 6-Core Processor
Identifier: AuthenticAMD Family 25 Model 97 Stepping 2 Microarchitecture: Zen 3 Frequency (GHz): 3.80 Number of physical packages: 1 Number of physical CPUs: 6 Number of logical CPUs: 12 Graphics card #0 name: AMD Radeon(TM) Graphics Graphics card #0 vendor: Advanced Micro Devices, Inc. Graphics card #0 VRAM (MiB): 512.00 Graphics card #0 deviceId: VideoController1 Graphics card #0 versionInfo: 32.0.21001.9024 Graphics card #1 name: AMD Radeon RX 7900 GRE Graphics card #1 vendor: Advanced Micro Devices, Inc. Graphics card #1 VRAM (MiB): 16368.00 Graphics card #1 deviceId: VideoController2 Graphics card #1 versionInfo: 32.0.21001.9024 Memory slot #0 capacity (MiB): 8192.00 Memory slot #0 clockSpeed (GHz): 4.80 Memory slot #0 type: Unknown Memory slot #1 capacity (MiB): 8192.00 Memory slot #1 clockSpeed (GHz): 4.80 Memory slot #1 type: Unknown Virtual memory max (MiB): 34015.63 Virtual memory used (MiB): 21705.62 Swap memory total (MiB): 18432.00 Swap memory used (MiB): 792.63 Space in storage for jna.tmpdir (MiB): available: 405343.34, total: 952902.00 Space in storage for org.lwjgl.system.SharedLibraryExtractPath (MiB): available: 405343.34, total: 952902.00 Space in storage for io.netty.native.workdir (MiB): available: 405343.34, total: 952902.00 Space in storage for java.io.tmpdir (MiB): available: 405343.34, total: 952902.00 Space in storage for workdir (MiB): available: 405343.34, total: 952902.00 JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2048M Fabric Mods: architectury: Architectury 13.0.8 fabric-api: Fabric API 0.116.0+1.21.1 fabric-api-base: Fabric API Base 0.4.42+6573ed8c19 fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.71+b559734419 fabric-biome-api-v1: Fabric Biome API (v1) 13.0.31+d527f9fd19 fabric-block-api-v1: Fabric Block API (v1) 1.0.22+0af3f5a719 fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.11+ebb2264e19 fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.52+0af3f5a719 fabric-client-tags-api-v1: Fabric Client Tags 1.1.15+6573ed8c19 fabric-command-api-v1: Fabric Command API (v1) 1.2.49+f71b366f19 fabric-command-api-v2: Fabric Command API (v2) 2.2.28+6ced4dd919 fabric-commands-v0: Fabric Commands (v0) 0.2.66+df3654b319 fabric-content-registries-v0: Fabric Content Registries (v0) 8.0.19+b559734419 fabric-convention-tags-v1: Fabric Convention Tags 2.1.5+7f945d5b19 fabric-convention-tags-v2: Fabric Convention Tags (v2) 2.11.1+a406e79519 fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.29+0af3f5a719 fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.4.3+a15b7ead19 fabric-data-generation-api-v1: Fabric Data Generation API (v1) 20.2.29+16c4ae2519 fabric-dimensions-v1: Fabric Dimensions API (v1) 4.0.0+6fc22b9919 fabric-entity-events-v1: Fabric Entity Events (v1) 1.7.0+2122d82819 fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.7.13+ba9dae0619 fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.53+6ced4dd919 fabric-item-api-v1: Fabric Item API (v1) 11.1.1+d5debaed19 fabric-item-group-api-v1: Fabric Item Group API (v1) 4.1.7+def88e3a19 fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.47+0af3f5a719 fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.45+df3654b319 fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.6.0+0865547519 fabric-loot-api-v2: Fabric Loot API (v2) 3.0.15+3f89f5a519 fabric-loot-api-v3: Fabric Loot API (v3) 1.0.3+3f89f5a519 fabric-message-api-v1: Fabric Message API (v1) 6.0.13+6573ed8c19 fabric-model-loading-api-v1: Fabric Model Loading API (v1) 2.0.0+fe474d6b19 fabric-networking-api-v1: Fabric Networking API (v1) 4.3.0+c7469b2119 fabric-object-builder-api-v1: Fabric Object Builder API (v1) 15.2.1+40875a9319 fabric-particles-v1: Fabric Particles (v1) 4.0.2+6573ed8c19 fabric-recipe-api-v1: Fabric Recipe API (v1) 5.0.14+248df81c19 fabric-registry-sync-v0: Fabric Registry Sync (v0) 5.2.0+34f5d91419 fabric-renderer-api-v1: Fabric Renderer API (v1) 3.4.0+c705a49c19 fabric-renderer-indigo: Fabric Renderer - Indigo 1.7.0+c705a49c19 fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.68+df3654b319 fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.49+73761d2e19 fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.1.6+1daea21519 fabric-rendering-v0: Fabric Rendering (v0) 1.1.71+df3654b319 fabric-rendering-v1: Fabric Rendering (v1) 5.0.5+df16efd019 fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 4.3.0+8dc279b119 fabric-resource-loader-v0: Fabric Resource Loader (v0) 1.3.1+5b5275af19 fabric-screen-api-v1: Fabric Screen API (v1) 2.0.25+8b68f1c719 fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.88+b559734419 fabric-sound-api-v1: Fabric Sound API (v1) 1.0.23+6573ed8c19 fabric-transfer-api-v1: Fabric Transfer API (v1) 5.4.3+c24bd99419 fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 6.2.0+45b9699719 fabricloader: Fabric Loader 0.16.14 mixinextras: MixinExtras 0.4.1 java: OpenJDK 64-Bit Server VM 21 languagereload: Language Reload 1.7.3+1.21.1 miapi: Truly Modular 2.0.10 com_ezylang_evalex: EvalEx 3.2.0 nucleus: Nucleus (Core) 1.1.4 nucleus_codec: Nucleus (Codec) 1.1.5 nucleus_config: Nucleus (Config) 1.1.7 nucleus_facet: Nucleus (Facet) 1.0.1 nucleus_pose: Nucleus (Pose) 1.0.0 minecraft: Minecraft 1.21.1 tm_arsenal: Truly Modular: Arsenal 2.1 Launched Version: 1.21.1 Launcher name: theseus Backend library: LWJGL version 3.3.3-snapshot Backend API: AMD Radeon RX 7900 GRE GL version 3.2.0 Core Profile Context 25.5.1.250417, ATI Technologies Inc. Window size: 854x480 GFLW Platform: win32 GL Caps: Using framebuffer using OpenGL 3.2 GL debug messages: 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: 12/12 chunks Resource Packs: vanilla, fabric, 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-content-registries-v0, fabric-convention-tags-v1, fabric-convention-tags-v2, 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-game-rule-api-v1, fabric-item-api-v1, fabric-item-group-api-v1, fabric-key-binding-api-v1, fabric-keybindings-v0, fabric-lifecycle-events-v1, fabric-loot-api-v2, fabric-loot-api-v3, fabric-message-api-v1, fabric-model-loading-api-v1, 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, languagereload, miapi, nucleus, nucleus_config, tm_arsenal Current Language: en_us Locale: en_GB System encoding: Cp1252 File encoding: UTF-8 CPU: 12x AMD Ryzen 5 7600 6-Core Processor Server Running: true Player Count: 1 / 8; [class_3222['{MINECRAFT_USERNAME}'/95, l='ServerLevel[New World]', x=10.48, y=74.00, z=-16.77]] Active Data Packs: vanilla, fabric, fabric-convention-tags-v2, miapi, nucleus, tm_arsenal Available Data Packs: bundle, fabric, fabric-convention-tags-v2, miapi, nucleus, tm_arsenal, trade_rebalance, vanilla Enabled Feature Flags: minecraft:vanilla World Generation: Stable World Seed: 1996469360811835339

AstrumStriker avatar May 24 '25 10:05 AstrumStriker