dji-sdk / Mobile-SDK-Android-V5

MSDK V5 Sample
Other
247 stars 127 forks source link

DJIV5/RXUtil error causes app to crash shortly after application start and successful app registration #308

Open danekpilar01 opened 2 months ago

danekpilar01 commented 2 months ago

Hello, I started with an empty project and implemented the basic steps for using the SDK.

My app only uses a single Activity, where it initialises the SDK, checks for permissions, registers the App with the API key and in case when product is connected, a simple textview displays a message that the product is connected.

The registration goes well, but after one or two seconds, an exception is thrown and the app crashes, but I don't get any useful information from the error message:

(co_a:34) io.reactivex.rxjava3.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | io.reactivex.rxjava3.exceptions.MissingBackpressureException: Can't deliver value due to lack of requests at io.reactivex.rxjava3.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:717) at io.reactivex.rxjava3.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:714) at io.reactivex.rxjava3.internal.subscribers.LambdaSubscriber.onError(LambdaSubscriber.java:79) at io.reactivex.rxjava3.subscribers.SerializedSubscriber.onError(SerializedSubscriber.java:144) at io.reactivex.rxjava3.internal.operators.flowable.FlowableRepeatWhen$WhenReceiver.onError(FlowableRepeatWhen.java:112) at io.reactivex.rxjava3.internal.operators.flowable.FlowableTimer$TimerSubscriber.run(FlowableTimer.java:81) at io.reactivex.rxjava3.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38) at io.reactivex.rxjava3.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26) at java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) at java.lang.Thread.run(Thread.java:1012) Caused by: io.reactivex.rxjava3.exceptions.MissingBackpressureException: Can't deliver value due to lack of requests at io.reactivex.rxjava3.internal.operators.flowable.FlowableTimer$TimerSubscriber.run(FlowableTimer.java:81)  at io.reactivex.rxjava3.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)  at io.reactivex.rxjava3.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)  at java.util.concurrent.FutureTask.run(FutureTask.java:264)  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)  at java.lang.Thread.run(Thread.java:1012) 

The error message comes from DJIV5/RXUtil.

dji-dev commented 2 months ago

Agent comment from yating.liao in Zendesk ticket #104655:

Could you please inform us about the version of MSDK you are using? Is it the latest version 5.8?

°°°

dji-dev commented 2 months ago

Agent comment from yating.liao in Zendesk ticket #104655:

If you are not currently using the latest 5.8 version, could you please update to version 5.8 before conducting the test? I did not find any information in the logs you provided regarding the location of the crash.

Thank you.

°°°

danekpilar01 commented 2 months ago

Yes, I have the latest version: 5.8.0.

dji-dev commented 2 months ago

Agent comment from yating.liao in Zendesk ticket #104655:

Could you send us your project for analysis?

Here is the upload link:https://pan-sec.djicorp.com/s/oGoJJKQEgxjKbJ9 password:dji123

°°°