Skip to content

Conversation

MinyazevR
Copy link
Contributor

  1. Solution for issue.
    Namely, adding PythonQt::preCleanUp, which is called before Py_FinalzeEx and clears some fields, which makes it possible to call PythonQt::Cleanup without subsequent crashes.
  2. Fixing memory leaks for all tests. However, the re-initialization tests currently fail for Python3.12.0-3.12.4 due to issue.
    3 Small changes to improve c++ code.

@MinyazevR MinyazevR changed the title Minyazev r fix tests Make it possible to use Py_Finalize before calling the PythonQt destructor Jun 26, 2025
@MinyazevR MinyazevR marked this pull request as draft June 26, 2025 19:30
@iakov
Copy link
Contributor

iakov commented Sep 5, 2025

@MinyazevR, please, rebase and review this PR. Seems like some of proposed fixes are already merged. It would be useful to understand, what fixes we do expect to be upstream-ed to reduce the diff between our fork and the upstream.

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