2
$\begingroup$

I have a list of functions that are being evaluated, using ParallelTable[], and continue to get the error message:

Parallel`Developer`QueueRun::hmm: Received unexpected result SystemException[MemoryAllocationFailure] from KernelObject[4,local].

from time to time. The functions are randomly generated, which is why I do not get the error message each time. Is there any way to just automatically discard the functions that cause the error, without having the entire program freeze up, like it is currently doing, when I run into this problem?

$\endgroup$
  • 1
    $\begingroup$ Wrapping in MemoryConstrained[] might help with the freeze-up issue. $\endgroup$ – Daniel Lichtblau Sep 30 '18 at 13:11
  • $\begingroup$ @DanielLichtblau - Thanks! That sounds like what I was looking for - I will try and see how that works! $\endgroup$ – Jmeeks29ig Oct 1 '18 at 13:13
  • $\begingroup$ @DanielLichtblau - That works, thanks! $\endgroup$ – Jmeeks29ig Oct 1 '18 at 13:22
  • $\begingroup$ Glad to hear it helped. $\endgroup$ – Daniel Lichtblau Oct 1 '18 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.