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

Uncaught exception thrown by finalizer, Socket not created. #11

Open
sufiaji opened this issue Jul 15, 2020 · 3 comments
Open

Uncaught exception thrown by finalizer, Socket not created. #11

sufiaji opened this issue Jul 15, 2020 · 3 comments

Comments

@sufiaji
Copy link

sufiaji commented Jul 15, 2020

Hi Harry,
Thanks for the library, work like a charm!

However, there is an error on Logcat when executing OpenSerialDevice. Anyway, all the functions are still working, i.e. sending and receiving data. How do you think about this error and is there anyway to eliminate it? I am afraid it will crash on the long term usage.

Thanks!

image

@Anyeos
Copy link

Anyeos commented Oct 24, 2020

Hi, I get this error at runtime and the connection is never established.

    private void onError(Throwable error) {
        Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_LONG).show();
    }

I receive the error continiously and never connects.
I tryed with an installed Android app and my device just appears as LE. So maybe the library does not support LE devices?

@harryjph
Copy link
Owner

@sufiaji Sorry I didn't see this issue got opened! That is very strange and even stranger is that the stacktrace does not run through your app or the library at any point, as the error is created on a new thread - you'd have to track down where that thread was created..

@harryjph
Copy link
Owner

@Anyeos Hi! Sorry for the slow response also. The library only supports regular bluetooth devices, not BLE I'm afraid. They work completely differently and the Serial devices eg. HC-06 are not BLE.

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

No branches or pull requests

3 participants