Skip to content

[Android] Fix Android JmeSurfaceView Memory Leak #2359

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

pavly-gerges
Copy link
Contributor

@pavly-gerges pavly-gerges commented Feb 2, 2025

This PR introduces a fix to:

The following are introduced into this PR:

  • On JmeSurfaceView: corrected the algorithm by which the SystemListener#destroy() concrete implementation is being dispatched by the Activity Lifecycle.
  • On JmeSurfaceView documentation: clarified the usage and the behavior of JmeSurfaceView.DestructionPolicy.
  • On OGLESContext: released the used weak references to the GlSurfaceView component that is being passed using the handler OGLESContext#createView(Context).

@yaRnMcDonuts
Copy link
Member

I plan to merge this in 24 hours.

@pavly-gerges
Copy link
Contributor Author

I plan to merge this in 24 hours.

In that regard, you might want to link this PR to its issue before merging.

@yaRnMcDonuts yaRnMcDonuts linked an issue Feb 17, 2025 that may be closed by this pull request
@yaRnMcDonuts yaRnMcDonuts merged commit b174045 into jMonkeyEngine:master Feb 17, 2025
15 checks passed
@pavly-gerges pavly-gerges deleted the fix-jmesurfaceview-mem-leak branch February 22, 2025 10:06
@stephengold stephengold added this to the v3.8.0 milestone Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] Memory leak on JmeSurfaceView
3 participants