dji-sdk / Mobile-UXSDK-Android

DJI Mobile UXSDK is a suite of product agnostic UI objects that fast tracks the development of Android applications using the DJI Mobile SDK.
Other
154 stars 110 forks source link

Exception thrown on Scheduler.Worker thread.Add'onError' handling. #61

Open Likeshadows opened 5 years ago

Likeshadows commented 5 years ago

java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add onError handling. at dji.thirdparty.rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:60) at android.os.Handler.handleCallback(Handler.java:761) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:156) at android.app.ActivityThread.main(ActivityThread.java:6517) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832) Caused by: dji.thirdparty.rx.exceptions.OnErrorNotImplementedException at dji.thirdparty.rx.Observable$26.onError(Observable.java:8524) at dji.thirdparty.rx.observers.SafeSubscriber._onError(SafeSubscriber.java:157) at dji.thirdparty.rx.observers.SafeSubscriber.onError(SafeSubscriber.java:120) at dji.thirdparty.rx.observers.SerializedObserver.onError(SerializedObserver.java:158) at dji.thirdparty.rx.observers.SerializedSubscriber.onError(SerializedSubscriber.java:79) at dji.thirdparty.rx.internal.operators.OnSubscribeConcatMap$ConcatMapSubscriber.innerError(OnSubscribeConcatMap.java:192) at dji.thirdparty.rx.internal.operators.OnSubscribeConcatMap$ConcatMapInnerSubscriber.onError(OnSubscribeConcatMap.java:340) at dji.thirdparty.rx.internal.operators.OperatorSubscribeOn$1$1.onError(OperatorSubscribeOn.java:59) at dji.thirdparty.rx.Observable.unsafeSubscribe(Observable.java:8748) at dji.thirdparty.rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94) at dji.thirdparty.rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55) ... 7 more Caused by: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:851) at java.util.HashMap$EntryIterator.next(HashMap.java:891) at java.util.HashMap$EntryIterator.next(HashMap.java:890) at dji.ux.widget.VisionWidget.getOverallVisionSystemStatus(Unknown Source) at dji.ux.widget.VisionWidget.getAvoidanceSystemStatus(Unknown Source) at dji.ux.widget.VisionWidget.updateWidget(Unknown Source) at dji.ux.base.FrameLayoutWidget$2.a(Unknown Source) at dji.ux.base.FrameLayoutWidget$2.call(Unknown Source) at dji.thirdparty.rx.Observable.unsafeSubscribe(Observable.java:8741) ... 9 more dji.thirdparty.rx.exceptions.OnErrorNotImplementedException at dji.thirdparty.rx.Observable$26.onError(Observable.java:8524) at dji.thirdparty.rx.observers.SafeSubscriber._onError(SafeSubscriber.java:157) at dji.thirdparty.rx.observers.SafeSubscriber.onError(SafeSubscriber.java:120) at dji.thirdparty.rx.observers.SerializedObserver.onError(SerializedObserver.java:158) at dji.thirdparty.rx.observers.SerializedSubscriber.onError(SerializedSubscriber.java:79) at dji.thirdparty.rx.internal.operators.OnSubscribeConcatMap$ConcatMapSubscriber.innerError(OnSubscribeConcatMap.java:192) at dji.thirdparty.rx.internal.operators.OnSubscribeConcatMap$ConcatMapInnerSubscriber.onError(OnSubscribeConcatMap.java:340) at dji.thirdparty.rx.internal.operators.OperatorSubscribeOn$1$1.onError(OperatorSubscribeOn.java:59) at dji.thirdparty.rx.Observable.unsafeSubscribe(Observable.java:8748) at dji.thirdparty.rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94) at dji.thirdparty.rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55) at android.os.Handler.handleCallback(Handler.java:761) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:156) at android.app.ActivityThread.main(ActivityThread.java:6517) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832) Caused by: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:851) at java.util.HashMap$EntryIterator.next(HashMap.java:891) at java.util.HashMap$EntryIterator.next(HashMap.java:890) at dji.ux.widget.VisionWidget.getOverallVisionSystemStatus(Unknown Source) at dji.ux.widget.VisionWidget.getAvoidanceSystemStatus(Unknown Source) at dji.ux.widget.VisionWidget.updateWidget(Unknown Source) at dji.ux.base.FrameLayoutWidget$2.a(Unknown Source) at dji.ux.base.FrameLayoutWidget$2.call(Unknown Source) at dji.thirdparty.rx.Observable.unsafeSubscribe(Observable.java:8741) ... 9 more java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:851) at java.util.HashMap$EntryIterator.next(HashMap.java:891) at java.util.HashMap$EntryIterator.next(HashMap.java:890) at dji.ux.widget.VisionWidget.getOverallVisionSystemStatus(Unknown Source) at dji.ux.widget.VisionWidget.getAvoidanceSystemStatus(Unknown Source) at dji.ux.widget.VisionWidget.updateWidget(Unknown Source) at dji.ux.base.FrameLayoutWidget$2.a(Unknown Source) at dji.ux.base.FrameLayoutWidget$2.call(Unknown Source) at dji.thirdparty.rx.Observable.unsafeSubscribe(Observable.java:8741) at dji.thirdparty.rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94) at dji.thirdparty.rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55) at android.os.Handler.handleCallback(Handler.java:761) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:156) at android.app.ActivityThread.main(ActivityThread.java:6517) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)

dji-dev commented 5 years ago

Public comment from Lisa Fedane in Zendesk ticket #29113:

Thanks for reporting on this issue - I'm consulting with out engineers and will update you as soon as possible.

Lisa Fedane DJI Developer Support

dji-dev commented 5 years ago

Public comment from Lisa Fedane in Zendesk ticket #29113:

Can you provide the following info:

  1. Drone/Device you're connecting the SDK app too:
  2. Drone/Device firmware version:
  3. Mobile Device with OS version:
  4. List the steps to reproduce the error:

Lisa Fedane DJI Developer Support

india2sarthak commented 3 years ago

Facing the same issue. Any update on this?