Skip to content

Conversation

wolfv
Copy link
Member

@wolfv wolfv commented Jul 12, 2018

This should fix #156 (the leak was in the copy constructor of pytensor, it's fine with std::move into the tuple).

Thanks for the great bug report @daniel-ziegler – would be cool if you could confirm that this solves your issue.

@JohanMabille JohanMabille merged commit da26852 into xtensor-stack:master Jul 12, 2018
@daniel-ziegler
Copy link

Yep, looks like the problem is solved -- thanks!

@daniel-ziegler
Copy link

Are you planning on putting out a 0.19.1 release for this? I think this is a pretty serious issue -- my jobs were leaking tens of gigabytes per hour and couldn't run to completion, and I spent over a day narrowing down the issue, thinking the whole time I was using shared_ptr wrong or something.

@wolfv
Copy link
Member Author

wolfv commented Jul 20, 2018

Thanks for the reminder, you're right we should have made a release a week ago -- will do it now!

@wolfv
Copy link
Member Author

wolfv commented Jul 21, 2018

Release is out on conda-forge! BTW if you ever have quick questions or remarks, we also try to be very active on our gitter channel: gitter.im/QuantStack/Lobby would be cool to hear what you're doing with xtensor :)

@wolfv wolfv deleted the fix_leak branch July 21, 2018 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leak with std::tuple<xt::pytensor<...>>
3 participants