Skip to content
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

[RF] Fix some memory leaks in Python tutorials #16670

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

guitargeek
Copy link
Contributor

To check if this would fix the Ubuntu 24.10 builds.

Copy link

github-actions bot commented Oct 13, 2024

Test Results

    14 files      14 suites   3d 10h 29m 44s ⏱️
 2 704 tests  2 584 ✅ 0 💤 120 ❌
35 704 runs  35 571 ✅ 0 💤 133 ❌

For more details on these failures, see this check.

Results for commit ba617a3.

♻️ This comment has been updated with latest results.

dpiparo and others added 4 commits October 14, 2024 10:49
this fixes the compilation on ubuntu 24.10
The old PyROOT (pre 2019) had a slightly different `atexit` handler than
the new one. The hard shutdown mode is different: `ClearProxiedObjects()`
is called before the final `gROOT->EndOfProcessCleanups()`.

I had the impresstion that this is redundant, and indeed the old PyROOT
didn't do it. This commit suggests to only call `ClearProxiedObjects()`
in soft shutdown mode, in an attempt to avoid the frequent crashes seen
at the end of PyROOT tutorials, especially on Ubuntu 24.10.

See also the original PRs where this functionality was introduced:

  * root-project#4687
  * root-project#4753
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.

2 participants