TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.62k stars 3.07k forks source link

Startup errors opening videos #6976

Closed heberjeur closed 1 year ago

heberjeur commented 3 years ago

Checklist

Steps to reproduce the bug

  1. Go to search icon , trending menu,what's new, history menu,
  2. Press on any video and don't wait thumbnails of videos
  3. The crash appears

Actual behavior

The app crash 10-15 per day, it is really painful to wait 5-7 sec every time when I opened NewPipe !

Expected behavior

The normal situation that I can use the NewPipe from the first 0 seconds of opening the app

Screenshots/Screen recordings

Logs

Exception

io.reactivex.rxjava3.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | java.lang.NullPointerException: Attempt to read from field 'androidx.recyclerview.widget.RecyclerView org.schabi.newpipe.databinding.FragmentSearchBinding.suggestionsList' on a null object reference
    at io.reactivex.rxjava3.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:717)
    at io.reactivex.rxjava3.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:714)
    at io.reactivex.rxjava3.internal.observers.LambdaObserver.onError(LambdaObserver.java:77)
    at io.reactivex.rxjava3.internal.observers.LambdaObserver.onNext(LambdaObserver.java:67)
    at io.reactivex.rxjava3.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.java:201)
    at io.reactivex.rxjava3.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:255)
    at io.reactivex.rxjava3.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:123)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:246)
    at android.app.ActivityThread.main(ActivityThread.java:8512)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by: java.lang.NullPointerException: Attempt to read from field 'androidx.recyclerview.widget.RecyclerView org.schabi.newpipe.databinding.FragmentSearchBinding.suggestionsList' on a null object reference
    at org.schabi.newpipe.fragments.list.search.SearchFragment.handleSuggestions(SearchFragment.java:971)
    at org.schabi.newpipe.fragments.list.search.SearchFragment.lambda$initSuggestionObserver$15(SearchFragment.java:817)
    at org.schabi.newpipe.fragments.list.search.SearchFragment.lambda$initSuggestionObserver$15$SearchFragment(Unknown Source:0)
    at org.schabi.newpipe.fragments.list.search.-$$Lambda$SearchFragment$q2wTJo-kDxgd91qkgYweNQgQ484.accept(Unknown Source:4)
    at io.reactivex.rxjava3.internal.observers.LambdaObserver.onNext(LambdaObserver.java:63)
    ... 10 more


Device info

heberjeur commented 3 years ago

Any response ?!

heberjeur commented 3 years ago

@litetex you see like this bug or not ?

litetex commented 3 years ago

No I don't have that error otherwise I would have reported/up-voted it😉

I can't see an obvious error in the code according to the bug report, so I guess we need more information here.

Does e.g. dis/enabling suggestions fix the problem or any other option that may be related to the problem? Does it also fail when you reset the app (clearing all app-data)? - Keep in mind that you may want to export your setting first 😉

Also please fill out the checklist completely (fixed the broken format for you so far) :)

triallax commented 3 years ago

Is this still present in the latest version (0.21.12)?

heberjeur commented 3 years ago

Yes, 0.21.13

heberjeur commented 3 years ago

Exception

java.lang.NullPointerException: Attempt to invoke virtual method 'android.widget.RelativeLayout org.schabi.newpipe.databinding.PlaylistHeaderBinding.getRoot()' on a null object reference
    at org.schabi.newpipe.fragments.list.playlist.PlaylistFragment.handleResult(PlaylistFragment.java:295)
    at org.schabi.newpipe.fragments.list.playlist.PlaylistFragment.handleResult(PlaylistFragment.java:67)
    at org.schabi.newpipe.fragments.list.BaseListInfoFragment.lambda$startLoading$0(BaseListInfoFragment.java:146)
    at org.schabi.newpipe.fragments.list.BaseListInfoFragment.$r8$lambda$Gn1fP3-8OJnktT5gkmUmbW-egTg(Unknown Source:0)
    at org.schabi.newpipe.fragments.list.BaseListInfoFragment$$ExternalSyntheticLambda4.accept(Unknown Source:4)
    at io.reactivex.rxjava3.internal.observers.ConsumerSingleObserver.onSuccess(ConsumerSingleObserver.java:62)
    at io.reactivex.rxjava3.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run(SingleObserveOn.java:81)
    at io.reactivex.rxjava3.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:123)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:246)
    at android.app.ActivityThread.main(ActivityThread.java:8512)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)


heberjeur commented 3 years ago

https://user-images.githubusercontent.com/11852634/138534132-cffb9ce8-7842-4108-a5c0-461fb60c253a.mp4

heberjeur commented 3 years ago

https://user-images.githubusercontent.com/11852634/138534754-8a612ff9-a46b-4567-b2f9-43b2b6123dff.mp4

litetex commented 3 years ago

@heberjeur It looks like you have animations turned off. Is the problem present when they are on?

heberjeur commented 3 years ago

Yes it's the same

Exception

java.lang.NullPointerException: Attempt to invoke virtual method 'android.widget.RelativeLayout org.schabi.newpipe.databinding.PlaylistHeaderBinding.getRoot()' on a null object reference
    at org.schabi.newpipe.fragments.list.playlist.PlaylistFragment.handleResult(PlaylistFragment.java:295)
    at org.schabi.newpipe.fragments.list.playlist.PlaylistFragment.handleResult(PlaylistFragment.java:67)
    at org.schabi.newpipe.fragments.list.BaseListInfoFragment.lambda$startLoading$0(BaseListInfoFragment.java:146)
    at org.schabi.newpipe.fragments.list.BaseListInfoFragment.$r8$lambda$Gn1fP3-8OJnktT5gkmUmbW-egTg(Unknown Source:0)
    at org.schabi.newpipe.fragments.list.BaseListInfoFragment$$ExternalSyntheticLambda4.accept(Unknown Source:4)
    at io.reactivex.rxjava3.internal.observers.ConsumerSingleObserver.onSuccess(ConsumerSingleObserver.java:62)
    at io.reactivex.rxjava3.internal.operators.single.SingleObserveOn$ObserveOnSingleObserver.run(SingleObserveOn.java:81)
    at io.reactivex.rxjava3.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:123)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:246)
    at android.app.ActivityThread.main(ActivityThread.java:8512)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)


heberjeur commented 3 years ago

https://user-images.githubusercontent.com/11852634/138574300-72bd2670-2282-405c-817c-1033fb905a25.mp4

SameenAhnaf commented 1 year ago

#6231