Uploaded image for project: 'SimplyE 2.0'
  1. SimplyE 2.0
  2. SIMPLY-1329

Findaway: Backpressure exception inside Findaway when submitting download tasks

XMLWordPrintable

      When submitting a large number of download tasks to Findaway (such as when a book is first opened), the following exception occurs:

      2018-10-22 17:16:23.004 17806-17907/org.nypl.simplified.simplye W/System.err: rx.exceptions.MissingBackpressureException
      2018-10-22 17:16:23.005 17806-17907/org.nypl.simplified.simplye W/System.err:     at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.onNext(OperatorObserveOn.java:160)
      2018-10-22 17:16:23.012 17806-17907/org.nypl.simplified.simplye W/System.err:     at rx.internal.operators.OnSubscribeFilter$FilterSubscriber.onNext(OnSubscribeFilter.java:76)
      2018-10-22 17:16:23.012 17806-17907/org.nypl.simplified.simplye W/System.err:     at rx.internal.operators.OperatorSubscribeOn$1$1.onNext(OperatorSubscribeOn.java:53)
      2018-10-22 17:16:23.012 17806-17907/org.nypl.simplified.simplye W/System.err:     at com.jakewharton.rxrelay.RelaySubscriptionManager$RelayObserver.onNext(RelaySubscriptionManager.java:205)
      2018-10-22 17:16:23.012 17806-17907/org.nypl.simplified.simplye W/System.err:     at com.jakewharton.rxrelay.PublishRelay.call(PublishRelay.java:47)
      2018-10-22 17:16:23.013 17806-17907/org.nypl.simplified.simplye W/System.err:     at com.jakewharton.rxrelay.SerializedAction1.call(SerializedAction1.java:84)
      2018-10-22 17:16:23.013 17806-17907/org.nypl.simplified.simplye W/System.err:     at com.jakewharton.rxrelay.SerializedRelay.call(SerializedRelay.java:20)
      2018-10-22 17:16:23.013 17806-17907/org.nypl.simplified.simplye W/System.err:     at io.audioengine.mobile.persistence.RequestBus.send(RequestBus.java:43)
      2018-10-22 17:16:23.013 17806-17907/org.nypl.simplified.simplye W/System.err:     at io.audioengine.mobile.persistence.DownloadEngine.download(DownloadEngine.java:76)
      2018-10-22 17:16:23.013 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.audiobook.android.audioengine.FindawayDownloadTask.fetch(FindawayDownloadTask.kt:66)
      2018-10-22 17:16:23.013 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.simplified.app.player.AudioBookPlayerActivity.startAllPartsDownloading(AudioBookPlayerActivity.kt:370)
      2018-10-22 17:16:23.013 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.simplified.app.player.AudioBookPlayerActivity.onLoadingFragmentLoadingFinished(AudioBookPlayerActivity.kt:329)
      2018-10-22 17:16:23.013 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.simplified.app.player.AudioBookLoadingFragment.parseAndFinishManifest(AudioBookLoadingFragment.kt:241)
      2018-10-22 17:16:23.013 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.simplified.app.player.AudioBookLoadingFragment.onManifestDownloaded(AudioBookLoadingFragment.kt:208)
      2018-10-22 17:16:23.013 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.simplified.app.player.AudioBookLoadingFragment.access$onManifestDownloaded(AudioBookLoadingFragment.kt:39)
      2018-10-22 17:16:23.013 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.simplified.app.player.AudioBookLoadingFragment$tryFetchNewManifest$1.onDownloadCompleted(AudioBookLoadingFragment.kt:170)
      2018-10-22 17:16:23.014 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.simplified.downloader.core.DownloadCatchingListener.onDownloadCompleted(DownloadCatchingListener.java:81)
      2018-10-22 17:16:23.014 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.simplified.downloader.core.DownloaderHTTP$Download.onHTTPOK(DownloaderHTTP.java:230)
      2018-10-22 17:16:23.014 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.simplified.downloader.core.DownloaderHTTP$Download.onHTTPOK(DownloaderHTTP.java:95)
      2018-10-22 17:16:23.014 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.simplified.http.core.HTTPResultOK.matchResult(HTTPResultOK.java:132)
      2018-10-22 17:16:23.014 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.simplified.downloader.core.DownloaderHTTP$Download.run(DownloaderHTTP.java:156)
      2018-10-22 17:16:23.014 17806-17907/org.nypl.simplified.simplye W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
      2018-10-22 17:16:23.014 17806-17907/org.nypl.simplified.simplye W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
      2018-10-22 17:16:23.014 17806-17907/org.nypl.simplified.simplye W/System.err:     at org.nypl.simplified.app.utilities.NamedThreadPools$Companion$namedThreadPool$named$1$newThread$t$1.run(NamedThreadPools.kt:37)
      2018-10-22 17:16:23.014 17806-17907/org.nypl.simplified.simplye W/System.err:     at java.lang.Thread.run(Thread.java:761)
      

      This seems to stop all downloads working until the engine is reinitialized.

            markraynsford Mark Raynsford
            markraynsford Mark Raynsford
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: