[jni] Reference leaks in JNI
Maintainers usually reply within 2 days
@liamappelbe is already working on this.
Since Nov 25, 2026.
Assessment
This issue has not been assessed yet.
Description
Working on writing more reference tracking tests in package:jni, and found more cases (in addition to https://github.com/dart-lang/native/issues/3806) where temporary references are being leaked. These references will hang around until the next Dart GC, which unnecessarily uses up the global reference budget.
- Collection adapter methods
- Exception handling utils
-
JImplementer
- Dominant language
- Dart
- Stars
- 280
- Forks
- 166
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 33
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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 dart-lang/native
-
lang-objective_c needs-triage package:objective_c
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
Proposal: targetIOSVersion may need to be updated to 15 for Flutter 3.47+Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
dart-lang/native#3594 · 1 comment ·
Maintainers usually reply within 2 days
-
package:ffigen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
dart-lang/native#1564 · 2 comments ·
Maintainers usually reply within 2 days
-
[ffigen] Gemini's friction logPossibly taken @liamappelbe claimed this today. Openneeds-triage package:ffigen
dart-lang/native#3837 · 1 assignee ·
Maintainers usually reply within 2 days
-
[jnigen] Gemini's friction logPossibly taken @liamappelbe claimed this today. Openlang-java needs-triage package:jni package:jni_flutter package:jnigen
dart-lang/native#3836 · 1 assignee ·
Maintainers usually reply within 2 days
All issues in dart-lang/native
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 75/100
nucleus-ffm/foss_warn#337 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
docs good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100