-
Notifications
You must be signed in to change notification settings - Fork 2
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
<expr>$map_batches()
may crash the session
#5
Comments
Example to confirm that the cause of the segmentation fault is in x <- 0
while(TRUE) {pl$select(pl$lit("a")); print(x <<- x + 1)} x <- 0
while(TRUE) {pl$select(pl$lit("a")$map_batches(\(...) 1)); print(x <<- x + 1)} |
This comment was marked as off-topic.
This comment was marked as off-topic.
The segmentation fault that occurs in this issue has nothing to do with the error, and according to my understanding has nothing to do with that issue. |
FYI I've run 5k iterations of this without any problem. Does it still appear for you ? x <- 0
while(TRUE) {pl$select(pl$lit("a")$map_batches(\(...) 1)); print(x <<- x + 1)} Edit: and of course it's right after I write this that the same error as in the first post occurs... |
It seems that if we run
map_batches()
consecutively as shown below, an error will eventually occur.I think this indicates that something is wrong with inter-thread communication.
The same error occurs for the current r-polars, but it does not appear to occur when I set
in_background=TRUE
to have the UDF evaluated in a separate R session.The text was updated successfully, but these errors were encountered: