Jump to content

Game Crash (1.11.2)


archieab

Recommended Posts

Hello there! I have an issue with my GUI/Container. When I shift click out an item, the game crashes.

Here is my crash report

---- Minecraft Crash Report ----
// Would you like a cupcake?
 
Time: 1/31/18 9:08 AM
Description: Updating screen events
 
java.lang.IndexOutOfBoundsException: Index: 45, Size: 45
    at java.util.ArrayList.rangeCheck(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at net.minecraft.inventory.Container.mergeItemStack(Container.java:632)
    at archieab.andustry.container.ContainerDrill.transferStackInSlot(ContainerDrill.java:62)
    at net.minecraft.inventory.Container.slotClick(Container.java:261)
    at net.minecraft.client.multiplayer.PlayerControllerMP.windowClick(PlayerControllerMP.java:600)
    at net.minecraft.client.gui.inventory.GuiContainer.handleMouseClick(GuiContainer.java:687)
    at net.minecraft.client.gui.inventory.GuiContainer.mouseClicked(GuiContainer.java:429)
    at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:615)
    at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:580)
    at net.minecraft.client.Minecraft.runTick(Minecraft.java:1792)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1119)
    at net.minecraft.client.Minecraft.run(Minecraft.java:407)
    at net.minecraft.client.main.Main.main(Main.java:118)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
    at GradleStart.main(GradleStart.java:26)
 
 
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
 
-- Head --
Thread: Client thread
Stacktrace:
    at java.util.ArrayList.rangeCheck(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at net.minecraft.inventory.Container.mergeItemStack(Container.java:632)
    at archieab.andustry.container.ContainerDrill.transferStackInSlot(ContainerDrill.java:62)
    at net.minecraft.inventory.Container.slotClick(Container.java:261)
    at net.minecraft.client.multiplayer.PlayerControllerMP.windowClick(PlayerControllerMP.java:600)
    at net.minecraft.client.gui.inventory.GuiContainer.handleMouseClick(GuiContainer.java:687)
    at net.minecraft.client.gui.inventory.GuiContainer.mouseClicked(GuiContainer.java:429)
    at net.minecraft.client.gui.GuiScreen.handleMouseInput(GuiScreen.java:615)
    at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:580)
 
-- Affected screen --
Details:
    Screen name: archieab.andustry.client.gui.GuiDrill
 
-- Affected level --
Details:
    Level name: MpServer
    All players: 1 total; [EntityPlayerSP['Player148'/3, l='MpServer', x=-190.89, y=56.00, z=47.29]]
    Chunk stats: MultiplayerChunkCache: 554, 554
    Level seed: 0
    Level generator: ID 01 - flat, ver 0. Features enabled: false
    Level generator options:
    Level spawn location: World: (-188,4,50), Chunk: (at 4,0,2 in -12,3; contains blocks -192,0,48 to -177,255,63), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
    Level time: 33143 game time, 1000 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Forced entities: 4 total; [EntityItemFrame['entity.ItemFrame.name'/0, l='MpServer', x=-181.03, y=57.50, z=47.50], EntityItemFrame['entity.ItemFrame.name'/1, l='MpServer', x=-181.03, y=57.50, z=46.50], EntityPlayerSP['Player148'/3, l='MpServer', x=-190.89, y=56.00, z=47.29], EntityItemFrame['entity.ItemFrame.name'/2, l='MpServer', x=-181.03, y=57.50, z=48.50]]
    Retry entities: 0 total; []
    Server brand: fml,forge
    Server type: Integrated singleplayer server
Stacktrace:
    at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:456)
    at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2774)
    at net.minecraft.client.Minecraft.run(Minecraft.java:428)
    at net.minecraft.client.main.Main.main(Main.java:118)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
    at GradleStart.main(GradleStart.java:26)
 
-- System Details --
Details:
    Minecraft Version: 1.11.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_161, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 711053296 bytes (678 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.38 Powered by Forge 13.20.1.2588 6 mods loaded, 6 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAAA   minecraft{1.11.2} [Minecraft] (minecraft.jar)
    UCHIJAAAA   mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
    UCHIJAAAA   FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.1.2588.jar)
    UCHIJAAAA   forge{13.20.1.2588} [Minecraft Forge] (forgeSrc-1.11.2-13.20.1.2588.jar)
    UCHIJAAAA   and{1.0} [Andustry] (bin)
    UCHIJAAAA   waila{1.7.1} [waila] (Waila-1.7.1_1.11.2.jar)
    Loaded coremods (and transformers):
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 390.65' Renderer: 'GeForce GTX 1060 3GB/PCIe/SSE2'
    Launched Version: 1.11.2
    LWJGL: 2.9.4
    OpenGL: GeForce GTX 1060 3GB/PCIe/SSE2 GL version 4.6.0 NVIDIA 390.65, NVIDIA Corporation
    GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.
 
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    Type: Client (map_client.txt)
    Resource Packs:
    Current Language: English (US)
    Profiler Position: N/A (disabled)
    CPU: 4x Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz

Many thanks,

archieab

Link to comment
Share on other sites

Quote
  • IGuiHandler must be registered on both sides, not on client-only.

Now registered.

Quote
  • This is a terrible idea.

Why?

Quote
  • Your ItemStackHandler is configured to have 10 slots, but you only add 9 of them to the container. Therefor this calculation produces slot indices that do not exist in your container.

Changed it to only be 9.

Link to comment
Share on other sites

5 minutes ago, diesieben07 said:

It will make your tile entity stay behind always, no matter what the new block is. Even when your block is replaced by air ("the block is broken"), the tile entity will stay behind.

How would you suggest I change it? Also, the game still crashes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.