Skip to content

Conversation

@cbjeukendrup
Copy link
Member

Resolves: #22885

Essentially just reapplying 2fa36e3.

However, this time I attempted to do it without re-causing #22640, and for me on macOS it seems to work.
I also couldn't reproduce #22641 again, but I didn't do anything special for that, so that's a bit more scary.

It turns out that the memory leak issue is a sort of blocker for #18436. That PR crashes because the popup window stays alive even after the popup has been closed, and thus the popup content and model stay alive too, and the latter causes crashes because it contains pointers to deleted items. That can be patched in other ways, but fixing the memory leak problem would be the cleanest way. That was the main motivation for re-trying this right now.

@RomanPudashkin
Copy link
Contributor

@cbjeukendrup maybe your fix will also help to solve this problem?

@zacjansheski
Copy link
Contributor

Tested on MacOS 14, Windows 11, Ubuntu 22.04.3. Approved
#22885 FIXED
#23158 Significant improvement

@cbjeukendrup
Copy link
Member Author

@zacjansheski Have you also verified that there are no regressions with #22640 and #22641? (As mentioned in the description, this PR reapplies a commit that previously caused those issues, and thus had to be reverted as a hotfix, but now after reapplying the commit, I made a proper fix for one issue and can't reproduce the other.)

@zacjansheski
Copy link
Contributor

@cbjeukendrup Yes, I checked and those issues did not return

@cbjeukendrup
Copy link
Member Author

Awesome! Let's merge it then!

@cbjeukendrup cbjeukendrup merged commit e982c72 into musescore:master Jul 8, 2024
@cbjeukendrup cbjeukendrup deleted the popupview_memory_leak branch July 8, 2024 19:59
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 in Styled Menus

3 participants