Debug and fix memory leaks
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- android, cpp, java, javascript
- Domain
- mobile-dev, performance
Research direction
No file or test is named in the issue. Start by reviewing the referenced commit, then investigate the remaining Java Interface Implementation leak on the JS side; done means the listed leak is fixed and memory is reclaimed.
Written by the indexing model from the issue text.
Description
New runtimes work differently and are not well tested yet for memory leaks. We are working on fixing issues anything we find.
- When a java object is finally freed in Java, we notify the JS side to free the JS counterpart. At this time, the Java object is held weakly in Java too using a WeakReference. While the Java object is weakly held, the WeakReference is strongly kept in a HashMap never getting removed. In this PR we release the WeakReferences too on GC event ensuring that all memory is reclaimed. Fixed in https://github.com/NativeScript/napi-android/commit/5e48302fc0eeab63eae6935e864de36d25100e2c
- Investigate Java Interface Implementation leaking on JS Side
- Dominant language
- C++
- Stars
- 33
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NativeScript/napi-android
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
NativeScript/napi-android#37 · 7 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
NativeScript/napi-android#31 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
NativeScript/napi-android#30 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
NativeScript/napi-android#28 ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
NativeScript/napi-android#25 ·
All issues in NativeScript/napi-android
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
Component: GLib
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Mute ydb/tests/functional/dstool/test_canonical_requests.py.Test.test_group_take_snapshot in main Openai_reviewed
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
ydb-platform/ydb#53974 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google/libultrahdr#485 ·