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

Can't fully play any stream #8307

Closed
5 tasks done
emacrack opened this issue Apr 29, 2022 · 13 comments
Closed
5 tasks done

Can't fully play any stream #8307

emacrack opened this issue Apr 29, 2022 · 13 comments
Labels
bug Issue is related to a bug device/software specific Issues that only happen on some devices or with some specific hardware/software waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed.

Comments

@emacrack
Copy link

emacrack commented Apr 29, 2022

Checklist

  • I am able to reproduce the bug with the latest version.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • 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

Every version till date, including 0.23.0 Debug version.

Steps to reproduce the bug

  1. Open app.
  2. Play any video.

Expected behavior

Play video correctly from beginning to end.

Actual behavior

Video playing starts correctly, then after a couple of seconds/minutes it stops and app crashes.

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_UNSPECIFIED] occurred while playing https://www.youtube.com/watch?v=qqAxQ9yVa5A
  • Content Country: US
  • Content Language: es-US
  • App Language: es_US
  • Service: YouTube
  • Version: 0.23.0
  • OS: Linux Android 4.4.2 - 19
Crash log

com.google.android.exoplayer2.ExoPlaybackException: Source error
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:641)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:617)
	at android.os.Handler.dispatchMessage(Handler.java:98)
	at android.os.Looper.loop(Looper.java:136)
	at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: com.google.android.exoplayer2.upstream.Loader$UnexpectedLoaderException: Unexpected OutOfMemoryError: null
	at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:441)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
	at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.OutOfMemoryError
	at com.google.android.exoplayer2.upstream.DefaultAllocator.allocate(DefaultAllocator.java:102)
	at com.google.android.exoplayer2.source.SampleDataQueue.preAppend(SampleDataQueue.java:233)
	at com.google.android.exoplayer2.source.SampleDataQueue.sampleData(SampleDataQueue.java:176)
	at com.google.android.exoplayer2.source.SampleQueue.sampleData(SampleQueue.java:590)
	at com.google.android.exoplayer2.extractor.TrackOutput$-CC.$default$sampleData(TrackOutput.java:157)
	at com.google.android.exoplayer2.source.SampleQueue.sampleData(SampleQueue.java)
	at com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor.readSample(FragmentedMp4Extractor.java:1436)
	at com.google.android.exoplayer2.extractor.mp4.FragmentedMp4Extractor.read(FragmentedMp4Extractor.java:342)
	at com.google.android.exoplayer2.source.BundledExtractorsAdapter.read(BundledExtractorsAdapter.java:127)
	at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1042)
	at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)
	... 3 more


Affected Android/Custom ROM version

Android 4.4.2 Custom ROM

Affected device model

UG802 Android Stick (With 1GB of RAM)

Additional information

I'm experiencing this bug since the first time I found the app a year ago, so, this is the first time I'm reporting it but it happened with every single release till date.

EDIT: In case it's helpful, with 1080p video the error eccurs faster than with 720p.

@emacrack emacrack added the bug Issue is related to a bug label Apr 29, 2022
@Stypox
Copy link
Member

Stypox commented Apr 30, 2022

I don't think we can do anything about this... your device just runs out of memory, try to close some apps in the background or use smaller resolutions

@Stypox Stypox closed this as completed Apr 30, 2022
@opusforlife2 opusforlife2 added the device/software specific Issues that only happen on some devices or with some specific hardware/software label Apr 30, 2022
@emacrack
Copy link
Author

Well, I guess you guys know a lot more than me, it's just that SmartTubeNext works good on the same device and, as far as I know, both apps use ExoPlayer to play the videos. So, you're saying that NewPipe can't run on any device with 1Gb of RAM?? Couldn't it be caused by a memory leak?? Thanks anyway for taking the time to answer!!

@Stypox
Copy link
Member

Stypox commented Apr 30, 2022

Yes, it could well be that there is a memory leak. Could you check if #8170 improves anything by chance?

@emacrack
Copy link
Author

Sorry for the dumb question, I'm pretty new at Github. In order to test that I have to compile your fork with Android Studio, right?? Thanks again for your time and effort!!

@AudricV
Copy link
Member

AudricV commented Apr 30, 2022

No, you don't have to, the CI compiles an APK for you :)

See the Checks tab of the pull request to get an APK (the instruction was removed by Stypox), then click on Artifacts.

If no Artifacts section is shown, click on the CI on pull request job, then scroll down to get the APK. Make sure you are logged in, GitHub doesn't allow guests to download CI artifacts.

@emacrack
Copy link
Author

Thank you so much!! I'll try it now to see how it goes. ;)

@emacrack
Copy link
Author

emacrack commented May 3, 2022

I've

Yes, it could well be that there is a memory leak. Could you check if #8170 improves anything by chance?

Hi! I've tried it and the problem persists... I'm running the app with 496Mb of free RAM memory and all background processes disabled in Android's developer settings, so pretty much nothing else is being executed when I run NewPipe. Shouldn't it be enough for the app to work correctly?? I can't even get 720p videos to finish playing and I even tried disabling Thumbnails, Comments, etc, to save as much memory as possible. Maybe there's something else that's failing and it's not a memory related thing??

@Stypox Stypox reopened this May 3, 2022
@emacrack
Copy link
Author

emacrack commented May 3, 2022

Thanks for opening it up again, hope we can find the solution! Whatever I can do from my side, just let me know! ;)

@litetex
Copy link
Member

litetex commented May 3, 2022

Looks like a duplicate of #8282 to me.

Android 4.4.2 Custom ROM

What OS are you using?

Btw, this will be "fixed" with #7613

@emacrack
Copy link
Author

emacrack commented May 3, 2022

Looks like a duplicate of #8282 to me.

Android 4.4.2 Custom ROM

What OS are you using?

Btw, this will be "fixed" with #7613

My device can't be upgraded to Lollipop, so, not a "fix" for me, just one less bug to fix for you guys if you drop 4.4 support... :'(
I don't know what do you mean by "what OS I'm using", It's a custom KitKat ROM for a Rockchip RK3066 device.

@litetex
Copy link
Member

litetex commented May 4, 2022

custom KitKat ROM

And what is this OS called exactly? (You can usally check it in the about-tab inside the settings)

@SC1040-TS2
Copy link

SC1040-TS2 commented May 22, 2022

And what is this OS called exactly? (You can usally check it in the about-tab inside the settings)

Having done some skimming on what the UG802 Android Stick is, it is apparently a mini PC used specifically with TVs to make them behave closer to a Smart TV, similar to a Chromecast or other device.
https://www.notebookcheck.net/Rockchip-RK3066-ARM-SoC.86864.0.html

This SoC usually only comes with Android 4.0.x Ice Cream Sandwich versions by default. However, a small community exists that revolves around rooting it and installing custom ROMs as part of customizing it for Android Media Center purposes.
https://www.dramasian.com/threads/ug802-the-ultimate-android-media-center-on-a-stick.76640/

One popular use for it is for running instances of XMBC, now known as the Kodi media player. However, it will never use the latest version of Kodi, as it now requires Android 5.0 Lollipop minimum.

For that matter, how did this user acquire NewPipe? Through an APK, F-Droid, or what?

@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 Jun 11, 2022
@github-actions
Copy link

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

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 device/software specific Issues that only happen on some devices or with some specific hardware/software waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed.
Projects
None yet
Development

No branches or pull requests

6 participants