Closed ricky151192 closed 4 years ago
Thanks for your report. Can you provide a minimal example that allows to reproduce the issue please?
I already did that with the issue above with two scripts " mainDeterministicmlrMBO.R" and " trialDeterministicmlrMBO.R ".
It took about 20 minutes of running your code for me to trigger the bug, somewhere in the 4 nested loops, doing three different calls to mbo and various bookkeeping things. Digging through all of this makes debugging much harder than necessary; please provide a simple example that immediately shows the bug.
I'm on it. The problem seems to be some C++-code in the lhs package which I assume causes some memory corruption that does not immediately trigger a crash. I assume that is why ricky151192's code example is so long.
The bug was this one: https://github.com/bertcarnell/lhs/issues/21
My PR for the lhs
package should fix this. @ricky151192 you can install it using
remotes::install_github("mb706/lhs")
and see if that works.
P.S. @ricky151192 thanks for providing the example. We knew for a while that there is a segfault hidden somewhere in the mlrMBO
execution path but it was triggered so infrequently that we were not able to find it until now.
I am glad to have been helpful! Apparently, with this version of LHS library, I was able to run without errors/crashes the previous example code. Thank you!
That solves the issue as far as mlrMBO is concerned.
I recently updated mlrMBO to version 1.1.3 on R 3.5.1 with Windows 10. Currently, I am trying to execute an experiment that requires hundred of experiments using mlrMBO library. However, I figured out that a problem from mlrMBO seems to abort of R session without any warnings or error notification (both using: Rgui.exe, Rscript.exe, and RStudio) To be clear on the issue, the code below calls several hundred times the “mbo” function in a sequential way and not in parallel. Also, I kept under control the memory RAM usage from the R process during the execution but is not reach a critical amount of RAM used. Here below, I reported the simple example code that stops the R session each time I execute the code. The code below is composed of two scripts: “mainDeterministicmlrMBO.R” and “trialDeterministicmlrMBO.R” -------- mainDeterministicmlrMBO.R -------
-------- trialDeterministicmlrMBO.R ---------
Thank you in advance.