Skip to content
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

Pointer error #439

Closed
femiguez opened this issue Feb 3, 2024 · 2 comments
Closed

Pointer error #439

femiguez opened this issue Feb 3, 2024 · 2 comments

Comments

@femiguez
Copy link

femiguez commented Feb 3, 2024

I'm the developer of apsimx (https://cran.r-project.org/package=apsimx) package. I have a function which retrieves data from a service https://worldmodel.csiro.au/. I'm heavily using the xml2 package to read and parse the data. However, this results in a fatal pointer error. To reproduce the problem you can run the following code.

library(apsimx)
sp <- apsimx:::get_worldmodeler_soil_profile(c(-93, 42))

At first it seems to work fine, but then R crashes after a few seconds

@femiguez
Copy link
Author

femiguez commented Feb 7, 2024

The error messages I see are:

free(): invalid pointer
[257905:257905:20240207, 133516.965314:ERROR process_memory_range.cc:86] read out of range
## similar errors regarding elf_image_reader.cc:558, elf_dynamic_array_reader.h:61] tag not found
## last error is found on directory_reader_posix.cc:42] opendir: No such file or directory (2)

@femiguez
Copy link
Author

femiguez commented Apr 2, 2024

I'm closing this only because I was able to find a workaround by setting argument '.copy' to TRUE instead of FALSE.

@femiguez femiguez closed this as completed Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant