Error in mcfork(detached) :unable to fork, possible reason: Resource temporarily unavailable

michellegrushko-glossier created this issue on 2021-10-10 · The issue is replied 2 times

Project Robyn

Describe issue

I am attempting to run

OutputCollect <- robyn_run(

  • InputCollect = InputCollect # feed in all model specification
  • , plot_folder = robyn_object # plots will be saved in the same folder as robyn_object
  • , pareto_fronts = 3
  • , plot_pareto = TRUE
  • )

and received the following output:

Using robyn object location: /Users/michellegrushko/Desktop
Input data has 943 days in total: 2019-01-01 to 2021-07-31
Initial model is built on rolling window of 943 days: 2019-01-01 to 2021-07-31
Using geometric adstocking with 132 hyperparameters & 10-fold ridge x-validation on 6 cores

Start running 5 trials with 2000 iterations per trial each with TwoPointsDE nevergrad algorithm...
Running trial nr. 1

|======================================= | 43%/Users/michellegrushko/opt/anaconda3/envs/r-reticulate/lib/python3.9/site-packages/nevergrad/optimization/base.py:388: BadLossWarning: Updating fitness with inf value
warnings.warn(f"Updating fitness with {loss} value", errors.BadLossWarning)
|==========================================================================================| 100%
Finished in 16.52 mins

Running trial nr. 2

|======================== | 26%Error in mcfork(detached) :
unable to fork, possible reason: Resource temporarily unavailable
Timing stopped at: 32.95 32.86 259.6

I have 8 cores and am using 6 to run.

Provide dummy data & model configuration

Issues are often related to custom input data that is difficult to debug without. If necessary, please modify your data to mask real values and share a dataset that is able to reproduce the issue. Please also share your model configuration.

Environment & Robyn version

R version (R --version)
"R version 4.0.4 (2021-02-15)"
Please make sure you're using the latest Robyn version
Confirmed using the latest Robyn version

gufengzhou wrote this answer on 2021-10-11

this is clearly related to the parallel process. are you using windows, local other systems or cloud/HPC? this issue occurs every time or only sometimes?

michellegrushko-glossier wrote this answer on 2021-10-11

I was able to restart my r session and it seemed to do the trick

More Details About Repo
Owner Name facebookexperimental
Repo Name Robyn
Full Name facebookexperimental/Robyn
Language R
Created Date 2020-04-30
Updated Date 2021-11-25
Star Count 282
Watcher Count 31
Fork Count 120
Issue Count 12

YOU MAY BE INTERESTED

Issue Title State Comments Created Date Updated Date Closed Date
Ask eliserichards to move `restoreLocale` to visual completeness queue closed 1 2021-04-07 2021-11-06 2021-05-07
好看视频url parse failed open 0 2021-04-15 2021-11-19 -
build error closed 1 2021-07-16 2021-11-17 2021-07-16
PowerApps filtering of PowerBI tile issue open 0 2021-11-02 2021-11-25 -
Make `fs.open` and `fs.create` return our own file(-like) objects with `.bytes` and `.text` methods open 0 2018-12-18 2021-11-06 -
Windows_maximized can't un-maximize the window in the Linux builds closed 2 2021-09-23 2021-10-08 2021-09-23
Setup Dependabot in Repo open 1 2020-04-23 2021-11-27 -
Add some OQS tests to x509/x509_test.cc and evp/evp_test.cc open 3 2021-04-16 2021-11-17 -
[Docs Feedback]: Add a `gp await-port` example closed 0 2021-10-21 2021-11-16 2021-10-21
Out of bounds error in NAMES handling can lead to server DOS closed 0 2018-09-25 2021-10-02 2021-05-22