View Issue Details

IDProjectCategoryView StatusLast Update
0001303Industrial-Craft²general / otherpublic2014-08-22 02:34
ReporterChocohead Assigned ToPlayer  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Summary0001303: 604 -> 607 Crash
DescriptionWhen I tried updating my IC2 test world from 604 to 607, I encounter this crash every time I try to enter the world.
---- Minecraft Crash Report ----
// Quite honestly, I wouldn't worry myself about that.

Time: 20/08/14 19:55
Description: Exception in server tick loop

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
    at java.util.ArrayList.rangeCheck(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at ic2.core.energy.Grid.finishCalculation(Grid.java:353)
    at ic2.core.energy.EnergyNetLocal.onTickEnd(EnergyNetLocal.java:357)
    at ic2.core.energy.EnergyNetGlobal.onTickEnd(EnergyNetGlobal.java:66)
    at ic2.core.TickHandler.onWorldTick(TickHandler.java:77)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_28_TickHandler_onWorldTick_WorldTickEvent.invoke(.dynamic)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:51)
    at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:122)
    at cpw.mods.fml.common.FMLCommonHandler.onPostWorldTick(FMLCommonHandler.java:255)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:645)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:111)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
I've got Forge 1207 BTW.
TagsNo tags attached.
Minecraft Version

Activities

Player

2014-08-20 21:24

administrator   ~0003243

Please update to build 608 or later and give me a fml-client-latest.log + all files starting with graph in your mc directory after seeing a message like "Can't determine direction for".

Chocohead

2014-08-20 22:11

developer   ~0003245

Last edited: 2014-08-20 22:13

608 doesn't fix it:
---- Minecraft Crash Report ----
// But it works on my machine.

Time: 20/08/14 23:05
Description: Exception in server tick loop

java.lang.StackOverflowError: Exception in server tick loop
    at java.security.BasicPermission.<init>(Unknown Source)
    at java.util.PropertyPermission.<init>(Unknown Source)
    at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
    at java.lang.System.getProperty(Unknown Source)
    at sun.security.action.GetPropertyAction.run(Unknown Source)
    at sun.security.action.GetPropertyAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.io.BufferedWriter.<init>(Unknown Source)
    at java.io.BufferedWriter.<init>(Unknown Source)
    at java.io.PrintStream.<init>(Unknown Source)
    at java.io.PrintStream.<init>(Unknown Source)
    at ic2.core.util.Log.getPrintStream(Log.java:14)
    at ic2.core.energy.Grid.finishCalculation(Grid.java:363)
    at ic2.core.energy.Grid.dumpNodeInfo(Grid.java:916)
Then the last 2 lines about 50 times alternating.

From the end of the log, it seems an MFSU is causing the crash. I attached the log, but can't find any files starting with (or containing) graph though.

Chocohead

2014-08-20 22:12

developer  

fml-client-latest.log (1,362,201 bytes)

Player

2014-08-21 00:12

administrator   ~0003248

Ah now it's crashing while creating the graphs, there wil be a new build in a few minutes.

Player

2014-08-21 00:18

administrator   ~0003249

I've put he messages behind a debug flag, run the game with -Dic2.energynet.debuggrid for another test please. For the mojang launcher this option goes into "JVM Arguments", if you launch minecraft from the command line it has to be before -jar.

Chocohead

2014-08-21 00:30

developer   ~0003250

609 seems to have fixed the crash, the world now loads fine.

The only bad thing I can see in the log is this:
[01:26:55] [Server thread/WARN] [IC2/IndustrialCraft 2]: Can't determine direction for ElectricMFSU|A|4|291.
Is that important in anyway?

Player

2014-08-21 00:36

administrator   ~0003251

Last edited: 2014-08-21 00:37

Yes it is indicating a fairly important issue in the enet implementation. If you get this with the latest build and the flag mentioned above, I need the log + graph files.

Chocohead

2014-08-21 00:40

developer   ~0003252

OK, I'll upload them. Do you want raw or optimized graphs? I'll upload both :)

Chocohead

2014-08-21 00:41

developer  

graph_126_optimized.txt (143 bytes)   
graph nodes {
  overlap=false;
  "KineticGenerator|E|0|290";
  "KineticGenerator|E|0|290" -- "null" [label="0.4"];
  "ElectricMFSU|A|0|291";
}
graph_126_optimized.txt (143 bytes)   

Chocohead

2014-08-21 00:41

developer  

graph_126_raw.txt (159 bytes)   
graph nodes {
  overlap=false;
  "KineticGenerator|E|3|290";
  "KineticGenerator|E|3|290" -- "ElectricMFSU|A|4|287" [label="0.4"];
  "ElectricMFSU|A|4|291";
}
graph_126_raw.txt (159 bytes)   

Player

2014-08-21 00:43

administrator   ~0003253

Can you also post the new log and a screenshot of the setup?

Chocohead

2014-08-21 00:50

developer   ~0003254

I tried attaching it, but since apparently IC2 world is having some troubles, I'll send you the mediafire link.

Apparently it's 22.4 MB. That might explain some of the problems.

Chocohead

2014-08-21 00:57

developer   ~0003255

Screenshot wise, does it give any indication of the coords of the MFSU? I have a lot in my test world (this is it's 109'th IC2 version) so it's not completely obvious which MFSU is having issues.

Mediafire link: https://www.mediafire.com/?uj6mpmmatlhveqo

Player

2014-08-21 01:21

administrator   ~0003256

This should(tm) be fixed in the next build :D

Chocohead

2014-08-21 13:28

developer   ~0003266

Seems to have, thanks Player :)

Issue History

Date Modified Username Field Change
2014-08-20 18:58 Chocohead New Issue
2014-08-20 19:11 Thunderdark Assigned To => Player
2014-08-20 19:11 Thunderdark Status new => assigned
2014-08-20 21:24 Player Note Added: 0003243
2014-08-20 21:24 Player Status assigned => feedback
2014-08-20 22:11 Chocohead Note Added: 0003245
2014-08-20 22:11 Chocohead Status feedback => assigned
2014-08-20 22:12 Chocohead File Added: fml-client-latest.log
2014-08-20 22:13 Chocohead Note Edited: 0003245
2014-08-21 00:12 Player Note Added: 0003248
2014-08-21 00:18 Player Note Added: 0003249
2014-08-21 00:30 Chocohead Note Added: 0003250
2014-08-21 00:36 Player Note Added: 0003251
2014-08-21 00:37 Player Note Edited: 0003251
2014-08-21 00:40 Chocohead Note Added: 0003252
2014-08-21 00:41 Chocohead File Added: graph_126_optimized.txt
2014-08-21 00:41 Chocohead File Added: graph_126_raw.txt
2014-08-21 00:43 Player Note Added: 0003253
2014-08-21 00:50 Chocohead Note Added: 0003254
2014-08-21 00:57 Chocohead Note Added: 0003255
2014-08-21 01:21 Player Note Added: 0003256
2014-08-21 13:28 Chocohead Note Added: 0003266
2014-08-22 02:34 Player Status assigned => closed
2014-08-22 02:34 Player Resolution open => fixed