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

NearShare sample crashed after send completed #85

Open
xingrz opened this issue Oct 1, 2019 · 2 comments
Open

NearShare sample crashed after send completed #85

xingrz opened this issue Oct 1, 2019 · 2 comments
Labels

Comments

@xingrz
Copy link

xingrz commented Oct 1, 2019

Version: com.microsoft.connecteddevices:connecteddevices-sdk:1.5.0

Log:

W/System.err: java.lang.NoSuchMethodError: no non-static method "Lcom/microsoft/connecteddevices/remotesystems/commanding/nearshare/NearShareSenderEnumAsyncOperation;.complete(ILjava/lang/String;)V"
E/libc++abi: terminating with uncaught exception of type ConnectedDevices::WrappedPlatformSpecificException
A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 13844 (Thread-53), pid 13747 (vices.nearshare)

Inspecting the NearShareSenderEnumAsyncOperation class, there's only a method void complete(int value). Not anything like void complete(int value, String foo).

Tested com.microsoft.connecteddevices:connecteddevices-sdk:1.3.0 is ok but broken since 1.3.2.

@cmknox cmknox added the bug label Oct 2, 2019
@cmknox
Copy link
Contributor

cmknox commented Oct 2, 2019

@xingrz Thank you for the information. I've created a bug and we will be investigating.

@ShortDevelopment
Copy link

ShortDevelopment commented Mar 17, 2022

I'm currently experiencing the same bug with version 1.6.1 (Using a Xamarin.Android binding created from the aar file)

[System.err] java.lang.NoSuchMethodError: no non-static method "Lcom/microsoft/connecteddevices/remotesystems/commanding/nearshare/NearShareSenderEnumAsyncOperation;.complete(ILjava/lang/String;)V"
[libc++abi] terminating with uncaught exception of type ConnectedDevices::WrappedPlatformSpecificException

EDIT
This error occurs because the c++ „backend” tries to call a non-existing java method via JNI.
You can quite easily patch the java bytecode of this lib (See linked issue below)…

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

No branches or pull requests

3 participants