Skip to content
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

BLEManagerImpl.cpp crash #21550

Closed
robertfarnum opened this issue Aug 2, 2022 · 5 comments
Closed

BLEManagerImpl.cpp crash #21550

robertfarnum opened this issue Aug 2, 2022 · 5 comments

Comments

@robertfarnum
Copy link
Contributor

robertfarnum commented Aug 2, 2022

Problem

Android CHIPTool JNIEnv::NewByteArray crash. Stack trace attached (BLEManagerImpl.cpp.stack.txt)

  • expected behavior
    App does not crash
  • actual behavior
    App SIGABRTs; see stack trace.
  • steps to reproduce
    Provision device on Wi-Fi
  • system configuration
  • screenshots, images, logs, etc.

Proposed Solution

None currently found

BLEManagerImpl.cpp.stack.txt

@mrjerryjohns
Copy link
Contributor

The Android CHIPTool is no longer being actively maintained by the original maintainers.

@robertfarnum
Copy link
Contributor Author

The issue is in an android platform library, not just in the CHIPTool. Is there a test suite that could or should enable reproducing the issue?

@robertfarnum
Copy link
Contributor Author

@chrisdecenzo The actual cause of the above panic is due to an incorrect signature in the AndroidDeviceControlWrapper.cpp:

CHIP_ERROR err = JniReferences::GetInstance().FindMethod(env, mJavaObjectRef, "onCommissioningStatusUpdate",
"(JLJAVA/LANG/STRING;I)V", &onCommissioningStatusUpdateMethod);

should be:

CHIP_ERROR err = JniReferences::GetInstance().FindMethod(env, mJavaObjectRef, "onCommissioningStatusUpdate",
"(JLjava/lang/String;I)V", &onCommissioningStatusUpdateMethod);

@robertfarnum
Copy link
Contributor Author

Related to #21493.

@andy31415
Copy link
Contributor

I believe the wrong signature was fixed in #21980

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants