mojira.dev
MC-233777

Game crashes when trying to trade with specific villager


Minecraft Crash Report -------- Minecraft Crash Report ----// Uh... Did I do that?
Time: 8/4/21, 11:19 AMDescription: Rendering screen
java.lang.IndexOutOfBoundsException: Index 4 out of bounds for length 2 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) at java.base/java.util.Objects.checkIndex(Objects.java:359) at java.base/java.util.ArrayList.get(ArrayList.java:427) at net.minecraft.class_492.method_25394(class_492.java:227) at net.minecraft.class_757.method_3192(class_757.java:1273) at net.minecraft.class_310.method_1523(class_310.java:1112) at net.minecraft.class_310.method_1514(class_310.java:728) at net.minecraft.client.main.Main.main(Main.java:217) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:234) at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:153) at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)

A detailed walkthrough of the error, its code path and all known details is as follows:---------------------------------------------------------------------------------------
– Head --Thread: Render threadStacktrace: at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) at java.base/java.util.Objects.checkIndex(Objects.java:359) at java.base/java.util.ArrayList.get(ArrayList.java:427) at net.minecraft.class_492.method_25394(class_492.java:227)
– Screen render details --Details: Screen name: net.minecraft.class_492 Mouse location: Scaled: (400, 231). Absolute: (800.000000, 463.000000) Screen size: Scaled: (922, 529). Absolute: (1844, 1057). Scale factor of 2.000000
– Affected level --Details: All players: 1 total; [class_746['barthxtymous'/210, l='ClientLevel', x=-14.30, y=74.00, z=-189.70]] Chunk stats: 841, 579 Level dimension: minecraft:overworld Level spawn location: World: (-112,75,-128), Section: (at 0,11,0 in -7,4,-8; chunk contains blocks -112,0,-128 to -97,255,-113), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1) Level time: 82859736 game time, 12082879 day time Server brand: fabric Server type: Integrated singleplayer serverStacktrace: at net.minecraft.class_638.method_8538(class_638.java:476) at net.minecraft.class_310.method_1587(class_310.java:2399) at net.minecraft.class_310.method_1514(class_310.java:747) at net.minecraft.client.main.Main.main(Main.java:217) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:234) at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:153) at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)
– Last reload --Details: Reload number: 1 Reload reason: initial Finished: Yes Packs: Default, Animated-Mobs-Pack(1).zip, VanillaTweaks1.17V1.zip, BetterEnchantments(1.16.3), Fabric Mods
– System Details --Details: Minecraft Version: 1.17.1 Minecraft Version ID: 1.17.1 Operating System: Windows 10 (amd64) version 10.0 Java Version: 16.0.1, Microsoft Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft Memory: 1070948032 bytes (1021 MiB) / 2147483648 bytes (2048 MiB) up to 2147483648 bytes (2048 MiB) CPUs: 8 Processor Vendor: GenuineIntel Processor Name: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz Identifier: Intel64 Family 6 Model 60 Stepping 3 Microarchitecture: Haswell (Client) Frequency (GHz): 3.49 Number of physical packages: 1 Number of physical CPUs: 4 Number of logical CPUs: 8 Graphics card #0 name: Intel(R) HD Graphics 4600 Graphics card #0 vendor: Intel Corporation (0x8086) Graphics card #0 VRAM (MB): 1024.00 Graphics card #0 deviceId: 0x0412 Graphics card #0 versionInfo: DriverVersion=20.19.15.4531 Graphics card #1 name: NVIDIA GeForce GTX 960 Graphics card #1 vendor: NVIDIA (0x10de) Graphics card #1 VRAM (MB): 2048.00 Graphics card #1 deviceId: 0x1401 Graphics card #1 versionInfo: DriverVersion=30.0.14.7141 Memory slot #0 capacity (MB): 8192.00 Memory slot #0 clockSpeed (GHz): 1.33 Memory slot #0 type: DDR3 Virtual memory max (MB): 20879.11 Virtual memory used (MB): 12929.54 Swap memory total (MB): 12800.00 Swap memory used (MB): 1089.36 JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M Fabric Mods:  fabric: Fabric API 0.37.1+1.17 fabric-api-base: Fabric API Base 0.3.0+a02b446318 fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.2.0+2b5c62d018 fabric-biome-api-v1: Fabric Biome API (v1) 3.1.11+c345aea818 fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.5+a02b446318 fabric-command-api-v1: Fabric Command API (v1) 1.1.3+5ab9934c18 fabric-commands-v0: Fabric Commands (v0) 0.2.2+92519afa18 fabric-containers-v0: Fabric Containers (v0) 0.1.12+a02b446318 fabric-content-registries-v0: Fabric Content Registries (v0) 0.2.2+a02b446318 fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.1.5+be9da31018 fabric-dimensions-v1: Fabric Dimensions API (v1) 2.0.11+6cefd57718 fabric-entity-events-v1: Fabric Entity Events (v1) 1.1.0+a02b446318 fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.4.9+a722d8c018 fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.1+92519afa18 fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.7+6cefd57718 fabric-item-api-v1: Fabric Item API (v1) 1.2.4+a02b446318 fabric-item-groups-v0: Fabric Item Groups (v0) 0.2.10+b7ab612118 fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.4+a02b446318 fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.2+36b77c3e18 fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 1.4.4+a02b446318 fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.0.4+a02b446318 fabric-mining-levels-v0: Fabric Mining Levels (v0) 0.1.3+92519afa18 fabric-models-v0: Fabric Models (v0) 0.3.0+a02b446318 fabric-networking-api-v1: Fabric Networking API (v1) 1.0.12+6cefd57718 fabric-networking-blockentity-v0: Fabric Networking Block Entity (v0) 0.2.11+a02b446318 fabric-networking-v0: Fabric Networking (v0) 0.3.2+92519afa18 fabric-object-builder-api-v1: Fabric Object Builder API (v1) 1.10.9+b7ab612118 fabric-object-builders-v0: Fabric Object Builders (v0) 0.7.3+a02b446318 fabric-particles-v1: Fabric Particles (v1) 0.2.4+a02b446318 fabric-registry-sync-v0: Fabric Registry Sync (v0) 0.7.10+e2961fee18 fabric-renderer-api-v1: Fabric Renderer API (v1) 0.4.4+5f02c96918 fabric-renderer-indigo: Fabric Renderer - Indigo 0.4.8+a02b446318 fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.0+a02b446318 fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.1.5+a02b446318 fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 0.1.13+a02b446318 fabric-rendering-v0: Fabric Rendering (v0) 1.1.2+92519afa18 fabric-rendering-v1: Fabric Rendering (v1) 1.6.0+a02b446318 fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.4.8+a00e834b18 fabric-screen-api-v1: Fabric Screen API (v1) 1.0.4+155f865c18 fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.1.8+a02b446318 fabric-structure-api-v1: Fabric Structure API (v1) 1.1.13+5ab9934c18 fabric-tag-extensions-v0: Fabric Tag Extensions (v0) 1.1.4+a02b446318 fabric-textures-v0: Fabric Textures (v0) 1.0.6+a02b446318 fabric-tool-attribute-api-v1: Fabric Tool Attribute API (v1) 1.2.12+b7ab612118 fabric-transfer-api-v1: Fabric Transfer API (v1) 1.0.0+3fe3c3f518 fabricloader: Fabric Loader 0.11.6 itemscroller: Item Scroller 0.15.0-dev.20210707.005506 java: OpenJDK 64-Bit Server VM 16 litematica: Litematica 0.0.0-dev.20210713.103711 malilib: MaLiLib 0.10.0-dev.24 minecraft: Minecraft 1.17.1 minihud: MiniHUD 0.19.0-dev.20210707.150016 mm: Manningham Mills 2.3 optifabric: OptiFabric 1.11.18 tweakeroo: Tweakeroo 0.10.0-dev.20210710.155746 Launched Version: fabric-loader-0.11.6-1.17.1 Backend library: LWJGL version 3.2.2 build 10 Backend API: NVIDIA GeForce GTX 960/PCIe/SSE2 GL version 4.6.0 NVIDIA 471.41, NVIDIA Corporation Window size: 1844x1057 GL Caps: Using framebuffer using OpenGL 3.2 GL debug messages:  Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'fabric' Type: Integrated Server (map_client.txt) Graphics mode: fast Resource Packs: vanilla, file/Animated-Mobs-Pack(1).zip (incompatible), file/VanillaTweaks1.17V1.zip, file/BetterEnchantments(1.16.3) (incompatible) Current Language: English (US) CPU: 8x Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz Player Count: 1 / 8; [class_3222['barthxtymous'/210, l='ServerLevel[Let's Play]', x=-14.30, y=74.00, z=-189.70]] Data Packs: vanilla, file/Flint Stripping [v1.1].zip (incompatible), Fabric Mods OptiFine Version: OptiFine_1.17.1_HD_U_G9_pre32 OptiFine Build: 20210725-010158 Render Distance Chunks: 12 Mipmaps: 3 Anisotropic Filtering: 1 Antialiasing: 0 Multitexture: false Shaders: null OpenGlVersion: 4.6.0 NVIDIA 471.41 OpenGlRenderer: NVIDIA GeForce GTX 960/PCIe/SSE2 OpenGlVendor: NVIDIA Corporation CpuCount: 8
– OptiFabric --Details: OptiFine jar designed for: 1.17.1 OptiFine jar version: OptiFine_1.17.1_HD_U_G9_pre32 OptiFine jar status: Valid OptiFine installer OptiFine remapped jar: C:/Users/barth/AppData/Roaming/.minecraft/.optifine/OptiFine_1.17.1_HD_U_G9_pre32/Optifine-mapped.jar OptiFabric error: <None>

idk if its important but it was a level one trade (emeralds - > bricks) with a mountain-type stone mason villager; it only happens with this villager, wtf is happening

Linked issues

Attachments

Comments 4

Duplicate of MC-228721 which was later resolved as invalid due to being an issue with optifine. Disable this modification in order to resolve this problem.

Turns out this is an issue with the item scroller mod so just FYI to anyone out there with this problem as well

afaik it seems to be random

Thank you for your report!
We're tracking this issue in MC-228721, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

its not a duplicate bug

it was caused by itemscroller not optifine, and wasnt a cartographer

barthotymous

(Unassigned)

Unconfirmed

(Unassigned)

1.17.1

Retrieved