rfhb / ctrdata

Aggregate and analyse information on clinical trials from public registers
https://rfhb.github.io/ctrdata/
Other
43 stars 6 forks source link

Trial records not imported into database - stack error #22

Closed rfhb closed 2 years ago

rfhb commented 2 years ago

Users may have encountered errors such as the following:

Error : C stack usage 8329845 is too close to the limit or

Error in rcpp_read_ndjson_file(normalizePath(ndjson), get_download_mode(), Not compatible with STRSXP

when using package ctrdata function ctrLoadQueryIntoDb() executing the step (3/3) Importing JSON records into database.... The cause may be highly complex JSON data that need to be processed and that exceed the available stack.

Potential solutions increase the stack size and can be found here for

The occurence of this issue cannot be prevented by code in package ctrdata because it depends on the complexity of data in a trial record as retrieved from one of the register. With the suggestions above, users may configure their operating system to handle such complex datsa.