-
Notifications
You must be signed in to change notification settings - Fork 129
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
Errors store large amounts of data #1276
Comments
Yeah, I sometimes get something like this as well when a large |
This definitely sounds like #1253, which I thought I fixed. Traceback objects should no longer contain strange tagalong environments. However, there could still be another stowaway in the metadata list. How big is the list you get from |
I watched the memory use during the process, and here is what I noticed:
When the words "x fail report" showed up on the screen, memory usage went from ~2GB to ~5GB over the course of a few seconds. I then saw the following message:
(And some other stuff indicating the stack trace as normally shows up.) When I run
Oddly, the items within > diagnose(report)$error$dots$figures
<quosure>
expr: ^as_gg_list(pmap(.l = list(data = data, parameter = Parameter, assay = assay, allo_cl = allo_CL, allo_vc = allo_VC), .f = plotter, hline_values = adult_lines))
env: 0000023B83FA2408 It looks like the problem is the environment attached to the quosure: > pryr::object_size(rlang::get_env(diagnose(report)$error$dots$figures))
1.28 GB |
|
Wait, I just realized the traceback isn't the problem like it was for #1253. We'll have to cull the |
adcefba fixes it for me! After |
Great! Closing. |
Prework
drake
's code of conduct.remotes::install_github("ropensci/drake")
) and mention the SHA-1 hash of the Git commit you install.Description
I have an issue that may be identical to #1253. Unfortunately, I can't share the example as it is proprietary (and much like you, COVID-related work takes the time I would usually take to try to create a reprex).
Describe the bug clearly and concisely.
It comes up for me, when I'm building a relatively large plan for me (the .drake directory is ~2.6GB). At the point of using rmarkdown to build a report where much of the cache will be loaded, there was a bug in the report causing an error.
After that error, I got "Repacking large object".
When I corrected the error, it ran without issue, and there was no "repacking large object".
My guess is that I'm having the same type of issue as in #1253. I'm running drake 7.12.2.
Reproducible example
Unfortunately, I can't readily make a reprex right now. My hope is that the description above and the link to #1253 will help with some troubleshooting.
Expected result
A quick error message.
As a thought from reading #1253, it seems like the stack trace from errors along with their environments are being stored, and that could be my issue. For errors, could the default behavior be not to store the environments associated with the error?
Session info
The text was updated successfully, but these errors were encountered: