Closed smelfungus closed 5 years ago
What about logs?
Do you have ChatListener?
@berkus unfortunately log level was not set :( Will try to reproduce with it. Yep, both ChatClientListener & ChannelListener are used. UPD: One more observation - crash happened after first Channel creation attempt.
It looks like it crashes because your listener does not have an onError method. Can you double check that?
I'm afraid that behaviour is related to unhanded exception in my code of onError
callback.
Safe to close now, thank you!
@DummyCo How did you trace it back to the unhandled exception of onError? This stacktrace does not state that ? As I get the same error like this, help me understand how do u got the error point please thanks in advance.
Stack trace
I see getUserDescriptor
method only known from all the logs, based on what you said I added onError
method, but still I got the crash and stack trace similar to this, with UserDescriptor
method reference, so I am using getAndSubscribeUser
method with onError
implemented along side onSuccess
, not sure what is wrong with the previous one.
@aalap03 In my case Twilio onError
callbacks (placed in custom manager wrapping all the Twilio-related staff) were invoking custom subscribed listeners. One of the listeners was located in ViewModel
with an idea to process and populate Twilio errors to the related view layer if needed via LiveData
. As a result, Twilio onError
callback was invoked on non-main thread, what caused LiveData
value setting exception throwing and Twilio crash.
Maybe it would be useful to double check whether any exceptions are thrown in your callbacks' invoked code too?
Description
Hi there! Getting floating native crash with 4.0.0-rc12. Spawned right after channel onSynchronizationChanged() callback invocation.
Logs
Chat Android SDK
4.0.0-rc12
Android API
28
Android Device
Nexus 5X, 8.1.0
Thank you!