Pixelmon Mod - Bug tracker

[9.0.1] Click the mouse middle button while opening a backpack might cause crash pending

Ticket description:
I clicked the mouse middle button while opening a backpack and the game crashed.
Also, I'm in creative mod and have InvTweak mod but with middle button setting disable.
Here's the crash report
Code: Select all---- Minecraft Crash Report ----
// You're mean.

Time: 2022/6/6 下午 3:25
Description: Ticking entity

java.lang.ArrayIndexOutOfBoundsException: 27
   at java.util.Arrays$ArrayList.set(Arrays.java:3846) ~[?:1.8.0_51] {}
   at net.minecraft.util.NonNullList.set(SourceFile:53) ~[?:?] {re:classloading}
   at net.minecraft.inventory.Inventory.func_70299_a(SourceFile:132) ~[?:?] {re:classloading}
   at com.pixelmonmod.pixelmon.items.PokeBagItem$1.func_71111_a(PokeBagItem.java:107) ~[?:1.16.5-9.0.1] {re:classloading}
   at net.minecraft.inventory.container.Container.func_75142_b(Container.java:129) ~[?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.entity.player.ServerPlayerEntity.func_70071_h_(ServerPlayerEntity.java:360) ~[?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.world.server.ServerWorld.func_217479_a(ServerWorld.java:611) ~[?:?] {re:classloading}
   at net.minecraft.world.server.ServerWorld$$Lambda$8717/1796020868.accept(Unknown Source) ~[?:?] {}
   at net.minecraft.world.World.func_217390_a(World.java:554) ~[?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.world.server.ServerWorld.func_72835_b(ServerWorld.java:404) ~[?:?] {re:classloading}
   at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:851) ~[?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:787) ~[?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:78) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
   at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642) [?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) [?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.server.MinecraftServer$$Lambda$8395/228832254.run(Unknown Source) [?:?] {}
   at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] {}


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

-- Head --
Thread: Server thread
Stacktrace:
   at java.util.Arrays$ArrayList.set(Arrays.java:3846) ~[?:1.8.0_51] {}
   at net.minecraft.util.NonNullList.set(SourceFile:53) ~[?:?] {re:classloading}
   at net.minecraft.inventory.Inventory.func_70299_a(SourceFile:132) ~[?:?] {re:classloading}
   at com.pixelmonmod.pixelmon.items.PokeBagItem$1.func_71111_a(PokeBagItem.java:107) ~[?:1.16.5-9.0.1] {re:classloading}
   at net.minecraft.inventory.container.Container.func_75142_b(Container.java:129) ~[?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.entity.player.ServerPlayerEntity.func_70071_h_(ServerPlayerEntity.java:360) ~[?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.world.server.ServerWorld.func_217479_a(ServerWorld.java:611) ~[?:?] {re:classloading}
   at net.minecraft.world.server.ServerWorld$$Lambda$8717/1796020868.accept(Unknown Source) ~[?:?] {}
-- Entity being ticked --
Details:
   Entity Type: minecraft:player (net.minecraft.entity.player.ServerPlayerEntity)
   Entity ID: 9
   Entity Name: Nitrogen0614
   Entity's Exact location: -653.07, 38.82, 132.04
   Entity's Block location: World: (-654,38,132), Chunk: (at 2,2,4 in -41,8; contains blocks -656,0,128 to -641,255,143), Region: (-2,0; contains chunks -64,0 to -33,31, blocks -1024,0,0 to -513,255,511)
   Entity's Momentum: 0.00, 0.00, 0.00
   Entity's Passengers: []
   Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
   at net.minecraft.world.World.func_217390_a(World.java:554) ~[?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.world.server.ServerWorld.func_72835_b(ServerWorld.java:404) ~[?:?] {re:classloading}


-- Affected level --
Details:
   All players: 1 total; [ServerPlayerEntity['Nitrogen0614'/9, l='ServerLevel[pixelmon1.16]', x=-653.07, y=38.82, z=132.04]]
   Chunk stats: ServerChunkCache: 2209
   Level dimension: minecraft:the_nether
   Derived: true
   Level spawn location: World: (-256,72,48), Chunk: (at 0,4,0 in -16,3; contains blocks -256,0,48 to -241,255,63), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
   Level time: 61535 game time, 61535 day time
   Level name: pixelmon1.16
   Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true
   Level weather: Rain time: 109727 (now: false), thunder time: 113674 (now: false)
   Known server brands: forge
   Level was modded: true
   Level storage version: 0x04ABD - Anvil
Stacktrace:
   at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:851) ~[?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:787) ~[?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:78) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
   at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:642) [?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) [?:?] {re:classloading,pl:accesstransformer:B}
   at net.minecraft.server.MinecraftServer$$Lambda$8395/228832254.run(Unknown Source) [?:?] {}
   at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] {}


-- System Details --
Details:
   Minecraft Version: 1.16.5
   Minecraft Version ID: 1.16.5
   Operating System: Windows 10 (amd64) version 10.0
   Java Version: 1.8.0_51, Oracle Corporation
   Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
   Memory: 672082752 bytes (640 MB) / 2147483648 bytes (2048 MB) up to 2147483648 bytes (2048 MB)
   CPUs: 8
   JVM Flags: 10 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -XX:+IgnoreUnrecognizedVMOptions -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
   ModLauncher: 8.1.3+8.1.3+main-8.1.x.c94d18ec
   ModLauncher launch target: fmlclient
   ModLauncher naming: srg
   ModLauncher services:
      /mixin-0.8.4.jar mixin PLUGINSERVICE
      /eventbus-4.0.0.jar eventbus PLUGINSERVICE
      /forge-1.16.5-36.2.35.jar object_holder_definalize PLUGINSERVICE
      /forge-1.16.5-36.2.35.jar runtime_enum_extender PLUGINSERVICE
      /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE
      /forge-1.16.5-36.2.35.jar capability_inject_definalize PLUGINSERVICE
      /forge-1.16.5-36.2.35.jar runtimedistcleaner PLUGINSERVICE
      /mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE
      /forge-1.16.5-36.2.35.jar fml TRANSFORMATIONSERVICE
   FML: 36.2
   Forge: net.minecraftforge:36.2.35
   FML Language Providers:
      [email protected]
      minecraft@1
   Mod List:
      forge-1.16.5-36.2.35-client.jar                   |Minecraft                     |minecraft                     |1.16.5              |DONE      |Manifest: NOSIGNATURE
      forge-1.16.5-36.2.35-universal.jar                |Forge                         |forge                         |36.2.35             |DONE      |Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90
      Pixelmon-1.16.5-9.0.1-universal.jar               |Pixelmon Mod                  |pixelmon                      |9.0.1               |DONE      |Manifest: NOSIGNATURE
      jei-1.16.5-7.7.1.152.jar                          |Just Enough Items             |jei                           |7.7.1.152           |DONE      |Manifest: NOSIGNATURE
      invtweaks-1.16.4-1.0.1.jar                        |Inventory Tweaks Renewed      |invtweaks                     |1.16.4-1.0.1        |DONE      |Manifest: NOSIGNATURE
   Crash Report UUID: 33e2cda2-d757-46b5-a53d-ca49d763e969
   Player Count: 1 / 8; [ServerPlayerEntity['Nitrogen0614'/9, l='ServerLevel[pixelmon1.16]', x=-653.07, y=38.82, z=132.04]]
   Data Packs: vanilla, mod:forge, mod:pixelmon, mod:jei, mod:invtweaks (incompatible)
   Type: Integrated Server (map_client.txt)
   Is Modded: Definitely; Client brand changed to 'forge'

Comments

#26115 Posted by Katzyn » 06 Jun 2022 04:06

Yep, that's a nice crash! Thank you, forwarding!

Just to be safe, I think you should also report this to the folks at InvTweaks Renewed, just so all bases are covered. Thank you!

#26893 Posted by I9hdkill » 03 Jul 2022 10:39

This happens on 9.0.4 too. Could not recreate. But maybe when middle clicking the last slot ?
https://pastebin.com/Bm6nhEx3
https://pastebin.com/j1QWn1fG

Ticket details

  • Ticket ID: 18014
  • Project: Pixelmon Mod
  • Status: Pending
  • Component: Crash
  • Project version: 1.16.5-9.x.x
  • Priority: Normal
  • Severity: Normal
  • Forge/Sponge: (unknown)
  • What else would be useful to know?: (unknown)
  • Assigned to: Katzyn
  • Reported by: Nitrogen0614 (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 06 Jun 2022 02:44
  • Ticket last visited by: LordSamosa on 14 Aug 2022 17:06
JOIN THE TEAM