Bug 222691

Summary: REGRESSION (r273732): ASSERTION FAILED: Completion handler should always be called under WebKit::RemoteRealtimeMediaSourceProxy::~RemoteRealtimeMediaSourceProxy
Product: WebKit Reporter: Truitt Savell <tsavell>
Component: New BugsAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=221126
Attachments:
Description Flags
crash log
none
Patch none

Description Truitt Savell 2021-03-03 14:48:12 PST
fast/mediastream/mediastreamtrack-video-frameRate-decreasing.html

History:
https://results.webkit.org/?suite=layout-tests&test=fast%2Fmediastream%2Fmediastreamtrack-video-frameRate-decreasing.html

Crash:
0   com.apple.JavaScriptCore      	0x000000027cb2058e WTFCrash + 14 (Assertions.cpp:295)
1   com.apple.WebKit              	0x0000000249f6a6f7 WTF::CompletionHandler<void (WTF::Optional<WebCore::RealtimeMediaSource::ApplyConstraintsError>&&)>::~CompletionHandler() + 87 (CompletionHandler.h:58)
2   com.apple.WebKit              	0x0000000249f542d5 WTF::CompletionHandler<void (WTF::Optional<WebCore::RealtimeMediaSource::ApplyConstraintsError>&&)>::~CompletionHandler() + 21 (CompletionHandler.h:57)
3   com.apple.WebKit              	0x0000000249f6111f WTF::VectorDestructor<true, WTF::CompletionHandler<void (WTF::Optional<WebCore::RealtimeMediaSource::ApplyConstraintsError>&&)> >::destruct(WTF::CompletionHandler<void (WTF::Optional<WebCore::RealtimeMediaSource::ApplyConstraintsError>&&)>*, WTF::CompletionHandler<void (WTF::Optional<WebCore::RealtimeMediaSource::ApplyConstraintsError>&&)>*) + 47 (Vector.h:67)
Comment 1 Truitt Savell 2021-03-03 15:19:51 PST
I am unable to reproduce this locally.

this test started crashing around r273732 which seems related.
Comment 2 Radar WebKit Bug Importer 2021-03-03 15:20:10 PST
<rdar://problem/75006211>
Comment 3 Ryan Haddad 2021-03-03 20:48:11 PST
ASSERTION FAILED: Completion handler should always be called
!m_function
/Volumes/Data/worker/ios-simulator-14-debug/build/WebKitBuild/Debug-iphonesimulator/usr/local/include/wtf/CompletionHandler.h(58) : WTF::CompletionHandler<void (WTF::Optional<WebCore::RealtimeMediaSource::ApplyConstraintsError> &&)>::~CompletionHandler()
Comment 4 Ryan Haddad 2021-03-03 23:15:33 PST
Created attachment 422184 [details]
crash log
Comment 5 Ryan Haddad 2021-03-03 23:15:48 PST
Looks like we're seeing this assert with various media stream tests:
fast/mediastream/audio-bad-sampleRate.html
fast/mediastream/resize-trim.html
fast/mediastream/play-newly-added-audio-track.html
fast/mediastream/audio-settings-reset.html
Comment 6 Ryan Haddad 2021-03-03 23:16:04 PST
*** Bug 222690 has been marked as a duplicate of this bug. ***
Comment 7 youenn fablet 2021-03-04 02:38:00 PST
Created attachment 422209 [details]
Patch
Comment 8 EWS 2021-03-04 09:49:01 PST
Committed r273892: <https://commits.webkit.org/r273892>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 422209 [details].