MPMediaItem.dateAdded crashes the app when media type is podcast
Originator: | s.pershenkov | ||
Number: | rdar://29480368 | Date Originated: | |
Status: | Open | Resolved: | |
Product: | iOS 10 | Product Version: | |
Classification: | Crash | Reproducible: | Always |
• Add a podcast to device's media library (download Apple's Podcasts app and download any podcast in it) • Run following code on the device (Media Library access have to be enabled): import MediaPlayer MPMediaQuery.podcasts().items?.forEach { print($0.dateAdded) } This leads to EXC_BREAKPOINT (code=1, subcode=0x100efde98) crash with following output: libswiftFoundation.dylib`static Foundation.Date._unconditionallyBridgeFromObjectiveC (Swift.Optional<__ObjC.NSDate>) -> Foundation.Date: 0x100efde50 <+0>: stp d9, d8, [sp, #-48]! 0x100efde54 <+4>: stp x20, x19, [sp, #16] 0x100efde58 <+8>: stp x29, x30, [sp, #32] 0x100efde5c <+12>: add x29, sp, #32 ; =32 0x100efde60 <+16>: mov x19, x0 0x100efde64 <+20>: cbz x19, 0x100efde98 ; <+72> 0x100efde68 <+24>: nop 0x100efde6c <+28>: ldr x1, #659332 ; "timeIntervalSinceReferenceDate" 0x100efde70 <+32>: mov x0, x19 0x100efde74 <+36>: bl 0x100f7ff7c ; symbol stub for: objc_msgSend 0x100efde78 <+40>: mov.16b v8, v0 0x100efde7c <+44>: mov x0, x19 0x100efde80 <+48>: bl 0x100f7ff94 ; symbol stub for: objc_release 0x100efde84 <+52>: mov.16b v0, v8 0x100efde88 <+56>: ldp x29, x30, [sp, #32] 0x100efde8c <+60>: ldp x20, x19, [sp, #16] 0x100efde90 <+64>: ldp d9, d8, [sp], #48 0x100efde94 <+68>: ret -> 0x100efde98 <+72>: brk #0x1 Sometimes the crash appears on media type music too.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!