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

java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add onError handling. #39

Open
y2k opened this issue Sep 7, 2016 · 0 comments

Comments

@y2k
Copy link
Owner

y2k commented Sep 7, 2016

java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling.
    at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:60)
    at rx.internal.schedulers.ExecutorScheduler$ExecutorSchedulerWorker.run(ExecutorScheduler.java:104)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:5525)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
Caused by: rx.exceptions.OnErrorNotImplementedException: Prepare failed.: status=0x1
    at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:386)
    at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:383)
    at rx.internal.util.ActionSubscriber.onError(ActionSubscriber.java:44)
    at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:157)
    at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:120)
    at rx.exceptions.Exceptions.throwOrReport(Exceptions.java:204)
    at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:144)
    at rx.subjects.SubjectSubscriptionManager$SubjectObserver.onNext(SubjectSubscriptionManager.java:225)
    at rx.subjects.PublishSubject.onNext(PublishSubject.java:114)
    at y2k.joyreactor.common.ObservableProperty$$special$$inlined$observable$1.afterChange(Delegates.kt:57)
    at kotlin.properties.ObservableProperty.setValue(ObservableProperty.kt:36)
    at y2k.joyreactor.common.ObservableProperty.setValue(ObservableProperty.kt)
    at y2k.joyreactor.common.ObservableProperty.plusAssign(ObservableProperty.kt:24)
    at y2k.joyreactor.viewmodel.VideoViewModel$1.invoke(VideoViewModel.kt:24)
    at y2k.joyreactor.viewmodel.VideoViewModel$1.invoke(VideoViewModel.kt:12)
    at y2k.joyreactor.common.ObservableExtensionsKt$sam$Action1$0605da30.call(ObservableExtensions.kt)
    at rx.Single$16.onNext(Single.java:1687)
    at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139)
    at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:227)
    at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
    ... 8 more
Caused by: java.io.IOException: Prepare failed.: status=0x1
    at android.media.MediaPlayer._prepare(Native Method)
    at android.media.MediaPlayer.prepare(MediaPlayer.java:1163)
    at y2k.joyreactor.widget.MuteVideoView.play(MuteVideoView.kt:54)
    at y2k.joyreactor.common.BindingBuilder$muteVideoView$1.invoke(ViewBinding.kt:143)
    at y2k.joyreactor.common.BindingBuilder$muteVideoView$1.invoke(ViewBinding.kt:60)
    at y2k.joyreactor.common.ObservablePropertyKt$sam$Action1$fb5cd431.call(ObservableProperty.kt)
    at rx.internal.util.ActionSubscriber.onNext(ActionSubscriber.java:39)
    at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139)
    ... 21 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant