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

1.3X [SMP/SSP] This happen when operate on rs API.

Started by RuAnShi, 23 March 2012 - 09:52 PM
RuAnShi #1
Posted 23 March 2012 - 10:52 PM
Put computer, then on left put redstone, then write code:

while true do
rs.setOutput("left", true)
rs.setOutput("left", false)
end

The game crashed:

java.lang.StackOverflowError
at aff.e(BlockRedstoneWire.java:357)
at vq.k(World.java:2997)
at vq.u(World.java:3007)
at vq.l(World.java:3030)
at vq.v(World.java:3045)
at aff.a(BlockRedstoneWire.java:72)
at aff.h(BlockRedstoneWire.java:57)
at aff.a(BlockRedstoneWire.java:345)
at vq.m(World.java:682)
at vq.j(World.java:666)
at aff.h(BlockRedstoneWire.java:63)
at aff.a(BlockRedstoneWire.java:345)
at vq.m(World.java:682)
at vq.j(World.java:666)
at aff.h(BlockRedstoneWire.java:63)
at aff.a(BlockRedstoneWire.java:345)
at vq.m(World.java:682)
at vq.j(World.java:666)
at aff.h(BlockRedstoneWire.java:63)
at aff.a(BlockRedstoneWire.java:345)
at vq.m(World.java:682)
at vq.j(World.java:666)
…….
Wired2coffee #2
Posted 25 March 2012 - 09:32 AM
Tested this one out myself, nothing happened in SMP, but it crashed hard in SSP.
RuAnShi #3
Posted 27 March 2012 - 08:16 AM
Try it on bukkit. I have newer tryed on vanilla, but on bukkit it hardly crashed the server.
Averus #4
Posted 27 March 2012 - 11:23 AM
crashed hard in SSP too
Cloudy #5
Posted 27 March 2012 - 11:31 AM
As has already been said, an issue on the bukkit port is not dan's issue - so it is unlikely to be fixed, as it doesn't crash in Vanilla SMP.

I can confirm that it does crash on SSP, but that's not a really big issue as you're only playing with yourself, and why would you want to crash your own instance? :o/>/>
Ian-Moone #6
Posted 27 March 2012 - 09:17 PM
it wont work because its trying to turn on and turn off the redstone at the same time so between

rs.setOutput("left", true)
and

rs.setOutput("left", false)
put

sleep(1)
and it should work
:o/>/>

PS. don't hold me on this im not that brilliant
Luanub #7
Posted 28 March 2012 - 06:31 AM
See this post.. http://www.computerc...er/page__st__20

Its been deemed a bukkit bug, it should be reported to the porter.

This thread needs to be closed.
Advert #8
Posted 30 March 2012 - 11:30 PM
I don't think we should close this; it crashes in SSP.
Luanub #9
Posted 31 March 2012 - 10:03 AM
Works fine on my SSP, just get the "too long without yielding" error after a couple of seconds due to it not having a sleep.