-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
CHIPDeviceController-JNI.cpp incorrect JNIEnv method call for newly added methods #21493
Comments
FYI @chrisdecenzo, since he made that original change. |
Working on a fix for this now. |
This problem with boolean is obscuring another problem down deeper...
|
It should be possible to write some small Java apps to do minimal testing of the JNI library during CI. That would catch breakage like this immediately. Test would commission light bulb example and turn it on, then verify it is on. Do this from command line Java app, no Android needed. |
@chrisdecenzo In the AndroidDeviceControlWrapper.cpp: CHIP_ERROR err = JniReferences::GetInstance().FindMethod(env, mJavaObjectRef, "onCommissioningStatusUpdate", should be: CHIP_ERROR err = JniReferences::GetInstance().FindMethod(env, mJavaObjectRef, "onCommissioningStatusUpdate", |
My followup PR should address this: #21522 |
Does the CI environment include a JRE allowing small test apps? |
It's gets a lot further binding, but still can't finish.
|
That should be: |
If I fix onCommissioningStatusUpdate, the AddNOC fix has not landed yet. I (30699) esp_matter_command: Received command 0x0006 for enpoint 0x0000's cluster 0x0000003E |
I believe this is fixed by #21980 |
Problem
The following newly added JNI methods use the incorrect JNIEnv method (CallIntMethod):
should be (env->CallBooleanMethod):
bool attemptNetworkScanWiFi = env->CallBooleanMethod(controllerParams, getAttemptNetworkScanWiFi);
bool attemptNetworkScanThread = env->CallBooleanMethod(controllerParams, getAttemptNetworkScanThread);
<what's wrong or missing, please include any applicable:
App does not crash
App crashes on first call above
In Android CHIPTool attempt to "PROVISION CHIP DEVICE WITH WI-FI:
Proposed Solution
<suggested fix, suggested enhancement>
The text was updated successfully, but these errors were encountered: