Bug 212646

Summary: Crash with uncaught exception: *** -[AVSampleBufferAudioRenderer enqueueSampleBuffer:] Sample buffer has media type 'vide' instead of 'soun'
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: New BugsAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, peng.liu6, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
eric.carlson: review+
Patch for landing none

Description Jer Noble 2020-06-02 10:50:02 PDT
Crash with uncaught exception: *** -[AVSampleBufferAudioRenderer enqueueSampleBuffer:] Sample buffer has media type 'vide' instead of 'soun'
Comment 1 Jer Noble 2020-06-02 10:52:15 PDT
<rdar://problem/63040834>
Comment 2 Jer Noble 2020-06-02 10:57:17 PDT
Created attachment 400839 [details]
Patch
Comment 3 Eric Carlson 2020-06-02 10:59:50 PDT
Comment on attachment 400839 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=400839&action=review

> Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:1140
> +        // AVSampleBufferDisplayLayer will throw an un-documented exception is passed a sample

s/is/if/

> Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:1206
> +        // AVSampleBufferAudioRenderer will throw an un-documented exception is passed a sample

Ditto
Comment 4 Jer Noble 2020-06-02 11:04:20 PDT
Created attachment 400841 [details]
Patch for landing
Comment 5 Peng Liu 2020-06-02 11:07:35 PDT
Comment on attachment 400839 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=400839&action=review

> Source/WebCore/ChangeLog:9
> +        Protect against the possibility of AVStreamDataParser generating non-video or -audio saples in an otherwise

s/saples/samples?
Comment 6 Jer Noble 2020-06-03 12:25:56 PDT
Committed r262506: <https://trac.webkit.org/changeset/262506>