Bug 222185

Summary: media/media-extension-with-fragment.html is crashing on EWS
Product: WebKit Reporter: Robert Jenner <jenner>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: eric.carlson, jer.noble, peng.liu6, tsavell, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=221930
https://bugs.webkit.org/show_bug.cgi?id=222277
Attachments:
Description Flags
Patch none

Description Robert Jenner 2021-02-19 11:46:08 PST
media/media-extension-with-fragment.html

is crashing on EWS, and is slowing EWS down. 

HISTORY URL:
https://results.webkit.org/?suite=layout-tests&test=media%2Fmedia-extension-with-fragment.html

History shows that the crashes do not appear to be occurring in production, only on EWS.
Comment 1 Radar WebKit Bug Importer 2021-02-19 11:46:36 PST
<rdar://problem/74531258>
Comment 2 Robert Jenner 2021-02-19 11:48:12 PST
CRASH LOG URL:
https://ews-build.s3-us-west-2.amazonaws.com/Commit-Queue/r420923-9131-rerun/media/media-extension-with-fragment-crash-log.txt


CRASH LOG TEXT:
No crash log found for GPUProcess:36731.

stdout:

stderr:
2021-02-19 11:08:35.078 com.apple.WebKit.GPU.Development[36731:301976] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSSingleObjectArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff39a12727 __exceptionPreprocess + 250
	1   libobjc.A.dylib                     0x00007fff72918a9e objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff3993e276 -[__NSSingleObjectArrayI objectAtIndex:] + 112
	3   Photos                              0x00007fff448b92ba +[AVAssetCollection(Utilities) fragmentParamsFromURL:] + 222
	4   Photos                              0x00007fff448b9129 +[AVAssetCollection(Utilities) isURLForAssetInCollection:] + 102
	5   AVFoundation                        0x00007fff35148573 -[AVURLAsset initWithURL:options:] + 608
	6   WebCore                             0x0000000102ae32f4 _ZN7WebCore34MediaPlayerPrivateAVFoundationObjC19createAVAssetForURLERKN3WTF3URLENS1_9RetainPtrI19NSMutableDictionaryEE + 2740
	7   WebCore                             0x0000000102ae27f7 _ZN7WebCore34MediaPlayerPrivateAVFoundationObjC19createAVAssetForURLERKN3WTF3URLE + 87
	8   WebCore                             0x0000000102ad6df4 _ZN7WebCore30MediaPlayerPrivateAVFoundation10setPreloadENS_16MediaPlayerEnums7PreloadE + 212
	9   WebCore                             0x0000000102ad5559 _ZN7WebCore30MediaPlayerPrivateAVFoundation4loadERKN3WTF6StringE + 457
	10  WebCore                             0x000000010417a143 _ZN7WebCore11MediaPlayer23loadWithNextMediaEngineEPKNS_18MediaPlayerFactoryE + 691
	11  WebCore                             0x0000000104179d9e _ZN7WebCore11MediaPlayer4loadERKN3WTF3URLERKNS_11ContentTypeERKNS1_6StringE + 1246
	12  WebKit                              0x000000010093e237 _ZN6WebKit22RemoteMediaPlayerProxy4loadEON3WTF3URLEONS1_8OptionalINS_16SandboxExtension6HandleEEERKN7WebCore11ContentTypeERKNS1_6StringEONS1_17CompletionHandlerIFvONS_30RemoteMediaPlayerConfigurationEEEE + 185
	13  WebKit                              0x00000001008c4fa2 _ZN3IPC22callMemberFunctionImplIN6WebKit22RemoteMediaPlayerProxyEMS2_FvON3WTF3URLEONS3_8OptionalINS1_16SandboxExtension6HandleEEERKN7WebCore11ContentTypeERKNS3_6StringEONS3_17CompletionHandlerIFvONS1_30RemoteMediaPlayerConfigurationEEEEEFvRKSJ_ENSt3__15tupleIJS4_S9_SC_SF_EEEJLm0ELm1ELm2ELm3EEEEvPT_T0_ONSI_IT1_EEOT2_NST_16integer_sequenceImJXspT3_EEEE + 110
	14  WebKit                              0x00000001008c3cc3 _ZN3IPC18handleMessageAsyncIN8Messages22RemoteMediaPlayerProxy4LoadEN6WebKit22RemoteMediaPlayerProxyEMS5_FvON3WTF3URLEONS6_8OptionalINS4_16SandboxExtension6HandleEEERKN7WebCore11ContentTypeERKNS6_6StringEONS6_17CompletionHandlerIFvONS4_30RemoteMediaPlayerConfigurationEEEEEEEvRNS_10ConnectionERNS_7DecoderEPT0_T1_ + 196
	15  WebKit                              0x000000010093dacc _ZN6WebKit29RemoteMediaPlayerManagerProxy23didReceivePlayerMessageERN3IPC10ConnectionERNS1_7DecoderE + 56
	16  WebKit                              0x0000000100923801 _ZN6WebKit25GPUConnectionToWebProcess15dispatchMessageERN3IPC10ConnectionERNS1_7DecoderE + 121
	17  WebKit                              0x00000001008e8e40 _ZN6WebKit25GPUConnectionToWebProcess17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 346
	18  WebKit                              0x00000001008133a7 _ZN3IPC10Connection15dispatchMessageENSt3__110unique_ptrINS_7DecoderENS1_14default_deleteIS3_EEEE + 221
	19  WebKit                              0x00000001008135e7 _ZN3IPC10Connection26dispatchOneIncomingMessageEv + 169
	20  JavaScriptCore                      0x00000001085e03a1 _ZN3WTF7RunLoop11performWorkEv + 497
	21  JavaScriptCore                      0x00000001085e0c32 _ZN3WTF7RunLoop11performWorkEPv + 34
	22  CoreFoundation                      0x00007fff39996884 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
	23  CoreFoundation                      0x00007fff39996823 __CFRunLoopDoSource0 + 103
	24  CoreFoundation                      0x00007fff3999663d __CFRunLoopDoSources0 + 209
	25  CoreFoundation                      0x00007fff39995359 __CFRunLoopRun + 937
	26  CoreFoundation                      0x00007fff39994953 CFRunLoopRunSpecific + 466
	27  Foundation                          0x00007fff3c0521c8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
	28  Foundation                          0x00007fff3c104c6f -[NSRunLoop(NSRunLoop) run] + 76
	29  libxpc.dylib                        0x00007fff73d0a4ea _xpc_objc_main.cold.4 + 49
	30  libxpc.dylib                        0x00007fff73d0a430 _xpc_objc_main + 559
	31  libxpc.dylib                        0x00007fff73d09f63 _xpc_copy_xpcservice_dictionary + 0
	32  WebKit                              0x00000001009bcbbc _ZN6WebKit14XPCServiceMainEiPPKc + 261
	33  libdyld.dylib                       0x00007fff73ab8cc9 start + 1
	34  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Comment 3 Robert Jenner 2021-02-19 12:07:11 PST
Created attachment 421006 [details]
Patch
Comment 4 Ryan Haddad 2021-02-19 12:48:26 PST
This appears to be the same crash seen with a different test in https://bugs.webkit.org/show_bug.cgi?id=221930
Comment 5 Truitt Savell 2021-02-19 13:04:19 PST
Comment on attachment 421006 [details]
Patch

Clearing flags on attachment: 421006

Committed r273161 (234356@main): <https://commits.webkit.org/234356@main>
Comment 6 Robert Jenner 2021-02-23 10:56:17 PST

*** This bug has been marked as a duplicate of bug 222277 ***