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

[BUG] Memory leak in android because ReleaseStringUTFChars is not called after GetStringUTFChars #23648

Closed
amitnj opened this issue Nov 17, 2022 · 1 comment · Fixed by #23655
Labels

Comments

@amitnj
Copy link
Contributor

amitnj commented Nov 17, 2022

Reproduction steps

1. Run the tv-app android platform-app and content-app on an android emulator
2. Run the tv-casting-app linux/android and commission it to the tv
3. Make several calls to read attributes.
After a point the platform-app crashes because the process is holding on the JNI references.

Bug prevalence

Whenever I do this

GitHub hash of the SDK that was being used

406bdfe

Platform

android

@andy31415
Copy link
Contributor

Also see #23658 for the generic issue. I believe GetStringUTFChars should NOT be used stand-alone as it is easy to miss the release.

@andy31415 andy31415 changed the title [BUG] [BUG] Memory leak in android because ReleaseStringUTFChars is not called after GetStringUTFChars Nov 18, 2022
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 a pull request may close this issue.

3 participants