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

[1.6.4] Corutines are not closed correcly when moved by mffs' Force Manipulator

Started by Kubuxu, 26 March 2014 - 02:38 PM
Kubuxu #1
Posted 26 March 2014 - 03:38 PM
When moving computer it is restarted two times and creates two new threads which are not being closed when moved again by force manipulator.
It makes server crash and in extreme cases Dedicated Server crash(!!!).


Properly closed coroutines:


I was sent there by Calclavia : "It's computer craft's problem. The mod NEEDS to close its threads on invalidate()."
Edited on 26 March 2014 - 07:11 PM
Bomb Bloke #2
Posted 26 March 2014 - 10:43 PM
Which version(s) of ComputerCraft have you tested this with?

Bearing in mind that 1.6 is available in beta form.
Edited on 26 March 2014 - 09:44 PM
Kubuxu #3
Posted 27 March 2014 - 05:37 AM
1.5 something. Looking into code it is fixed in 1.6. I will write ASM fix for myself. I have to only discover what should I call: unload() or destroy(). If you don't have anything against I could post it here.