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 crashed after playing in audio-only mode #10749

Open
6 tasks done
MDP43140 opened this issue Jan 10, 2024 · 2 comments
Open
6 tasks done

App crashed after playing in audio-only mode #10749

MDP43140 opened this issue Jan 10, 2024 · 2 comments
Labels
bug Issue is related to a bug player Issues related to any player (main, popup and background) queue Issue is related to queueing

Comments

@MDP43140
Copy link
Contributor

MDP43140 commented Jan 10, 2024

Checklist

  • I am able to reproduce the bug with the latest version.
  • I made sure that there are no existing issues - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.26.1

Steps to reproduce the bug

  1. Open a channel
  2. Play a video in audio mode
  3. Add another video to current queue
  4. Go back.

Expected behavior

It shouldn't crash... (what else do you expect?)

Actual behavior

It crashed

Screen recording

npbug.mp4

Logs

  • User Action: ui error
  • Request: ACRA report
  • Content Country: ID
  • Content Language: in- (also anyone can explain why now NewPipe puts - at the last text?)
  • App Language: in
  • Service: none
  • Version: 0.26.1
  • OS: Linux samsung/a6ltedx/a6lte:10/QP1A.190711.020/A600GDXU9CUB1:user/release-keys 10 - 29
Crash log

java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
	at android.widget.Toast.makeText(Toast.java:662)
	at org.schabi.newpipe.util.NavigationHelper.enqueueOnPlayer(NavigationHelper.java:187)
	at org.schabi.newpipe.util.NavigationHelper.enqueueOnPlayer(NavigationHelper.java:201)
	at org.schabi.newpipe.info_list.dialog.StreamDialogDefaultEntry.lambda$static$2(StreamDialogDefaultEntry.java:54)
	at org.schabi.newpipe.info_list.dialog.StreamDialogDefaultEntry.$r8$lambda$HrNW3ftQD3NQNetYZjrz1JDwzD4(StreamDialogDefaultEntry.java:0)
	at org.schabi.newpipe.info_list.dialog.StreamDialogDefaultEntry$$ExternalSyntheticLambda15.accept(R8$$SyntheticClass:0)
	at org.schabi.newpipe.util.SparseItemUtil.lambda$fetchItemInfoIfSparse$0(SparseItemUtil.java:60)
	at org.schabi.newpipe.util.SparseItemUtil.$r8$lambda$rd2kSpgtBScfiwrztd_5JrCbEyQ(SparseItemUtil.java:0)
	at org.schabi.newpipe.util.SparseItemUtil$$ExternalSyntheticLambda2.accept(R8$$SyntheticClass:0)
	at org.schabi.newpipe.util.SparseItemUtil.lambda$fetchStreamInfoAndSaveToDatabase$4(SparseItemUtil.java:121)
	at org.schabi.newpipe.util.SparseItemUtil.$r8$lambda$cfmnXoy0qdCzt8EeO-smvalxWsM(SparseItemUtil.java:0)
	at org.schabi.newpipe.util.SparseItemUtil$$ExternalSyntheticLambda0.accept(R8$$SyntheticClass:0)
	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:883)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loop(Looper.java:237)
	at android.app.ActivityThread.main(ActivityThread.java:8167)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)


Affected Android/Custom ROM version

Android 10, OneUi 2.0

Affected device model

Samsung (see log)

Additional information

None

@MDP43140 MDP43140 added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Jan 10, 2024
@MDP43140 MDP43140 changed the title App crashed after playing audio-only App crashed after playing in audio-only mode Jan 10, 2024
@opusforlife2
Copy link
Collaborator

I noticed you are first tapping the video thumbnail and then the background button. You only need to do the 2nd action, not the first. Can you try reproducing it this way?

@opusforlife2 opusforlife2 added the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Jan 12, 2024
@MDP43140
Copy link
Contributor Author

I tried that too (tap and holding the video, popup menu shows up, press "Play in background"), the same happens

@github-actions github-actions bot removed the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Jan 13, 2024
@opusforlife2 opusforlife2 added player Issues related to any player (main, popup and background) queue Issue is related to queueing and removed needs triage Issue is not yet ready for PR authors to take up labels Jan 13, 2024
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 Issues related to any player (main, popup and background) queue Issue is related to queueing
Projects
None yet
Development

No branches or pull requests

2 participants