The webR Shelter
mechanism sometimes leaks memory to the Global Shelter
#423
Labels
bug
Something isn't working
I'm writing this issue at the end of the day so haven't spent the time to make a demo of this, but I'm logging it now in case you can tell me the answer anyway!
I noticed that Numbas seems not to destroy the R objects created when it runs code. For each session, we create Shelter and and REnvironment objects, run several blocks of code, and then run
shelter.purge()
, since that's the only method I could see that looked like it cleared memory.However, something's still being retained between session - after running code that makes a vector of a million numbers in about 200 separate sessions, I start getting "can't allocate a vector" errors.
What else should I be doing?
The text was updated successfully, but these errors were encountered: