wildex999 / ICBM

Open sourced ICBM code
2 stars 0 forks source link

stack overflow #5

Closed shadoxxhd closed 9 years ago

shadoxxhd commented 9 years ago

when i mine a block next to a computer connected to a ICBM launch controller, i get the following error (seems to be a broken equals function):

2015-01-03 14:04:37 [INFO] [Minecraft-Server] Stopping server 2015-01-03 14:04:37 [INFO] [Minecraft-Server] Saving players 2015-01-03 14:04:37 [INFO] [Minecraft-Server] Saving worlds 2015-01-03 14:04:37 [INFO] [Minecraft-Server] Saving chunks for level 'CCtest'/Overworld 2015-01-03 14:04:37 [INFO] [STDOUT] ---- Minecraft Crash Report ---- 2015-01-03 14:04:37 [INFO] [STDOUT] // Surprise! Haha. Well, this is awkward. 2015-01-03 14:04:37 [INFO] [STDOUT] 2015-01-03 14:04:37 [INFO] [STDOUT] Time: 1/3/15 2:04 PM 2015-01-03 14:04:37 [INFO] [STDOUT] Description: Exception while updating neighbours 2015-01-03 14:04:37 [INFO] [STDOUT] 2015-01-03 14:04:37 [INFO] [STDOUT] java.lang.StackOverflowError 2015-01-03 14:04:37 [INFO] [STDOUT] at icbm.explosion.machines.launcher.TileLauncherPrefab.equals(TileLauncherPrefab.java:158) ... 2015-01-03 14:04:37 [INFO] [STDOUT] at icbm.explosion.machines.launcher.TileLauncherPrefab.equals(TileLauncherPrefab.java:158) 2015-01-03 14:04:37 [INFO] [STDOUT] at icbm.explosion.machines.launcher.TileLauncherPrefab.equals(TileLauncherPrefab.java:158) 2015-01-03 14:04:37 [INFO] [STDOUT] at icbm.explosion.machines.launcher.TileLauncherPrefab.equals(TileLauncherPrefab.java:158) 2015-01-03 14:04:37 [INFO] [STDOUT] 2015-01-03 14:04:37 [INFO] [STDOUT] -- Block being updated -- 2015-01-03 14:04:37 [INFO] [STDOUT] Details: 2015-01-03 14:04:37 [INFO] [STDOUT] Source block type: ID #1225 (tile.cccomputer // dan200.computercraft.shared.computer.blocks.BlockComputer) 2015-01-03 14:04:37 [INFO] [STDOUT] Block type: ID #1225 (tile.cccomputer // dan200.computercraft.shared.computer.blocks.BlockComputer) 2015-01-03 14:04:37 [INFO] [STDOUT] Block data value: 11 / 0xB / 0b1011 2015-01-03 14:04:37 [INFO] [STDOUT] Block location: World: (-484,56,1229), Chunk: (at 12,3,13 in -31,76; contains blocks -496,0,1216 to -481,255,1231), Region: (-1,2; contains chunks -32,64 to -1,95, blocks -512,0,1024 to -1,255,1535) 2015-01-03 14:04:37 [INFO] [STDOUT] Stacktrace: 2015-01-03 14:04:37 [INFO] [STDOUT] at net.minecraft.world.World.func_72821_m(World.java:850) 2015-01-03 14:04:37 [INFO] [STDOUT] at dan200.computercraft.shared.util.RedstoneUtil.propogateRedstoneOutput(RedstoneUtil.java:85) 2015-01-03 14:04:37 [INFO] [STDOUT] at dan200.computercraft.shared.computer.blocks.TileComputerBase.updateOutput(TileComputerBase.java:328) 2015-01-03 14:04:37 [INFO] [STDOUT] at dan200.computercraft.shared.computer.blocks.TileComputerBase.func_70316_g(TileComputerBase.java:197) 2015-01-03 14:04:37 [INFO] [STDOUT] at net.minecraft.world.World.func_72939_s(World.java:2209) 2015-01-03 14:04:37 [INFO] [STDOUT] at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:550) 2015-01-03 14:04:37 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668) 2015-01-03 14:04:37 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587) 2015-01-03 14:04:37 [INFO] [STDOUT] at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:129) 2015-01-03 14:04:37 [INFO] [STDOUT] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) 2015-01-03 14:04:37 [INFO] [STDOUT] at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583) 2015-01-03 14:04:37 [INFO] [STDOUT] 2015-01-03 14:04:37 [INFO] [STDOUT] -- Tile entity being ticked -- 2015-01-03 14:04:37 [INFO] [STDOUT] Details: 2015-01-03 14:04:37 [INFO] [STDOUT] Name: computer // dan200.computercraft.shared.computer.blocks.TileComputer 2015-01-03 14:04:37 [INFO] [STDOUT] Block type: ID #1225 (tile.cccomputer // dan200.computercraft.shared.computer.blocks.BlockComputer) 2015-01-03 14:04:37 [INFO] [STDOUT] Block data value: 10 / 0xA / 0b1010 2015-01-03 14:04:37 [INFO] [STDOUT] Block location: World: (-485,56,1229), Chunk: (at 11,3,13 in -31,76; contains blocks -496,0,1216 to -481,255,1231), Region: (-1,2; contains chunks -32,64 to -1,95, blocks -512,0,1024 to -1,255,1535) 2015-01-03 14:04:37 [INFO] [STDOUT] Actual block type: ID #1225 (tile.cccomputer // dan200.computercraft.shared.computer.blocks.BlockComputer) 2015-01-03 14:04:37 [INFO] [STDOUT] Actual block data value: 10 / 0xA / 0b1010 2015-01-03 14:04:37 [INFO] [STDOUT] 2015-01-03 14:04:37 [INFO] [STDOUT] -- Affected level -- 2015-01-03 14:04:37 [INFO] [STDOUT] Details: 2015-01-03 14:04:37 [INFO] [STDOUT] Level name: CCtest 2015-01-03 14:04:37 [INFO] [STDOUT] All players: 0 total; [] 2015-01-03 14:04:37 [INFO] [STDOUT] Chunk stats: ServerChunkCache: 626 Drop: 0 2015-01-03 14:04:37 [INFO] [STDOUT] Level seed: -8592147795837771408 2015-01-03 14:04:37 [INFO] [STDOUT] Level generator: ID 01 - flat, ver 0. Features enabled: true 2015-01-03 14:04:37 [INFO] [STDOUT] Level generator options: 2;7,3x1,52x24;2; 2015-01-03 14:04:37 [INFO] [STDOUT] Level spawn location: World: (-466,4,1239), Chunk: (at 14,0,7 in -30,77; contains blocks -480,0,1232 to -465,255,1247), Region: (-1,2; contains chunks -32,64 to -1,95, blocks -512,0,1024 to -1,255,1535) 2015-01-03 14:04:37 [INFO] [STDOUT] Level time: 223312 game time, 223312 day time 2015-01-03 14:04:37 [INFO] [STDOUT] Level dimension: 0 2015-01-03 14:04:37 [INFO] [STDOUT] Level storage version: 0x04ABD - Anvil 2015-01-03 14:04:37 [INFO] [STDOUT] Level weather: Rain time: 7783 (now: true), thunder time: 5890 (now: true) 2015-01-03 14:04:37 [INFO] [STDOUT] Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true 2015-01-03 14:04:37 [INFO] [STDOUT] 2015-01-03 14:04:37 [INFO] [STDOUT] -- System Details -- 2015-01-03 14:04:37 [INFO] [STDOUT] Details: 2015-01-03 14:04:37 [INFO] [STDOUT] Minecraft Version: 1.6.4 2015-01-03 14:04:37 [INFO] [STDOUT] Operating System: Windows 8.1 (amd64) version 6.3 2015-01-03 14:04:37 [INFO] [STDOUT] Java Version: 1.7.0_71, Oracle Corporation 2015-01-03 14:04:37 [INFO] [STDOUT] Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation 2015-01-03 14:04:37 [INFO] [STDOUT] Memory: 141096992 bytes (134 MB) / 562106368 bytes (536 MB) up to 3956801536 bytes (3773 MB) 2015-01-03 14:04:37 [INFO] [STDOUT] JVM Flags: 7 total; -Xms256M -Xmx3840M -XX:PermSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CICompilerCountPerCPU -XX:+TieredCompilation 2015-01-03 14:04:37 [INFO] [STDOUT] AABB Pool Size: 49 (2744 bytes; 0 MB) allocated, 48 (2688 bytes; 0 MB) used 2015-01-03 14:04:37 [INFO] [STDOUT] Suspicious classes: FML and Forge are installed 2015-01-03 14:04:37 [INFO] [STDOUT] IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 2015-01-03 14:04:37 [INFO] [STDOUT] FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 84 mods loaded, 84 mods active

wildex999 commented 9 years ago

This should now be fixed in the latest commit c001f62a885187fd86325cea2f490ddfed0a624e.

I also released a new version with this fix. https://github.com/wildex999/ICBM/releases/tag/v1.4.2.386-wx9.004

Note however that I have not been able to test this fix. It is the same fix as for the Radar in the beginning, so it should work.

shadoxxhd commented 9 years ago

i just tried it out, works like it should :+1: