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

[1.4.7][CC 1.5] Server deadlock caused by rednet

Started by bdew, 23 April 2013 - 10:47 AM
bdew #1
Posted 23 April 2013 - 12:47 PM
I seem to get a deadlock between 2 threads, causing a freeze of the internal server (SMP). Seems to be triggered by high wireless rednet traffic.
Nothing interesting in the forge log or stderr

Not sure how much of use would be showing my code, there are lots of it and it's a total mess, but if there's interest i'll upload it somewhere :P/>

From VisualVM: (full dump is attached)

Found one Java-level deadlock:
=============================
"Coroutine-2":
  waiting to lock monitor 0x00000000156dba88 (object 0x0000000785cd0de0, a dan200.computer.core.Computer),
  which is held by "Server thread"
"Server thread":
  waiting to lock monitor 0x000000001d3a1798 (object 0x0000000785cd0b68, a dan200.turtle.shared.TurtleModem$Peripheral),
  which is held by "Coroutine-2

Interesting that it seems to reference a turtle, as i only have one of them and it's not part of much rednet communication.

Looks similar to what was reported (and supposedly fixed) in http://www.computercraft.info/forums2/index.php?/topic/7987-146cc-1481smp-server-freeze-during-turtle-program/
Cloudy #2
Posted 23 April 2013 - 01:27 PM
Known, fixed in next build.
MudkipTheEpic #3
Posted 23 April 2013 - 01:50 PM
Known, fixed in next build.

I'm so excited for this next build! I wonder if it's only bug-fixes…
bdew #4
Posted 23 April 2013 - 02:20 PM
For the record, it seems it only affects turtles, atleast for me after breaking my single one it stopped happening.

Also, will that next build be for 1.5.x or will there be a bugfix release for 1.4.7?
Cloudy #5
Posted 23 April 2013 - 08:32 PM
Most likely 1.5.x.
Karnekdo #6
Posted 23 May 2013 - 10:26 AM
Hi.

It seems like I cannot create a new thread so I'll post here.
CC version is 1.5, client 1.4.7.


When you refuel the turtle with water bucket you'll get back 16 buckets.

Is there any fix for that problem? I cannot update CC because this is from standard mod pack FTB. Maybe a minor version change?
Cloudy #7
Posted 23 May 2013 - 10:56 AM
Update the version. Not my fault you're reliant on modpacks. Both the bug the thread is made for, and your stated bug are fixed.