Debug and fix memory leaks
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- android, cpp, java, javascript
调研方向
issue 中没有指定文件或测试。先查看所引用的 commit,然后调查 JS 侧残留的 Java Interface Implementation 泄漏;完成的标准是修复所列出的泄漏并回收内存。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- C++
- 星标
- 33
- 派生
- 3
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NativeScript/napi-android 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
NativeScript/napi-android#37 · 7 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
NativeScript/napi-android#31 ·
-
难度 5/5 一周以上 新手友好度 25/100
NativeScript/napi-android#30 ·
-
难度 3/5 1-2 天 新手友好度 42/100
NativeScript/napi-android#28 ·
-
难度 5/5 一周以上 新手友好度 20/100
NativeScript/napi-android#25 ·
查看 NativeScript/napi-android 的全部 Issue
相似的 Issue
-
Website Doc Typo 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
-
难度 1/5 1-3 小时 新手友好度 92/100
autowarefoundation/autoware_universe#13413 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
-
automated-analysis bug memory-safety
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 88/100