Skip to content

fix: tools metrics dispatcher related memory leak [Backport] #3428

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

Merged

Conversation

NoelStephensUnity
Copy link
Collaborator

playModeStateChanged never gets unsubscribed in NetworkManager and keeps Multiplayer Tools MetricsDispatcher instances alive through NetworkMetrics when domain reload is disabled.

Jira ticket: MTT-11638

Changelog

  • Fixed: Memory leaks when domain reload is disabled.

Testing and Documentation

  • No tests have been added.

Backport

This is a backport of #3427

playModeStateChanged never gets unsubscribed
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner April 25, 2025 15:50
@NoelStephensUnity NoelStephensUnity changed the title fix: tools metrics dispatcher related memory leak fix: tools metrics dispatcher related memory leak [Backport] Apr 25, 2025
@NoelStephensUnity NoelStephensUnity enabled auto-merge (squash) April 25, 2025 15:52
NoelStephensUnity added a commit that referenced this pull request Apr 25, 2025
playModeStateChanged never gets unsubscribed in NetworkManager and keeps
Multiplayer Tools MetricsDispatcher instances alive through
NetworkMetrics when domain reload is disabled.

Jira ticket: [MTT-11638](https://jira.unity3d.com/browse/MTT-11638)

## Changelog

- Fixed: Memory leaks when domain reload is disabled.

## Testing and Documentation

- No tests have been added.

## Backport

Requires backport to v1.x. (#3428)

---------

Co-authored-by: Noel Stephens <noel.stephens@unity3d.com>
@NoelStephensUnity NoelStephensUnity merged commit bfc2bd5 into develop Apr 25, 2025
42 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/tools-metrics-dispatcher-memory-leak-backport branch April 25, 2025 19:57
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