'Unhandled promise error: index out of bounds' with mirai_map
and .promise
#282
Labels
reprex
needs a minimal reproducible example
Uh oh!
There was an error while loading. Please reload this page.
This is an error that is occurring in my specific use case (not published here).
From this specific use case I built a reprex (that is unfortunately a bit long even if I tried to simplify/shorten it as much as possible) that I append to these explanations.
Out of 400 promises, a few (~between 3 and 8) are not fulfilled, but I am not able to catch them (via
onRejected
) and print the related error message.[EDIT 1]: This issue starts to appear from 5 daemons onwards. The computer I'm using has 4 physical cores and 8 logical ones.
As a result of these errors, the code after the
mirai_map
completes is not executed, so that means that 1) the progress bar stops its progress and doesn't eventually close, 2) the timer doesn't stop either, 3) the final result of themirai_map
is not displayed in the console, 4) the animated 'Processing...' button doesn't revert to its 'ready' state, and 5) the daemons are not closed.Did I miss something or is it really a bug?
[EDIT 2]: Interestingly this error no longer occurs when I set
dispatcher = TRUE
(the default setting). But then I go back to the other issue with the probable maximum size on globals. And in my use case, the whole process takes much more time with this setting .Additional information:
The text was updated successfully, but these errors were encountered: