This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
bob188's profile picture

[1.7.10][CC1.72] Server crash when place some items

Started by bob188, 24 February 2015 - 07:10 PM
bob188 #1
Posted 24 February 2015 - 08:10 PM
VERSION:
CC1.72

DESCRIPTION:
When I place printer, disk drive, monitor or advancer monitor server crash

REPRODUCTION STEPS:
Place the items(monitor, adv. monitor, disk drive or printer) or start a server with these items placed on the map

CRASH REPORT

When place monitor
SpoilerDescription: Exception in server tick loop

java.lang.NoSuchFieldError: s_icons
at dan200.computercraft.shared.peripheral.monitor.TileMonitor.<clinit>(TileMonitor.java:38)
at dan200.computercraft.shared.peripheral.common.BlockPeripheral.createTile(BlockPeripheral.java:128)
at dan200.computercraft.shared.peripheral.common.BlockPeripheralBase.createTile(BlockPeripheralBase.java:66)
at dan200.computercraft.shared.common.BlockGeneric.createTileEntity(BlockGeneric.java:374)
at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:850)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:660)
at net.minecraft.world.World.func_147465_d(World.java:451)
at net.minecraft.item.ItemBlock.placeBlockAt(ItemBlock.java:206)
at net.minecraft.item.ItemBlock.func_77648_a(ItemBlock.java:103)
at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:505)
at net.minecraft.item.ItemStack.func_77943_a(ItemStack.java:128)
at net.minecraft.server.management.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:389)
at net.minecraft.network.NetHandlerPlayServer.func_147346_a(NetHandlerPlayServer.java:556)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:60)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:9)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)

When place disk drive
SpoilerDescription: Exception in server tick loop

java.lang.NoSuchFieldError: s_icons
at dan200.computercraft.shared.peripheral.diskdrive.TileDiskDrive.<clinit>(TileDiskDrive.java:38)
at dan200.computercraft.shared.peripheral.common.BlockPeripheral.createTile(BlockPeripheral.java:119)
at dan200.computercraft.shared.peripheral.common.BlockPeripheralBase.createTile(BlockPeripheralBase.java:66)
at dan200.computercraft.shared.common.BlockGeneric.createTileEntity(BlockGeneric.java:374)
at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:850)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:660)
at net.minecraft.world.World.func_147465_d(World.java:451)
at net.minecraft.item.ItemBlock.placeBlockAt(ItemBlock.java:206)
at net.minecraft.item.ItemBlock.func_77648_a(ItemBlock.java:103)
at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:505)
at net.minecraft.item.ItemStack.func_77943_a(ItemStack.java:128)
at net.minecraft.server.management.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:389)
at net.minecraft.network.NetHandlerPlayServer.func_147346_a(NetHandlerPlayServer.java:556)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:60)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:9)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)

When place printer
SpoilerDescription: Exception in server tick loop

java.lang.NoSuchFieldError: s_icons
at dan200.computercraft.shared.peripheral.printer.TilePrinter.<clinit>(TilePrinter.java:36)
at dan200.computercraft.shared.peripheral.common.BlockPeripheral.createTile(BlockPeripheral.java:132)
at dan200.computercraft.shared.peripheral.common.BlockPeripheralBase.createTile(BlockPeripheralBase.java:66)
at dan200.computercraft.shared.common.BlockGeneric.createTileEntity(BlockGeneric.java:374)
at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:850)
at net.minecraft.world.chunk.Chunk.func_150807_a(Chunk.java:660)
at net.minecraft.world.World.func_147465_d(World.java:451)
at net.minecraft.item.ItemBlock.placeBlockAt(ItemBlock.java:206)
at net.minecraft.item.ItemBlock.func_77648_a(ItemBlock.java:103)
at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:505)
at net.minecraft.item.ItemStack.func_77943_a(ItemStack.java:128)
at net.minecraft.server.management.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:389)
at net.minecraft.network.NetHandlerPlayServer.func_147346_a(NetHandlerPlayServer.java:556)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:60)
at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:9)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
Cranium #2
Posted 24 February 2015 - 09:11 PM
Could you provide a full crashlog? We need the entire thing to determine if other parts of your game may be causing issues.
bob188 #3
Posted 24 February 2015 - 09:26 PM
Is this? Full log from start server to crash (placing monitor)

Previous version 1.7 had a similar problem placing turtle with label, that version fixed that problem but appeared this.

Spoiler[22:25:02] [Server thread/INFO]: Starting minecraft server version 1.7.10
[22:25:03] [Server thread/INFO]: Loading properties
[22:25:03] [Server thread/INFO]: Default game type: SURVIVAL
[22:25:03] [Server thread/INFO]: Generating keypair
[22:25:03] [Server thread/INFO]: Starting Minecraft server on
[22:25:04] [Server thread/INFO]: Preparing level "world"
[22:25:04] [Server thread/INFO]: Preparing start region for level 0
[22:25:05] [Server thread/INFO]: Preparing spawn area: 48%
[22:25:05] [Server thread/INFO]: Done (1.568s)! For help, type "help" or "?"
[22:26:00] [Server thread/INFO]: Saving…
[22:26:00] [Server thread/INFO]: Saved the world
[22:27:07] [Server thread/INFO]: bob188[/] logged in w
[22:27:07] [Server thread/INFO]: bob188 joined the game
[22:27:14] [Server thread/INFO]: [bob188: Set own game mode to Creative Mode]
[22:27:15] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.NoSuchFieldError: s_icons
at dan200.computercraft.shared.peripheral.monitor.TileMonitor.<clinit>(TileMonitor.java:38) ~[TileMonitor.class:?]
at dan200.computercraft.shared.peripheral.common.BlockPeripheral.createTile(BlockPeripheral.java:128) ~[BlockPeripheral.class:?]
at dan200.computercraft.shared.peripheral.common.BlockPeripheralBase.createTile(BlockPeripheralBase.java:66) ~[BlockPeripheralBase.class:?]
at dan200.computercraft.shared.common.BlockGeneric.createTileEntity(BlockGeneric.java:374) ~[BlockGeneric.class:?]
at net.minecraft.world.chunk.Chunk.func_150806_e(Chunk.java:850) ~[apx.class:?]
at net.minecraft.world.World.func_147438_o(World.java:2540) ~[ahb.class:?]
at net.minecraftforge.common.ForgeHooks.onBlockBreakEvent(ForgeHooks.java:454) ~[ForgeHooks.class:?]
at net.minecraft.server.management.ItemInWorldManager.func_73084_b(ItemInWorldManager.java:259) ~[mx.class:?]
at net.minecraft.server.management.ItemInWorldManager.func_73074_a(ItemInWorldManager.java:151) ~[mx.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147345_a(NetHandlerPlayServer.java:489) ~[nh.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.func_148833_a(SourceFile:53) ~[ji.class:?]
at net.minecraft.network.play.client.C07PacketPlayerDigging.func_148833_a(SourceFile:8) ~[ji.class:?]
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) ~[ej.class:?]
at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:165) ~[nc.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:659) ~[MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334) ~[lt.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:547) ~[MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:427) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?]
[22:27:15] [Server thread/ERROR]: This crash report has been saved to: ./crash-reports/crash-2015-02-24_22.27.15-server.txt
[22:27:15] [Server thread/INFO]: Stopping server
[22:27:15] [Server thread/INFO]: Saving players
[22:27:15] [Server thread/INFO]: Saving worlds
[22:27:16] [Server thread/INFO]: Saving chunks for level 'world'/Overworld
[22:27:16] [Server thread/INFO]: Saving chunks for level 'world'/Nether
[22:27:16] [Server thread/INFO]: Saving chunks for level 'world'/The End
boq #4
Posted 24 February 2015 - 09:27 PM
Can confirm on server with CC 1.72 only.

Hint:

@SideOnly(Side.CLIENT)
private static final int[] icons = new int[5];
removes declaration, but leaves initializer.
Cranium #5
Posted 24 February 2015 - 11:54 PM
[22:27:15] [Server thread/ERROR]: This crash report has been saved to: ./crash-reports/crash-2015-02-24_22.27.15-server.txt
That's where the crashlog is.
bob188 #6
Posted 25 February 2015 - 12:06 AM
[22:27:15] [Server thread/ERROR]: This crash report has been saved to: ./crash-reports/crash-2015-02-24_22.27.15-server.txt
That's where the crashlog is.

That file contains the crash reports included in first message and this:

Spoiler– System Details –
Details:
Minecraft Version: 1.7.10
Operating System: Linux (amd64) version 3.10.23-xxxx-std-ipv6-64
Java Version: 1.8.0_05, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 811362728 bytes (773 MB) / 990904320 bytes (945 MB) up to 990904320 bytes (945 MB)
JVM Flags: 2 total; -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 5 mods loaded, 5 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{7.10.85.1291} [Forge Mod Loader] (custom_server.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{10.13.2.1291} [Minecraft Forge] (custom_server.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
ComputerCraft{1.72} [ComputerCraft] (ComputerCraft1.72.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
DeathCounter{4.0.0} [DeathCounter] (DeathCounter-4.0.0.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 1 / 12; [EntityPlayerMP['bob188'/477, l='world', x=146.99, y=152.00, z=-160.90]]
Is Modded: Definitely; Server brand changed to 'fml,forge'
Type: Dedicated Server (map_server.txt)
dan200 #7
Posted 25 February 2015 - 03:15 PM
Can confirm on server with CC 1.72 only.

Hint:

@SideOnly(Side.CLIENT)
private static final int[] icons = new int[5];
removes declaration, but leaves initializer.

grr. fixing now.
dan200 #8
Posted 25 February 2015 - 04:32 PM
Fixed in 1.73