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

[1.56] Wired Peripheral Deadlock

Started by immibis, 12 October 2013 - 04:13 AM
immibis #1
Posted 12 October 2013 - 06:13 AM
Server deadlocks when loading a chunk containing wired modems attached to peripherals.

Full thread dump: http://pastebin.com/98DzknnD

Deadlocked threads:

"Thread-297":
        at dan200.computer.shared.TileEntityCable.attach(TileEntityCable.java:361)
        - waiting to lock <0x00000007f3a61348> (a java.util.HashMap)
        at dan200.computer.core.apis.PeripheralAPI$PeripheralWrapper.attach(PeripheralAPI.java:82)
        - locked <0x00000007f3a61170> (a dan200.computer.core.apis.PeripheralAPI$PeripheralWrapper)
        at dan200.computer.core.apis.PeripheralAPI.startup(PeripheralAPI.java:342)
        - locked <0x00000007f3a61148> (a [Ldan200.computer.core.apis.PeripheralAPI$PeripheralWrapper;)
        at dan200.computer.core.Computer.initLua(Computer.java:716)
        at dan200.computer.core.Computer.access$1200(Computer.java:34)
        at dan200.computer.core.Computer$1.execute(Computer.java:817)
        - locked <0x00000007f40fd0c8> (a dan200.computer.core.Computer$1)
        at dan200.computer.core.ComputerThread$1$1.run(ComputerThread.java:117)
        at java.lang.Thread.run(Thread.java:724)

"Server thread":
        at dan200.computer.core.apis.PeripheralAPI$PeripheralWrapper.queueEvent(PeripheralAPI.java:220)
        - waiting to lock <0x00000007f3a61170> (a dan200.computer.core.apis.PeripheralAPI$PeripheralWrapper)
        at dan200.computer.shared.TileEntityCable$RemotePeripheralWrapper.attach(TileEntityCable.java:561)
        at dan200.computer.shared.TileEntityCable.attachPeripheral(TileEntityCable.java:395)
        at dan200.computer.shared.TileEntityCable.findPeripherals(TileEntityCable.java:682)
        - locked <0x00000007f3a61348> (a java.util.HashMap)
        at dan200.computer.shared.TileEntityCable.func_70316_g(TileEntityCable.java:285)
        - locked <0x00000007f3a61348> (a java.util.HashMap)
        at net.minecraft.world.World.func_72939_s(World.java:2209)
        at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:550)
        at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668)
        at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:276)
        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
        at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
immibis #2
Posted 02 November 2013 - 02:55 AM
Bump to ensure a developer is aware of it. According to asie in IRC, this still happens.