Closed mholtrop closed 3 years ago
@mholtrop, @jstrube: something seems to have gone wrong when re-implementing the I/O layer to make LCIO thread-safe. Will look into this.
Thanks for taking a look. I've tried with 2.14.1, which does have the
issue, and with 2.13.3, which does not. I suspect it's a takeCollection
which doesn't get cleaned up. I got lost in the different pointer updates
in C++14 and C++17, but maybe it's as easy as making this a reference
counting pointer, so it gets killed without having to call an explicit
delete.
On Mon, Aug 10, 2020 at 10:49 PM Frank Gaede notifications@github.com wrote:
@mholtrop https://github.com/mholtrop, @jstrube https://github.com/jstrube: something seems to have gone wrong when re-implementing the I/O layer to make LCIO thread-safe. Will look into this.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iLCSoft/LCIO/issues/98#issuecomment-671740652, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACX57QD6G3HU5FVBBIUHQTSADLUZANCNFSM4PYAL77Q .
@jstrube, @mholtrop it should have been fixed with #99 so please use the master for testing. Will make a new release soon.
I can confirm that the current master no longer leaks memory like before.
On Aug 12, 2020, at 12:51 AM, Frank Gaede notifications@github.com wrote:
@jstrube https://github.com/jstrube, @mholtrop https://github.com/mholtrop it should have been fixed with #99 https://github.com/iLCSoft/LCIO/pull/99 so please use the master for testing. Will make a new release soon.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iLCSoft/LCIO/issues/98#issuecomment-672571325, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDD7YTDLTY2I7TGU6SODNDSAINU7ANCNFSM4PYAL77Q.
There seems to be a rather hefty memory leak when reading an slcio file the "classic" way with a loop using readNextEvent(), the memory footprint of a very simple code quickly balloons to many GB.
Sample minimal reader below. Note that the slcio files I am reading were created with the v02.07.05 Java version of LCIO. Thanks!