Skip to content

[Bug] #2809

Description

@smartieyoung

Checklist

  • I make sure that the issue is NOT a duplicate of pinned issues
  • I make sure I am using the LATEST version - check here
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
  • I have attached the error report in the issue

Describe the bug

App will crash on switching between downloading audio and playing audio in app .app is able to reopen afterwards but I have to start search over and sometimes restart unfinished downloads from previous screen after crash.

Version

5.25 beta 2

Frequency

Often (80-90% of the time)

Device

pixel ,7a

Steps to reproduce the bug

Open pipe pipe
Open search try opening music track
Set to download said file and flip back
To open audio stream and press play app should freeze crash and reopen.

Additional context

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: US
  • Content Language: en-
  • App Language: en
  • Service: none
  • Endpoint: mweb
  • Version: 5.2.5-beta2
  • OS: Linux Android 17 - 37
Exceptions (2)

Crash log 1

java.lang.OutOfMemoryError: Failed to allocate a 8208 byte allocation with 4301552 free bytes and 4200KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.
	at org.schabi.newpipe.extractor.services.youtube.sabr.SabrStreamingResponseReader.readPayloadBytes(r8-map-id-4dc59598091eb73ffa53d1daeb6adb9d4b45a80ea19e2b2895b9e9df4f7eeb24:8)
	at org.schabi.newpipe.extractor.services.youtube.sabr.SabrStreamingResponseReader.$r8$lambda$K7cX2y0OJjsXZ2KWl08G8rlqfIQ(r8-map-id-4dc59598091eb73ffa53d1daeb6adb9d4b45a80ea19e2b2895b9e9df4f7eeb24:73)
	at org.schabi.newpipe.extractor.services.youtube.sabr.SabrStreamingResponseReader.readUntil(r8-map-id-4dc59598091eb73ffa53d1daeb6adb9d4b45a80ea19e2b2895b9e9df4f7eeb24:109)
	at org.schabi.newpipe.extractor.services.youtube.sabr.SabrProto.postMediaRequest(r8-map-id-4dc59598091eb73ffa53d1daeb6adb9d4b45a80ea19e2b2895b9e9df4f7eeb24:377)
	at org.schabi.newpipe.extractor.services.youtube.sabr.YoutubeSabrSession.fetchNextResponseUntil(r8-map-id-4dc59598091eb73ffa53d1daeb6adb9d4b45a80ea19e2b2895b9e9df4f7eeb24:321)
	at org.schabi.newpipe.extractor.services.youtube.sabr.YoutubeSabrSession.pumpOnceInternal(r8-map-id-4dc59598091eb73ffa53d1daeb6adb9d4b45a80ea19e2b2895b9e9df4f7eeb24:27)
	at us.shandian.giga.get.SabrDownloader.downloadSegments(r8-map-id-4dc59598091eb73ffa53d1daeb6adb9d4b45a80ea19e2b2895b9e9df4f7eeb24:143)
	at us.shandian.giga.get.SabrDownloader.runSessionAttempt(r8-map-id-4dc59598091eb73ffa53d1daeb6adb9d4b45a80ea19e2b2895b9e9df4f7eeb24:576)
	at us.shandian.giga.get.SabrDownloader.run(r8-map-id-4dc59598091eb73ffa53d1daeb6adb9d4b45a80ea19e2b2895b9e9df4f7eeb24:200)
	at java.lang.Thread.run(Thread.java:1572)

Crash log 2

Last SABR diagnostics
event=progress
timeMs=1785821048276
videoId=Ka7IngmKsbo
playerTimeMs=155473
readerHeadMs=180001
readerTailMs=176000
videoItag=247
videoHeight=720
videoBitrate=1325097
audioItag=251
audioBitrate=208156
heapUsedBytes=519153200
heapFreeBytes=17717712
heapTotalBytes=536870912
heapMaxBytes=536870912
pssKb=799895
sabr=requestNumber=24, cachedBytes=4235361, peakCachedBytes=15732974, totalResponseBytes=18951919, maxResponseBytes=3239499, maxUmpPartBytes=262145, maxMediaPartPayloadBytes=262144, maxSegmentBytes=875266, maxSegmentsPerResponse=8
    


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions