Re: Does the "mlr" plugin work on Linux with Weka?
Eibe Frank <[email protected]> Wed, 28 Jun 2023 22:44:00 +1200
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <CADehzLXrTD7NcGdmTk+adAcSksKHs0ycee81JV_r2=RS_eueUg@mail.gmail.com> |
I have investigated this a bit more. It's not just the mlr package that is causing problems. Loading the ggplot2 package for R from the R console of the WEKA Explorer using library(ggplot2) also triggers a core dump. The ggplot2 library appears to be implemented in pure R (i.e., does not use native code) and does not have any dependencies on other R packages (in contrast to mlr) so it should be a simpler test case. It turns out that the R binary for R 4.2.0 differs in size between Ubuntu 20.04 and 22.04, by quite a bit. Copying the library file libR.so from 20.04 to 22.04 and using that from WEKA (with necessary adjustments) prevents the core dump from happening! It now looks like something in the way R is compiled for recent versions of Debian-based systems causes problems. I have tried compiling R from source on 22.04, which does not fix the issue, even when using clang instead of gcc (but I have not tried fiddling with the optimization settings for the compiler, etc.). I have also tried installing rJava 1.0-8 (see https://www.rforge.net/rJava/news.html) in R instead of the 1.0-6 version that is the newest version distributed via CRAN (and installed in R by WEKA). That did not help either. I'd love to know if other Java programs that use rJava to enable R commands to be issued from a Java application exhibit the same issue on recent versions of Debian(?)-based Linux systems. Everything works fine on macOS (at least on my Mac Mini with an ARM chip), and there does not appear to be an issue on Windows either (in both cases, I used the most recent stable version of the operating system). Cheers, Eibe On Mon, 26 Jun 2023 at 15:09, Eibe Frank <[email protected]> wrote: > There is hope. I have just tried a system that runs Ubuntu 20.04 rather > than 22.04, with the same version of R, Java, and WEKA, and MLRClassifier > works fine on that system. The only issue was that I had to install a > system library to get the xml package for R to install (and mlr to work): > > $ sudo apt-get install libxml2-dev > > I haven't tried this on 22.04 yet, but I suspect the issue is somewhere > else in that case (perhaps the newer version of gcc that comes with Ubuntu > 22.04 causes issues when compiling the R-related code from source). Here is > the gcc version of the 20.04 system: > > $ gcc --version > gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 > > Cheers, > Eibe > > On Sun, 25 Jun 2023 at 23:15, Erkan Ozhan <[email protected]> wrote: > >> Hi Eibe, thank you very much for your feedback. Is there any hope for the >> future? >> >> Best wishes. >> _______________________________________________ >> Wekalist mailing list -- [email protected] >> Send posts to [email protected] >> To unsubscribe send an email to [email protected] >> To subscribe, unsubscribe, etc., visit >> https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz >> List etiquette: >> http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html >> > _______________________________________________ Wekalist mailing list -- [email protected] Send posts to [email protected] To unsubscribe send an email to [email protected] To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html