yannrichet/rsession

sink stack is full exception when run RSession

Closed this issue · 1 comments

What steps will reproduce the problem?
public class TestRsession {

public void testTsession(){
    RserverConf rconf = new RserverConf("127.0.0.1", 6311, "", "", new Properties());
    Rsession s = null;
    s = Rsession.newInstanceTry(System.out, rconf);
    s.eval("warning2error <- function(code=\"\") { tryCatch(code, warning = function(e) stop(e)) }");
    s.eval("warning2error(warning(\'hahaha\'))", true);
    s.end();
}

@Test
public void testAll(){
    for(int i=0; i<25; i++) {
        testTsession();
    }
}

}

thanks.