-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Is it compatible with Android? #70
Comments
Hello, please post the full exception. The library is compatible with Android. |
I just display this error message FATAL EXCEPTION: DefaultDispatcher-worker-3 |
This is not the actual exception that is triggering the crash. There has to be more a longer stack trace. Otherwise I cannot do much with that info only, unfortunately. |
@davidepianca98 I'm getting the same on Android 13 on Pixel 6. The only log in logcat is
If I set an exception handler while calling
This error happens when the device goes to sleep and network activity gets suspended, but it doesn't lead to the crash directly. It detects that it's disconnected, then I'm trying to reconnect by creating a new instance and a second later it crashes with the crash log that OP mentioned. Here are the full logs:
|
@davidepianca98 I've added a demo here: https://github.com/RankoR/kmqtt-android-crash-demo It crashes every time if you follow the instructions. Edit: It crashes here I guess that there is no readable message because the socket connection happens in the constructor and NIO throws while constructing objects. |
When I try to run it, I get this error:
E FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: com.system.process, PID: 11679
The text was updated successfully, but these errors were encountered: