Support: java.lang.NegativeArraySizeException on 1.95

  • I'm getting the following error on my SMP world with .90 forge using IC2 1.95, BC3 SVN and Railcraft 5.0.3. Separately they all work fine. The crash occurs when i go close to a chunk with lot of stuff on it. I realize BC3 contains issues, but the crashlog is clearly IC2 related. (There are more mods loaded in this log, but not on the server, so not in use.)

  • Which kind of "stuff" is on those chunks?

    IC2 stuff: nuclear reactor (active), fiber and copper cabeling, mfs
    units, reinforced stone, detector cable, batboxes, solar panels, LV and
    MV transformers - this is all i can recall, all other are in chests


    I have removed all other mods and loaded only with IC. I managed to
    enter the chunk without crash, but after a reconnect the same occured on connect.

    Display Spoiler

    Mods loaded: 3
    ModLoader 1.2.5
    mod_MinecraftForge 3.1.2.90
    mod_IC2 v1.95

    Minecraft has crashed!
    ----------------------

    Minecraft has stopped running because it encountered a problem.


    --- BEGIN ERROR REPORT 84c2f76c --------
    Generated 2012.04.23. 22:31

    Minecraft: Minecraft 1.2.5
    OS: Windows 7 (amd64) version 6.1
    Java: 1.7.0_03, Oracle Corporation
    VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    LWJGL: 2.8.3
    OpenGL: GeForce 8800 GT/PCIe/SSE2 version 3.3.0, NVIDIA Corporation

    java.lang.NegativeArraySizeException
    at ic2.platform.NetworkManager.onPacketData(NetworkManager.java:205)
    at forge.MessageManager.dispatchIncomingMessage(MessageManager.java:432)
    at adl.a(NetClientHandler.java:1212)
    at ee.a(SourceFile:46)
    at lg.b(NetworkManager.java:343)
    at adl.b(NetClientHandler.java:64)
    at je.c(SourceFile:50)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1867)
    at net.minecraft.client.Minecraft.x(Minecraft.java:819)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)
    --- END ERROR REPORT d132bdbd ----------

    Display Spoiler

    kosztyua@minecraft:/home/kosztyua/test-server# ./start.sh
    182 recipes
    27 achievements
    2012-04-23 23:38:43 [INFO] Starting minecraft server version 1.2.5
    2012-04-23 23:38:43 [INFO] Forge Mod Loader version 1.0.0.68 for Minecraft 1.2.5 loading
    2012-04-23 23:38:43 [INFO] Loading mods from /home/kosztyua/test-server/mods
    2012-04-23 23:38:43 [INFO] Forge Mod Loader has loaded 2 mods
    2012-04-23 23:38:43 [INFO] Loading properties
    2012-04-23 23:38:43 [INFO] Starting Minecraft server on *:25566
    2012-04-23 23:38:43 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2012-04-23 23:38:43 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2012-04-23 23:38:43 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2012-04-23 23:38:43 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    MinecraftForge v3.1.2.90 Initialized
    2012-04-23 23:38:43 [INFO] MinecraftForge v3.1.2.90 Initialized

    [IC2] Config loaded from /home/kosztyua/test-server/./config/IC2.cfg
    [IC2] Loading IC2 submodule: bcIntegration31x
    [IC2] Submodule not loaded: java.lang.NoClassDefFoundError: buildcraft/api/ITriggerProvider
    [IC2] Loading IC2 submodule: bcIntegration22x
    [IC2] Submodule not loaded: java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: buildcraft/api/ILiquidContainer
    [IC2] Portal Gun compatibility not loaded: java.lang.ClassNotFoundException: mod_PortalGun
    2012-04-23 23:38:44 [INFO] Forge Mod Loader load complete, 2 mods loaded
    2012-04-23 23:38:44 [INFO] Preparing level "quickfood"
    2012-04-23 23:38:44 [INFO] Default game type: 1
    2012-04-23 23:38:44 [INFO] Preparing start region for level 1
    2012-04-23 23:38:44 [INFO] Preparing start region for level -1

    Display Spoiler

    2012-04-23 23:39:49 [INFO] kosztyua [/10.10.10.101:59440] logged in with entity id 237 at (47.96875, 67.0, -827.96875)
    2012-04-23 23:39:49 [INFO] kosztyua joined with: [MinecraftForge 3.1.2.90, IC2 v1.95]
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:168)
    at java.net.SocketInputStream.read(SocketInputStream.java:182)
    at java.io.FilterInputStream.read(FilterInputStream.java:66)
    at lx.a(SourceFile:145)
    at qq.h(NetworkManager.java:236)
    at qq.c(NetworkManager.java:423)
    at zt.run(SourceFile:76)
    2012-04-23 23:39:58 [INFO] kosztyua lost connection: disconnect.genericReason

  • Display Spoiler

    Starting up SoundSystem...
    Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.or
    g)
    OpenAL initialized.

    Connecting to 127.0.0.1, 25565
    java.lang.NegativeArraySizeException
    at ic2.platform.NetworkManager.onPacketData(NetworkManager.java:205)
    at forge.MessageManager.dispatchIncomingMessage(MessageManager.java:432)

    at adl.a(NetClientHandler.java:1246)
    at ee.a(SourceFile:46)
    at lg.b(NetworkManager.java:343)
    at adl.b(NetClientHandler.java:68)
    at ajy.a(SourceFile:45)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1566)
    at net.minecraft.client.Minecraft.x(Minecraft.java:819)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)
    Stopping!

    SoundSystem shutting down...
    Author: Paul Lamb, https://forum.industrial-craft.net/www.paulscode.com

    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.FilterInputStream.read(Unknown Source)
    at abs.a(SourceFile:145)
    at lg.e(NetworkManager.java:227)
    at lg.c(NetworkManager.java:389)
    at rl.run(SourceFile:76)

    Geez al, these forums are weird to post on :(

    Well im getting the same error trying to login near my nuclear reactor, it is connected to a MFE and a MFSU that are both putting out redstone signals to the reactor through a double not switch (so the reactor turns off when they are full) the MFSU shouldn't be full, but is also connected to a FULL MFSU, the second one is for a telepotor, and is being fed. everything is connected via fibre cables. bunch of stuff connected to the MFE (maceratorx3 extractor induction furance etc etc.

    Gonna run a test to see if it is the chunk is the issue.

  • i dont like the sound of "if" :(

    That's the understood bane of all programming... Thank those who have the patience to tolerate it and still build digital wonder...

    Would anyone like to try a Slowpoke Tail?! Only 1 Million Yen!

    Quote

    this isn't about arrogance or ego, I have a block that I put a lot of freaking work into


    Every Mod Author, in existence. And yet, you STILL say otherwise.

  • Seem to be getting MORE errors now. Before your fix it was the NegativeArraySize error. Now I get all this good stuff


    27 achievements
    182 recipes
    LWJGL Version: 2.4.2
    ModLoader 1.2.5 Initializing...
    Mod Initialized: mod_ModLoaderMp 1.2.5v1
    Mod Initialized: mod_MinecraftForge 3.1.2.94
    Mod Initialized: mod_CodeChickenCore 0.5.2
    Mod Initialized: mod_NotEnoughItems 1.2.2
    Mod Initialized: mod_BuildCraftCore 2.2.14
    Mod Initialized: mod_BuildCraftBuilders 2.2.14
    Mod Initialized: mod_BuildCraftEnergy 2.2.14
    Mod Initialized: mod_BuildCraftFactory 2.2.14
    Mod Initialized: mod_BuildCraftTransport 2.2.14
    MinecraftForge v3.1.2.94 Initialized
    Apr 23, 2012 6:28:55 PM forge.ForgeHooks <clinit>
    INFO: MinecraftForge v3.1.2.94 Initialized

    Initializing alchemy values for Equivalent Exchange..
    Mod Initialized: mod_EE 1.4.4.0
    Mod Initialized: mod_Forestry 1.4.4.2
    Mod Initialized: mod_IC2 v1.95
    Mod Initialized: mod_Railcraft 5.0.3
    Mod Initialized: mod_RedPowerControl 2.0pr5
    Mod Initialized: mod_RedPowerCore 2.0pr5
    Mod Initialized: mod_RedPowerLighting 2.0pr5
    Mod Initialized: mod_RedPowerLogic 2.0pr5
    Mod Initialized: mod_RedPowerMachine 2.0pr5
    Mod Initialized: mod_RedPowerWiring 2.0pr5
    Mod Initialized: mod_RedPowerWorld 2.0pr5
    Mod Initialized: mod_TwilightForest 1.8.1
    Mod Initialized: mod_WirelessRedstoneAddons 1.2.0
    Mod Initialized: mod_WirelessRedstoneCore 1.2.0
    Mod Initialized: mod_WirelessRedstoneRedPower 1.2.0
    Mod Loaded: mod_CodeChickenCore 0.5.2
    Mod Loaded: mod_ModLoaderMp 1.2.5v1
    Mod Loaded: mod_MinecraftForge 3.1.2.94
    Mod Loaded: mod_NotEnoughItems 1.2.2
    Mod Loaded: mod_BuildCraftCore 2.2.14
    Mod Loaded: mod_BuildCraftBuilders 2.2.14
    Mod Loaded: mod_BuildCraftEnergy 2.2.14
    Mod Loaded: mod_BuildCraftFactory 2.2.14
    Mod Loaded: mod_BuildCraftTransport 2.2.14
    Mod Loaded: mod_EE 1.4.4.0
    Forestry: MinecraftForge minor version mismatch, expecting 3.0.x, may lead to un
    expected behavior
    CONFLICT @ -58
    Mod Loaded: mod_Forestry 1.4.4.2
    [IC2] Config loaded from C:\Users\Marafice Eye\AppData\Roaming\.minecraft\config
    \IC2.cfg
    [IC2] Using 32 audio sources.
    Mod Loaded: mod_IC2 v1.95
    Mod Loaded: mod_Railcraft 5.0.3
    Mod Loaded: mod_RedPowerControl 2.0pr5
    Mod Loaded: mod_RedPowerCore 2.0pr5
    Mod Loaded: mod_RedPowerLighting 2.0pr5
    Mod Loaded: mod_RedPowerLogic 2.0pr5
    Mod Loaded: mod_RedPowerMachine 2.0pr5
    Mod Loaded: mod_RedPowerWiring 2.0pr5
    Mod Loaded: mod_RedPowerWorld 2.0pr5
    Twilight Forest: MinecraftForge minor version mismatch, expecting 3.0.x, may lea
    d to unexpected behavior
    Mod Loaded: mod_TwilightForest 1.8.1
    Mod Loaded: mod_WirelessRedstoneCore 1.2.0
    Mod Loaded: mod_WirelessRedstoneRedPower 1.2.0
    Mod Loaded: mod_WirelessRedstoneAddons 1.2.0
    ModLoaderMP 1.0.0 Initialized
    Starting BuildCraft 2.2.14
    Copyright (c) SpaceToad, 2011
    http://www.mod-buildcraft.com
    [IC2] Loading IC2 submodule: bcIntegration31x
    [IC2] Submodule not loaded: java.lang.NoClassDefFoundError: buildcraft/api/ITrig
    gerProvider
    [IC2] Loading IC2 submodule: bcIntegration22x
    [IC2] BuildCraft integration module loaded
    [IC2] Loading IC2 submodule: cgIntegration14x
    [IC2] CraftGuide integration module loaded
    [IC2] Loading IC2 submodule: neiIntegration11x
    [IC2] NEI integration module loaded
    [IC2] Portal Gun compatibility not loaded: java.lang.ClassNotFoundException: mod
    _PortalGun
    Done.
    WARNING: Found unknown Windows version: Windows 7
    Attempting to use default windows plug-in.
    Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin
    Failed to initialize device Wacom Virtual Hid Driver because of: java.io.IOExcep
    tion: Failed to acquire device (8007001e)
    Connecting to 213.163.92.3, 25565
    Loaded codechicken.nei.plugins.railcraft.NEIRailCraftConfig
    Loaded codechicken.nei.plugins.redpower.NEIRedPowerConfig
    Loaded codechicken.wirelessredstone.addons.NEIWirelessAddonConfig
    Loaded codechicken.wirelessredstone.core.NEIWirelessCoreConfig
    Loaded codechicken.wirelessredstone.redpower.NEIWirelessRedPowerConfig
    RP2 Core successfully loaded in EE.
    RP2 Core successfully loaded in EE.
    RP2 World successfully loaded in EE.
    java.io.EOFException
    at java.io.DataInputStream.readChar(Unknown Source)
    at ic2.platform.NetworkManager.onPacketData(NetworkManager.java:210)
    at forge.MessageManager.dispatchIncomingMessage(MessageManager.java:432)

    at adl.a(NetClientHandler.java:1245)
    at ee.a(SourceFile:46)
    at lg.b(NetworkManager.java:343)
    at adl.b(NetClientHandler.java:67)
    at ez.a(SourceFile:32)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1566)
    at net.minecraft.client.Minecraft.x(Minecraft.java:819)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)
    java.lang.NegativeArraySizeException
    at ic2.platform.NetworkManager.onPacketData(NetworkManager.java:207)
    at forge.MessageManager.dispatchIncomingMessage(MessageManager.java:432)

    at adl.a(NetClientHandler.java:1245)
    at ee.a(SourceFile:46)
    at lg.b(NetworkManager.java:343)
    at adl.b(NetClientHandler.java:67)
    at ez.a(SourceFile:32)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1566)
    at net.minecraft.client.Minecraft.x(Minecraft.java:819)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)
    Stopping!Exception in thread "AWT-EventQueue-0"
    java.lang.NullPointerException: component argument pData
    at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method)
    at sun.java2d.windows.GDIWindowSurfaceData.<init>(Unknown Source)
    at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source)
    at sun.java2d.d3d.D3DScreenUpdateManager.getGdiSurface(Unknown Source)
    at sun.java2d.d3d.D3DScreenUpdateManager.createGraphics(Unknown Source)
    at sun.awt.windows.WComponentPeer.getGraphics(Unknown Source)
    at java.awt.Component.getGraphics(Unknown Source)
    at sun.awt.RepaintArea.paint(Unknown Source)
    at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
    ce)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
    ce)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
    ce)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

  • I modified it to print the length, please try again with the links I posted above. I need both the output for client and server, there should be only a single player on the server.

    Ran it again after redownloading your files. clientside I'm still getting the same errors listed here (only copied the error part to save thread space.)


    [IC2] received 76 bytes
    java.io.EOFException
    at java.io.DataInputStream.readChar(Unknown Source)
    at ic2.platform.NetworkManager.onPacketData(NetworkManager.java:211)
    at forge.MessageManager.dispatchIncomingMessage(MessageManager.java:432)

    at adl.a(NetClientHandler.java:1245)
    at ee.a(SourceFile:46)
    at lg.b(NetworkManager.java:343)
    at adl.b(NetClientHandler.java:67)
    at ez.a(SourceFile:32)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1566)
    at net.minecraft.client.Minecraft.x(Minecraft.java:819)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)
    [IC2] received 54 bytes
    java.io.EOFException
    at java.io.DataInputStream.readInt(Unknown Source)
    at ic2.platform.NetworkManager.onPacketData(NetworkManager.java:199)
    at forge.MessageManager.dispatchIncomingMessage(MessageManager.java:432)

    at adl.a(NetClientHandler.java:1245)
    at ee.a(SourceFile:46)
    at lg.b(NetworkManager.java:343)
    at adl.b(NetClientHandler.java:67)
    at ez.a(SourceFile:32)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1566)
    at net.minecraft.client.Minecraft.x(Minecraft.java:819)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)
    [IC2] received 56 bytes
    java.io.EOFException
    at java.io.DataInputStream.readInt(Unknown Source)
    at ic2.platform.NetworkManager.onPacketData(NetworkManager.java:199)
    at forge.MessageManager.dispatchIncomingMessage(MessageManager.java:432)

    at adl.a(NetClientHandler.java:1245)
    at ee.a(SourceFile:46)
    at lg.b(NetworkManager.java:343)
    at adl.b(NetClientHandler.java:67)
    at ez.a(SourceFile:32)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1566)
    at net.minecraft.client.Minecraft.x(Minecraft.java:819)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)
    [IC2] received 56 bytes
    java.io.EOFException
    at java.io.DataInputStream.readInt(Unknown Source)
    at ic2.platform.NetworkManager.onPacketData(NetworkManager.java:199)
    at forge.MessageManager.dispatchIncomingMessage(MessageManager.java:432)

    at adl.a(NetClientHandler.java:1245)
    at ee.a(SourceFile:46)
    at lg.b(NetworkManager.java:343)
    at adl.b(NetClientHandler.java:67)
    at ez.a(SourceFile:32)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1566)
    at net.minecraft.client.Minecraft.x(Minecraft.java:819)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)
    [IC2] received 56 bytes
    java.io.EOFException
    at java.io.DataInputStream.readInt(Unknown Source)
    at ic2.platform.NetworkManager.onPacketData(NetworkManager.java:199)
    at forge.MessageManager.dispatchIncomingMessage(MessageManager.java:432)

    at adl.a(NetClientHandler.java:1245)
    at ee.a(SourceFile:46)
    at lg.b(NetworkManager.java:343)
    at adl.b(NetClientHandler.java:67)
    at ez.a(SourceFile:32)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1566)
    at net.minecraft.client.Minecraft.x(Minecraft.java:819)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)
    [IC2] received 67 bytes
    java.lang.NegativeArraySizeException
    at ic2.platform.NetworkManager.onPacketData(NetworkManager.java:208)
    at forge.MessageManager.dispatchIncomingMessage(MessageManager.java:432)

    at adl.a(NetClientHandler.java:1245)
    at ee.a(SourceFile:46)
    at lg.b(NetworkManager.java:343)
    at adl.b(NetClientHandler.java:67)
    at ez.a(SourceFile:32)
    at net.minecraft.client.Minecraft.k(Minecraft.java:1566)
    at net.minecraft.client.Minecraft.x(Minecraft.java:819)
    at net.minecraft.client.Minecraft.run(Minecraft.java:747)
    at java.lang.Thread.run(Unknown Source)
    Stopping!Exception in thread "AWT-EventQueue-0"
    java.lang.NullPointerException: component argument pData
    at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method)
    at sun.java2d.windows.GDIWindowSurfaceData.<init>(Unknown Source)
    at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source)
    at sun.java2d.d3d.D3DScreenUpdateManager.getGdiSurface(Unknown Source)
    at sun.java2d.d3d.D3DScreenUpdateManager.createGraphics(Unknown Source)
    at sun.awt.windows.WComponentPeer.getGraphics(Unknown Source)
    at java.awt.Component.getGraphics(Unknown Source)
    at sun.awt.RepaintArea.paint(Unknown Source)
    at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
    ce)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
    ce)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
    ce)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)


    Server side I get no errors, the log for the server shows it fine, and the server is up and running fine, it's only when I try to connect to the server.

    Just gives the disconnected generic.reason error.