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

Server crashes when trying to run a program

Started by Bye., 08 August 2016 - 09:18 PM
Bye. #1
Posted 08 August 2016 - 11:18 PM
Today I was working on my server and it crashed twice, every time when I was clicking on the "Run" button of the edit program

There I have the crash report. Note: I can't upload the latest.txt file because the server restarts itself when crashing.
Spoiler

---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.
Time: 8/8/16 11:35 PM
Description: Exception ticking world
java.lang.ArrayIndexOutOfBoundsException: 3
at dan200.computercraft.core.terminal.Terminal.writeToNBT(Terminal.java:315)
at dan200.computercraft.shared.common.ServerTerminal.writeDescription(ServerTerminal.java:96)
at dan200.computercraft.shared.peripheral.monitor.TileMonitor.writeDescription(TileMonitor.java:217)
at dan200.computercraft.shared.common.TileGeneric.func_145844_m(TileGeneric.java:192)
at net.minecraft.server.management.PlayerManager$PlayerInstance.func_151252_a(PlayerManager.java:571)
at net.minecraft.server.management.PlayerManager$PlayerInstance.func_73254_a(PlayerManager.java:518)
at net.minecraft.server.management.PlayerManager.func_72693_b(PlayerManager.java:64)
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:223)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:690)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:344)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:605)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481)
at java.lang.Thread.run(Unknown Source)

A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at dan200.computercraft.core.terminal.Terminal.writeToNBT(Terminal.java:315)
at dan200.computercraft.shared.common.ServerTerminal.writeDescription(ServerTerminal.java:96)
at dan200.computercraft.shared.peripheral.monitor.TileMonitor.writeDescription(TileMonitor.java:217)
at dan200.computercraft.shared.common.TileGeneric.func_145844_m(TileGeneric.java:192)
at net.minecraft.server.management.PlayerManager$PlayerInstance.func_151252_a(PlayerManager.java:571)
at net.minecraft.server.management.PlayerManager$PlayerInstance.func_73254_a(PlayerManager.java:518)
at net.minecraft.server.management.PlayerManager.func_72693_b(PlayerManager.java:64)
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:223)
-- Affected level --
Details:
Level name: CCworld
All players: 2 total; [EntityPlayerMP['----'/172, l='CCworld', x=300.53, y=239.00, z=-144.76], EntityPlayerMP['----'/11674, l='CCworld', x=300.83, y=239.00, z=-146.44]]
Chunk stats: ServerChunkCache: 563 Drop: 0
Level seed: -1110308687942442334
Level generator: ID 00 - default, ver 1. Features enabled: true
Level generator options:
Level spawn location: 183.00,64.00,-90.00 - World: (183,64,-90), Chunk: (at 7,4,6 in 11,-6; contains blocks 176,0,-96 to 191,255,-81), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
Level time: 228853 game time, 6000 day time
Level dimension: 0
Level storage version: 0x04ABD - Anvil
Level weather: Rain time: 41896 (now: false), thunder time: 26859 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Stacktrace:
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:690)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:344)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:605)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:481)
at java.lang.Thread.run(Unknown Source)
-- System Details --
Details:
Minecraft Version: 1.8.9
Operating System: Linux (amd64) version 4.4.15-nitradoV3-MC-1000-nH-dP-d-a
Java Version: 1.7.0_71, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 189746264 bytes (180 MB) / 379617280 bytes (362 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 7 total; -Xms256M -Xincgc -XX:+DisableExplicitGC -XX:-UseGCOverheadLimit -XX:SoftRefLRUPolicyMSPerMB=1000 -XX:MaxPermSize=384M -Xmx1024M
IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
FML: MCP 9.19 Powered by Forge 11.15.1.1794 5 mods loaded, 5 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{8.0.99.99} [Forge Mod Loader] (minecraft_server.jar)
UCHIJAAAA Forge{11.15.1.1794} [Minecraft Forge] (minecraft_server.jar)
UCHIJAAAA ComputerCraft{1.79} [ComputerCraft] (ComputerCraft1.79.jar)
UCHIJAAAA worldedit{6.1.1} [WorldEdit] (worldedit-forge-mc1.8.9-6.1.1.jar)
Loaded coremods (and transformers):
Profiler Position: N/A (disabled)
Player Count: 2 / 4; [EntityPlayerMP['----'/172, l='CCworld', x=300.53, y=239.00, z=-144.76], EntityPlayerMP['----'/11674, l='CCworld', x=300.83, y=239.00, z=-146.44]]
Is Modded: Definitely; Server brand changed to 'fml,forge'
Type: Dedicated Server (map_server.txt)
I removed the players names
Lupus590 #2
Posted 09 August 2016 - 12:21 AM
The code you were running may also be useful
Edited on 08 August 2016 - 10:21 PM
Bye. #3
Posted 09 August 2016 - 11:41 AM
The code you were running may also be useful

mon = peripheral.wrap("right")
for i=1,10 do
mon.setTextScale(i/2)
print((i/2)..mon.getSize())
end
Lupus590 #4
Posted 09 August 2016 - 09:25 PM
did the server also have bukket? was it a cauldron server?
Bye. #5
Posted 09 August 2016 - 09:26 PM
did the server also have bukket? was it a cauldron server?
No, only Minecraft Forge
CCJJSax #6
Posted 27 August 2016 - 08:08 AM
I've been running in to this too. I found that a small sleep before and maybe after the wrapping the peripheral to solve it. I too was thinking about posting this. Try it out and see if it helps

——
edit

I have a feeling that it's trying to find the peripheral while the turtle is still moving and not after it gets done.

—–
Edited on 27 August 2016 - 06:18 AM
TheRockettek #7
Posted 27 August 2016 - 09:15 AM
Could be the fact youre executing the commands quickly in <1 tick and the game doesnt like that :D/> try sleeping
CCJJSax #8
Posted 28 August 2016 - 03:16 AM
Could be the fact youre executing the commands quickly in <1 tick and the game doesnt like that :D/>/> try sleeping

That is the resolution I'm sure. The only thing is it should crash the server, so I'd say it's still a bug.
TheRockettek #9
Posted 28 August 2016 - 06:52 AM
Also textscale has a limit on monitors btw