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

App crashes when playing back any content #4644

Closed
surrodox2001 opened this issue Oct 25, 2020 · 15 comments · Fixed by #4768
Closed

App crashes when playing back any content #4644

surrodox2001 opened this issue Oct 25, 2020 · 15 comments · Fixed by #4768
Labels
bug Issue is related to a bug player notification Anything to do with the MediaStyle notification

Comments

@surrodox2001
Copy link

Version:

0.20.0 and 0.20.1

Behavior:

  1. open & play any content in any mode (fullscreen, popup or background) (doesn't matter its music or video)
  2. program crashes instead of playing back content properly

NOTE: This issue doesn't happen when 'show notifications' is turned off in Android app setting

Logs:

Exception

  • User Action: ui error
  • Request: App crash, UI failure
  • Content Country: MY
  • Content Language: en
  • App Language: en_US
  • Service: none
  • Version: 0.20.1
  • OS: Linux Android 5.1 - 22
Crash log

android.app.RemoteServiceException: Bad notification posted from package org.schabi.newpipe: Couldn't expand RemoteViews for: StatusBarNotification(pkg=org.schabi.newpipe user=UserHandle{0} id=123789 tag=null score=10 key=0|org.schabi.newpipe|123789|null|10111: Notification(pri=1 contentView=org.schabi.newpipe/0x109007e vibrate=null sound=null defaults=0x0 flags=0x62 color=0xff616161 category=transport actions=5 vis=PUBLIC))
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1644)
        at android.os.Handler.dispatchMessage(Handler.java:111)
        at android.os.Looper.loop(Looper.java:194)
        at android.app.ActivityThread.main(ActivityThread.java:5660)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:963)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)
        at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:107)


@surrodox2001 surrodox2001 added the bug Issue is related to a bug label Oct 25, 2020
@UserX404
Copy link
Contributor

UserX404 commented Oct 26, 2020

Maybe the same problem.
After starting a video or background player my phone often stucks in a phone-locked loop, where i'm not able to enter my lock pin within time and it is not possible to kill NewPipe. The only two possibilities are to wait for the track has finished or to restart the phone.

Sadly 0.19.8 aren't able to encypt links anymore but until that was it was working without issues.
Sony Xperia XZ2c
Android 10

@opusforlife2 opusforlife2 added the player notification Anything to do with the MediaStyle notification label Oct 26, 2020
@Stypox
Copy link
Member

Stypox commented Oct 30, 2020

Is this consistent, i.e. always reproducible? This might contain an explanation: https://stackoverflow.com/questions/25317659/how-to-fix-android-app-remoteserviceexception-bad-notification-posted-from-pac#26024747

@Dakkaron

This comment has been minimized.

@opusforlife2
Copy link
Collaborator

@Dakkaron Update.

@Dakkaron
Copy link
Contributor

Dakkaron commented Nov 2, 2020

@Dakkaron Update.

I've checked F-Droid daily since that bug first occured, but so far there is no new version...

@opusforlife2
Copy link
Collaborator

You'll have to wait. Or you can use our custom repo linked on the website.

@ShareASmile
Copy link
Collaborator

ShareASmile commented Nov 2, 2020

@Dakkaron You can also add NewPipe F-Droid repository to your fdroid client(I use Foxy Droid) to receive updates even faster. Just add the following link to repositories in fdroid client. UPDATED Version will be shown.
https://archive.newpipe.net/fdroid/repo/
Take Help from
https://newpipe.schabi.org/FAQ/tutorials/install-add-fdroid-repo/
If face problem adding repo to Fdroid official Client then Check
https://www.reddit.com/r/NewPipe/comments/jkab9w/problems_with_adding_newpipe_repo/

@inducer
Copy link

inducer commented Nov 4, 2020

https://archive.newpipe.net/fdroid/repo/

Thanks for the tip! Though that repo doesn't seem to be responding to HTTP requests for me. Any tips?

@opusforlife2
Copy link
Collaborator

@inducer The website server is down right now, including the repo.

@LeirbagGab

This comment has been minimized.

@opusforlife2
Copy link
Collaborator

@LeirbagGab Update.

@LeirbagGab
Copy link

@opusforlife2 any link to the latest apk? I only see my version on the website...

@opusforlife2
Copy link
Collaborator

Which website? Latest APK can be found on the Github Releases page, or from our custom F-Droid repo. Read https://github.com/TeamNewPipe/NewPipe#updates

@LeirbagGab
Copy link

Thx @opusforlife2

@Stypox
Copy link
Member

Stypox commented Nov 9, 2020

Apparently this seems to be caused by a bug in the NotificationCompat implementation, as it can't originate from NewPipe's code (according to SO this exception is thrown when some forbidden views are used inside the notification, but we have no control over those, only the library has) unless we messed up something really badly (and in that case it should happen on any phone). Maybe it was fixed by the dependency update PR, #4768, could you test it @surrodox2001 ? I'm linking it for now, as to not forget, it can always be de-linked

@Stypox Stypox linked a pull request Nov 9, 2020 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug player notification Anything to do with the MediaStyle notification
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants