Bug 219622

Summary: [Media in GPU Process][MSE] The GPU Process may crash in the destructor of MediaPlayerPrivateMediaSourceAVFObjC
Product: WebKit Reporter: Peng Liu <peng.liu6>
Component: MediaAssignee: Peng Liu <peng.liu6>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
eric.carlson: review+, ews-feeder: commit-queue-
Fix GTK/WPE build failures
ews-feeder: commit-queue-
Fix a build failure on the wincairo port none

Peng Liu
Reported 2020-12-07 17:47:17 PST
[Media in GPU Process][MSE] The GPU Process may crash in the destructor of MediaPlayerPrivateMediaSourceAVFObjC
Attachments
Patch (1.72 KB, patch)
2020-12-07 17:52 PST, Peng Liu
no flags
Patch (7.46 KB, patch)
2020-12-08 09:50 PST, Peng Liu
eric.carlson: review+
ews-feeder: commit-queue-
Fix GTK/WPE build failures (8.26 KB, patch)
2020-12-08 10:19 PST, Peng Liu
ews-feeder: commit-queue-
Fix a build failure on the wincairo port (9.12 KB, patch)
2020-12-08 11:44 PST, Peng Liu
no flags
Peng Liu
Comment 1 2020-12-07 17:52:30 PST
youenn fablet
Comment 2 2020-12-08 04:29:51 PST
Comment on attachment 415604 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=415604&action=review > Source/WebKit/GPUProcess/media/cocoa/RemoteMediaPlayerProxyCocoa.mm:-60 > - m_inlineLayerHostingContext->setRootLayer(m_player->platformLayer()); It is not clear why removing this line is fine. Is it redundant? If so, can you add this info in change log?
Peng Liu
Comment 3 2020-12-08 08:46:29 PST
Comment on attachment 415604 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=415604&action=review >> Source/WebKit/GPUProcess/media/cocoa/RemoteMediaPlayerProxyCocoa.mm:-60 >> - m_inlineLayerHostingContext->setRootLayer(m_player->platformLayer()); > > It is not clear why removing this line is fine. > Is it redundant? If so, can you add this info in change log? The purpose of this callback is to notify the DOM that the player's rendering mode is changed, including the case that the layer is destroyed. So I think it was a bug to operate on the layer. I just realized that we need to forward the callback to the Web process (HTMLMediaElement). I will upload a new patch.
Peng Liu
Comment 4 2020-12-08 09:50:39 PST
Peng Liu
Comment 5 2020-12-08 10:19:41 PST
Created attachment 415653 [details] Fix GTK/WPE build failures
Peng Liu
Comment 6 2020-12-08 11:44:36 PST
Created attachment 415657 [details] Fix a build failure on the wincairo port
EWS
Comment 7 2020-12-08 16:56:57 PST
Committed r270563: <https://trac.webkit.org/changeset/270563> All reviewed patches have been landed. Closing bug and clearing flags on attachment 415657 [details].
Radar WebKit Bug Importer
Comment 8 2020-12-08 16:57:19 PST
Note You need to log in before you can comment on or make changes to this bug.