Skip to content

Memory allocation fails when playing a 2 hour or longer video on YouTube #12580

@santraj611

Description

@santraj611

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - 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

4.7.2

Steps to reproduce the bug

Steps to reproduce this bug

Play any long video longer then 2 hour on youtube

Expected behavior

It should just play the damn video

Actual behavior

First it heavily lags. Then it crashes.

Screenshots/Screen recordings

No response

Logs

I often get this type of errors in almost most of the previous version.

"user_action":"ui error",
"request":"ACRA report",
"content_language":"en-US",
"content_country":"US",
"app_language":"en_US",
"service":"none",
"package":"InfinityLoop1309.NewPipeEnhanced",
"version":"4.7.2",
"os":"Linux Android 6.0 - 23",
"time":"2025-08-30 08:10",
"exceptions":
java.lang.OutOfMemoryError: Failed to allocate a 28 byte allocation with 2968 free bytes and 2968B until OOM
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.addConditionWaiter(AbstractQueuedSynchronizer.java:1829)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2043)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1090)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1071)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1038)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1098)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
java.lang.Thread.run(Thread.java:818)

Affected Android/Custom ROM version

Android 6

Affected device model

Lenovo K10a40

Additional information

What did I find

I did find an old issue on this matter marked closed. But I can assure you it is still here.

What I think you should know

  • I am using v7 version of the app
  • This bug is not reproducible in v8

Metadata

Metadata

Assignees

No one assigned

    Labels

    template ignoredThe user didn't follow the template/instructions (or removed them)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions