Crash at attempting to play a videi on 0.16.13 #10

Closed
opened 2021-02-02 22:43:05 +01:00 by czarkoff · 6 comments
czarkoff commented 2021-02-02 22:43:05 +01:00 (Migrated from github.com)

The Issue

Steps to reproduce

  1. Tap any video

Expected behaviour

Video is played

Actual behaviour

Application crashes.

System Configuration

  • Device: Xiaomi Redmi Note 8 Pro
  • Android version: Android 10

Anything Else

Trace

java.lang.SecurityException: Neither user 10399 nor current process has android.permission.WAKE_LOCK.
at android.os.Parcel.createException(Parcel.java:2074)
at android.os.Parcel.readException(Parcel.java:2042)
at android.os.Parcel.readException(Parcel.java:1990)
at android.os.IPowerManager$Stub$Proxy.acquireWakeLock(IPowerManager.java:750)
at android.os.PowerManager$WakeLock.acquireLocked(PowerManager.java:2188)
at android.os.PowerManager$WakeLock.acquire(PowerManager.java:2154)
at com.google.android.exoplayer2.WakeLockManager.updateWakeLock(WakeLockManager.java:96)
at com.google.android.exoplayer2.WakeLockManager.setStayAwake(WakeLockManager.java:83)
at com.google.android.exoplayer2.SimpleExoPlayer.updateWakeAndWifiLock(SimpleExoPlayer.java:2077)
at com.google.android.exoplayer2.SimpleExoPlayer.access$4700(SimpleExoPlayer.java:75)
at com.google.android.exoplayer2.SimpleExoPlayer$ComponentListener.onPlaybackStateChanged(SimpleExoPlayer.java:2407)
at com.google.android.exoplayer2.ExoPlayerImpl$PlaybackInfoUpdate.lambda$run$7$ExoPlayerImpl$PlaybackInfoUpdate(ExoPlayerImpl.java:1447)
at com.google.android.exoplayer2.-$$Lambda$ExoPlayerImpl$PlaybackInfoUpdate$tUn7tXLH0gigHS24TehPEnTXTJ0.invokeListener(Unknown Source:2)
at com.google.android.exoplayer2.BasePlayer$ListenerHolder.invoke(BasePlayer.java:279)
at com.google.android.exoplayer2.ExoPlayerImpl.invokeAll(ExoPlayerImpl.java:1496)
at com.google.android.exoplayer2.ExoPlayerImpl.access$100(ExoPlayerImpl.java:56)
at com.google.android.exoplayer2.ExoPlayerImpl$PlaybackInfoUpdate.run(ExoPlayerImpl.java:1445)
at com.google.android.exoplayer2.ExoPlayerImpl.notifyListeners(ExoPlayerImpl.java:1326)
at com.google.android.exoplayer2.ExoPlayerImpl.updatePlaybackInfo(ExoPlayerImpl.java:954)
at com.google.android.exoplayer2.ExoPlayerImpl.prepare(ExoPlayerImpl.java:320)
at com.google.android.exoplayer2.SimpleExoPlayer.prepare(SimpleExoPlayer.java:1402)
at com.google.android.exoplayer2.SimpleExoPlayer.prepare(SimpleExoPlayer.java:1427)
at io.lbry.browser.ui.findcontent.FileViewFragment.playMedia(FileViewFragment.java:1729)
at io.lbry.browser.ui.findcontent.FileViewFragment.handleMainActionForClaim(FileViewFragment.java:1951)
at io.lbry.browser.ui.findcontent.FileViewFragment.onMainActionButtonClicked(FileViewFragment.java:1840)
at io.lbry.browser.ui.findcontent.FileViewFragment.renderClaim(FileViewFragment.java:1597)
at io.lbry.browser.ui.findcontent.FileViewFragment.checkParams(FileViewFragment.java:459)
at io.lbry.browser.ui.findcontent.FileViewFragment.onResume(FileViewFragment.java:706)
at androidx.fragment.app.Fragment.performResume(Fragment.java:2747)
at androidx.fragment.app.FragmentStateManager.resume(FragmentStateManager.java:373)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1199)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1356)
at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1434)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1497)
at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:447)
at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2169)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1992)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1947)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1849)
at androidx.fragment.app.FragmentManager$4.run(FragmentManager.java:413)
at android.os.Handler.handleCallback(Handler.java:914)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7551)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
Caused by: android.os.RemoteException: Remote stack trace:
at android.app.ContextImpl.enforce(ContextImpl.java:1907)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1935)
at com.android.server.power.PowerManagerService$BinderService.acquireWakeLock(PowerManagerService.java:4427)
at android.os.IPowerManager$Stub.onTransact(IPowerManager.java:350)
at android.os.Binder.execTransactInternal(Binder.java:1021)

Screenshots

Internal Use

Acceptance Criteria

Definition of Done

  • Tested against acceptance criteria
  • Tested against the assumptions of the user story
  • The project builds without errors
  • Unit tests are written and passing
  • Tests on devices/browsers listed in the issue have passed
  • QA performed & issues resolved
  • Refactoring completed
  • Any configuration or build changes documented
  • Documentation updated
  • Peer Code Review performed
<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. We are also available on live chat at https://chat.lbry.com --> ## The Issue ### Steps to reproduce 1. Tap any video ### Expected behaviour Video is played ### Actual behaviour Application crashes. ## System Configuration - Device: Xiaomi Redmi Note 8 Pro - Android version: Android 10 ## Anything Else Trace > java.lang.SecurityException: Neither user 10399 nor current process has android.permission.WAKE_LOCK. > at android.os.Parcel.createException(Parcel.java:2074) > at android.os.Parcel.readException(Parcel.java:2042) > at android.os.Parcel.readException(Parcel.java:1990) > at android.os.IPowerManager$Stub$Proxy.acquireWakeLock(IPowerManager.java:750) > at android.os.PowerManager$WakeLock.acquireLocked(PowerManager.java:2188) > at android.os.PowerManager$WakeLock.acquire(PowerManager.java:2154) > at com.google.android.exoplayer2.WakeLockManager.updateWakeLock(WakeLockManager.java:96) > at com.google.android.exoplayer2.WakeLockManager.setStayAwake(WakeLockManager.java:83) > at com.google.android.exoplayer2.SimpleExoPlayer.updateWakeAndWifiLock(SimpleExoPlayer.java:2077) > at com.google.android.exoplayer2.SimpleExoPlayer.access$4700(SimpleExoPlayer.java:75) > at com.google.android.exoplayer2.SimpleExoPlayer$ComponentListener.onPlaybackStateChanged(SimpleExoPlayer.java:2407) > at com.google.android.exoplayer2.ExoPlayerImpl$PlaybackInfoUpdate.lambda$run$7$ExoPlayerImpl$PlaybackInfoUpdate(ExoPlayerImpl.java:1447) > at com.google.android.exoplayer2.-$$Lambda$ExoPlayerImpl$PlaybackInfoUpdate$tUn7tXLH0gigHS24TehPEnTXTJ0.invokeListener(Unknown Source:2) > at com.google.android.exoplayer2.BasePlayer$ListenerHolder.invoke(BasePlayer.java:279) > at com.google.android.exoplayer2.ExoPlayerImpl.invokeAll(ExoPlayerImpl.java:1496) > at com.google.android.exoplayer2.ExoPlayerImpl.access$100(ExoPlayerImpl.java:56) > at com.google.android.exoplayer2.ExoPlayerImpl$PlaybackInfoUpdate.run(ExoPlayerImpl.java:1445) > at com.google.android.exoplayer2.ExoPlayerImpl.notifyListeners(ExoPlayerImpl.java:1326) > at com.google.android.exoplayer2.ExoPlayerImpl.updatePlaybackInfo(ExoPlayerImpl.java:954) > at com.google.android.exoplayer2.ExoPlayerImpl.prepare(ExoPlayerImpl.java:320) > at com.google.android.exoplayer2.SimpleExoPlayer.prepare(SimpleExoPlayer.java:1402) > at com.google.android.exoplayer2.SimpleExoPlayer.prepare(SimpleExoPlayer.java:1427) > at io.lbry.browser.ui.findcontent.FileViewFragment.playMedia(FileViewFragment.java:1729) > at io.lbry.browser.ui.findcontent.FileViewFragment.handleMainActionForClaim(FileViewFragment.java:1951) > at io.lbry.browser.ui.findcontent.FileViewFragment.onMainActionButtonClicked(FileViewFragment.java:1840) > at io.lbry.browser.ui.findcontent.FileViewFragment.renderClaim(FileViewFragment.java:1597) > at io.lbry.browser.ui.findcontent.FileViewFragment.checkParams(FileViewFragment.java:459) > at io.lbry.browser.ui.findcontent.FileViewFragment.onResume(FileViewFragment.java:706) > at androidx.fragment.app.Fragment.performResume(Fragment.java:2747) > at androidx.fragment.app.FragmentStateManager.resume(FragmentStateManager.java:373) > at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1199) > at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1356) > at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1434) > at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1497) > at androidx.fragment.app.BackStackRecord.executeOps(BackStackRecord.java:447) > at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:2169) > at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1992) > at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1947) > at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1849) > at androidx.fragment.app.FragmentManager$4.run(FragmentManager.java:413) > at android.os.Handler.handleCallback(Handler.java:914) > at android.os.Handler.dispatchMessage(Handler.java:100) > at android.os.Looper.loop(Looper.java:224) > at android.app.ActivityThread.main(ActivityThread.java:7551) > at java.lang.reflect.Method.invoke(Native Method) > at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995) > Caused by: android.os.RemoteException: Remote stack trace: > at android.app.ContextImpl.enforce(ContextImpl.java:1907) > at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1935) > at com.android.server.power.PowerManagerService$BinderService.acquireWakeLock(PowerManagerService.java:4427) > at android.os.IPowerManager$Stub.onTransact(IPowerManager.java:350) > at android.os.Binder.execTransactInternal(Binder.java:1021) ## Screenshots <!-- If a screenshot would help explain the bug, please include one or two here --> ## Internal Use ### Acceptance Criteria 1. 2. 3. ### Definition of Done - [ ] Tested against acceptance criteria - [ ] Tested against the assumptions of the user story - [ ] The project builds without errors - [ ] Unit tests are written and passing - [ ] Tests on devices/browsers listed in the issue have passed - [ ] QA performed & issues resolved - [ ] Refactoring completed - [ ] Any configuration or build changes documented - [ ] Documentation updated - [ ] Peer Code Review performed
kekkyojin commented 2021-02-02 23:01:48 +01:00 (Migrated from github.com)

This is going to be fixed on 0.16.14a or next release. Unfortunately, 0.16.14 was already built by FDroid servers when this issue was noticed, so the fix is not going to get there.

Sorry for the inconvenience. A fixed release will land in a few days, depending on FDroid build servers.

This is going to be fixed on 0.16.14a or next release. Unfortunately, 0.16.14 was already built by FDroid servers when this issue was noticed, so the fix is not going to get there. Sorry for the inconvenience. A fixed release will land in a few days, depending on FDroid build servers.
llewlem888 commented 2021-02-08 21:17:15 +01:00 (Migrated from github.com)

I've got this problem also. It's infuriating that I can't watch Jeremy's latest vids on his own platform. Pls never again.

I've got this problem also. It's infuriating that I can't watch Jeremy's latest vids on his own platform. Pls never again.
viceverser commented 2021-02-11 05:25:21 +01:00 (Migrated from github.com)

Why don't you have a more current apk available for download direct? Still waiting to try this broken app.

Why don't you have a more current apk available for download direct? Still waiting to try this broken app.
kekkyojin commented 2021-02-11 17:41:31 +01:00 (Migrated from github.com)

FDroid signes every release with a digital signature created for every app. They own the key to sign the release, not LBRY, @viceverser

FDroid signes every release with a digital signature created for every app. They own the key to sign the release, not LBRY, @viceverser
viceverser commented 2021-02-16 13:05:58 +01:00 (Migrated from github.com)

I don't understand... I can direct download other apps as an apk, that get direct push in app updates, why is LBRY such an exception? Surely there is no need for f-droid to play middle man? Especially if they are this incapable of keeping up with the actual project? And if big tech has taught us anything this year, it's that any vendor we use can be targeted to attack any competition of the tech monopolies... How long you think before f-droid is slandered in the media to remove apps that are a threat to the oligopoly? I'm just saying, if there is an option to directly release to your audience, why not give the option?

I don't understand... I can direct download other apps as an apk, that get direct push in app updates, why is LBRY such an exception? Surely there is no need for f-droid to play middle man? Especially if they are this incapable of keeping up with the actual project? And if big tech has taught us anything this year, it's that any vendor we use can be targeted to attack any competition of the tech monopolies... How long you think before f-droid is slandered in the media to remove apps that are a threat to the oligopoly? I'm just saying, if there is an option to directly release to your audience, why not give the option?
kekkyojin commented 2021-02-18 22:33:25 +01:00 (Migrated from github.com)

Fixed on now released 0.16.15 version

Fixed on now released 0.16.15 version
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-fdroid#10
No description provided.