Skip to content

fix: check every JNI call for exceptions and test under -Xcheck:jni in CI - #526

Merged
devopvoid merged 1 commit into
mainfrom
fix/jni-exception-checks
Nov 3, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/jni-exception-checks

Conversation

@devopvoid

Copy link
Copy Markdown
Owner
  • The iterator, map, list and boxing helpers, the VideoFrame buffer conversion and the reporting of uncaught exceptions check each Java call before the next JNI call. The tests of webrtc and webrtc-media now run without any -Xcheck:jni warning (about 58,000 before). Exceptions reach Java as before.
  • A new jni-check (linux_x86-64) job reruns the tests under -Xcheck:jni against the built natives. The log goes to a file and is summarized in the job summary; the job fails on any test failure, FATAL ERROR in native method or JNI warning.

…n CI

The iterator, map, list and boxing helpers, the VideoFrame buffer conversion and the uncaught exception reporting now check each Java call before the next JNI call, so the tests run without any -Xcheck:jni warning. A new CI job reruns the tests under -Xcheck:jni on linux x86_64 and fails on any JNI error or warning.
@devopvoid
devopvoid merged commit 28d9238 into main Nov 3, 2026
23 checks passed
@devopvoid
devopvoid deleted the fix/jni-exception-checks branch November 3, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant