Skip to content

uproot4.iterate with XRootD - std::bad_alloc? #291

Answered by jpivarski
ryuwd asked this question in Q&A
Discussion options

You must be logged in to vote

MemoryError and std::bad_alloc are pretty similar: the first is Python's exception, the second is C++'s exception. The allocation that actually fails to allocate memory, whether it's in Python or C++, is not where the real problem lies. It's a matter of other things using up the memory.

If it's running out of memory "legitimately," which is to say, you just don't have enough memory to do what you're trying to do, then it is difficult to diagnose on a different computer with a different amount of memory available. If it's a memory leak (which #281 was not), then it happens on any computer if you wait long enough.

What you're doing in your code doesn't involve Pandas, just some masking, so …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ryuwd
Comment options

Answer selected by ryuwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #290 on March 03, 2021 22:14.