Skip to content

Crash when playing downloaded 1080p Premium and default quality set #782

Description

@employee-brokers-bailed

Describe the bug

If you use YouTube Premium's download feature to download a video with 1080p Premium at 1080p, it downloads the 1080p Premium version (based on Stats for Nerds when playing the downloaded video). If you have either of the default quality settings set to anything other than "default", playing one of these downloaded videos causes a crash. Setting both Wi-Fi and cellular to "default" prevents the crash. ytp_5.2.1+21.16.2.ipa.

I can get a full crashlog but here is the one from LiveContainer which I'm assuming is enough and this is a fairly clear bug from missing a string or something. I can also give you more context on what some of the Obj-C methods give if you don't have YouTube Premium if it's not though.

*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]
Call stack: (
	0   CoreFoundation                      0x000000019826c970 2F32D384-4637-3018-843E-4FC875B865C4 + 809328
	1   YouTube                             0x000000011a583e04 YouTube + 39828996
	2   YouTube                             0x000000011a5833e4 YouTube + 39826404
	3   libobjc.A.dylib                     0x0000000195149814 objc_exception_throw + 88
	4   CoreFoundation                      0x0000000198284b54 2F32D384-4637-3018-843E-4FC875B865C4 + 908116
	5   CoreFoundation                      0x00000001982ecb24 2F32D384-4637-3018-843E-4FC875B865C4 + 1334052
	6   YTLite.dylib                        0x000000010db5aaa0 innertubeName + 631244
	7   Foundation                          0x0000000195923924 __NSFireDelayedPerform + 372
	8   CoreFoundation                      0x00000001981f4c00 2F32D384-4637-3018-843E-4FC875B865C4 + 318464
	9   CoreFoundation                      0x00000001981f48c0 2F32D384-4637-3018-843E-4FC875B865C4 + 317632
	10  CoreFoundation                      0x00000001981f4434 2F32D384-4637-3018-843E-4FC875B865C4 + 316468
	11  CoreFoundation                      0x00000001981c4abc 2F32D384-4637-3018-843E-4FC875B865C4 + 121532
	12  CoreFoundation                      0x00000001981c3a6c 2F32D384-4637-3018-843E-4FC875B865C4 + 117356
	13  GraphicsServices                    0x000000023cb61498 GSEventRunModal + 120
	14  UIKitCore                           0x000000019dc73df8 C768F963-A0CC-3F5C-A1D3-2E06D53A2381 + 646648
	15  UIKitCore                           0x000000019dc1ce54 UIApplicationMain + 336
	16  YouTube                             0x00000001185f973c YouTube + 6756156
	17  LiveContainerShared                 0x00000001048aa050 LiveContainerMain + 8420
	18  dyld                                0x000000019519ee28 8ACDB580-8AB7-38C0-A586-E667ADB1C11C + 20008
)

Steps to reproduce

  1. Have YouTube Premium
  2. Go to Settings > Player > Playback quality on * and set either to anything other than default
  3. Download a video with 1080p Premium at 1080p (can confirm with Stats for Nerds if you didn't get a crash)
  4. Play the downloaded video
  5. Notice YouTube crashes
  6. Set both playback quality settings to default
  7. Play the downloaded video
  8. Notice no crash

Crashlog

No response

Post Requisites

  • I have checked that a similar issue has not been reported before.
  • Verified the relevance of the project and the version you are using.
  • Provided a detailed description of the problem and have filled in all required fields.
  • I did not answer truthfully to ALL the above checkboxes.
  • By submitting this issue, I confirm that I have filled in all the necessary fields and complied with the guidelines. Failure to comply may result in the issue being closed without discussion, and repeated violations may lead to restrict account from further participation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions