mlr-org / mlr

Machine Learning in R
https://mlr.mlr-org.com
Other
1.64k stars 405 forks source link

Travis is broken #421

Closed larskotthoff closed 9 years ago

larskotthoff commented 9 years ago

Travis currently fails with

Error in ._jobjRef_dollar(x[["jobj"]], name) : 
  no field, method or inner class called 'calls' 
Calls: test_check ... expectation_error -> $ -> $.Throwable -> ._jobjRef_dollar
Execution halted

I cannot reproduce this error, even on a fresh Ubuntu installation that should be configured in the same way as the Travis machine.

The message suggests that it's coming from some Java interface code, probably RWeka. I've tested all the learners we use from RWeka and they seem to be fine.

Any ideas anybody?

jakob-r commented 9 years ago

If we exclude everything which uses Rweka and thus Rjava it works again https://travis-ci.org/mlr-org/mlr/branches

larskotthoff commented 9 years ago

Hmm, any idea what's causing this? Excluding everything that uses Java seems a bit over the top.

larskotthoff commented 9 years ago

Ok, I was able to reproduce the problem with the Oracle JDK. But in my case removing bartMachine (which also uses rJava) fixed it.

larskotthoff commented 9 years ago

Seems to be fixed now. Opened a new issue for the bartMachine stuff.

jakob-r commented 9 years ago

I am interested in how exactly did you spot the cause. So we might be smarter in the future. @larskotthoff Could you give some hints?

larskotthoff commented 9 years ago

I created a virtual machine with a fresh Ubuntu install, then installed R, Java, etc. Then I ran the tests to see if I could reproduce, then only the test that failed. Then I printed the names of the learners as they were being tested; got the error just after bartMachine. So I tested just that, commenting out things until I'd narrowed it down to the test with missing values. So then I constructed a test case for this manually and got a different error, but this error message along with some playing around gave me the hint how to "fix" this.

In practice it wasn't quite as straightforward as I described it; for example the default Java version (openjdk) worked fine; the problem only occurs with the Oracle JVM.

kapelner commented 8 years ago

I just upgraded bartMachine to 1.2.1 please try it now.

kindlychung commented 8 years ago

@kapelner What went wrong and how did you solve the issue? I am also having this problem with one of my packages that depend on rJava. Thanks!

kapelner commented 8 years ago

Unsure... you'll have to wait for lars to rerun and see if what I did fixes it.

larskotthoff commented 8 years ago

Thanks for updating -- we're having some other issues with Travis now, but as soon as that's sorted out I'll have a look at this.