-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nul byte returned #5
Comments
Hmm this seems to work:
Maybe the problem is that the expression gets substituted for a very long inline string whichs hits some limit on the size of the R call/expression. Here is a minimal example: library(unix)
x <- strrep("a", 65000)
y <- strrep("a", 66000)
x2 <- eval_fork(x)
y2 <- eval_fork(y) |
Ah, right - hitting > eval_fork(paste(rep('a', 2^16 + 1), collapse = ''))
Error in eval_fork_internal(expr = clexpr, envir = clenv, tmp = tmp, timeout = timeout, :
embedded nul in string: Let me debug further my original issue and come up with a better minimal example, as it's actually a pretty long and complex list. |
Hm, I did not manage to get your > library(unix)
> y <- strrep("a", 66000)
> eval_fork(list(x = y))
Error in eval_fork_internal(expr = clexpr, envir = clenv, tmp = tmp, timeout = timeout, :
embedded nul in string Anyway, I guess I should stick with |
You are right. I won't close the issue just yet I'd like to understand it better first. |
Hi @jeroen,
First of all -- as always, thanks a lot for this fantastic package!
I've run into an issue when using
eval_fork
to return an SVG object (please find attached):Session info
Example file:
svg.zip(EDIT: deleted, as better minimal, reproducible examples shared below)Any ideas where the serialization might go wrong?
The text was updated successfully, but these errors were encountered: