WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
222462
[REGRESSION] [MSE] WebContent/GPU process will hang when appending data under some circumstances.
https://bugs.webkit.org/show_bug.cgi?id=222462
Summary
[REGRESSION] [MSE] WebContent/GPU process will hang when appending data under...
Jean-Yves Avenard [:jya]
Reported
2021-02-26 00:06:53 PST
[REGRESSION] [MSE] WebContent/GPU process will hang when appending data under some circumstances.
Attachments
Patch
(10.64 KB, patch)
2021-02-26 00:20 PST
,
Jean-Yves Avenard [:jya]
no flags
Details
Formatted Diff
Diff
Patch
(10.78 KB, patch)
2021-02-26 14:26 PST
,
Jean-Yves Avenard [:jya]
no flags
Details
Formatted Diff
Diff
Patch
(10.76 KB, patch)
2021-02-26 15:52 PST
,
Jean-Yves Avenard [:jya]
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Jean-Yves Avenard [:jya]
Comment 1
2021-02-26 00:07:48 PST
rdar://74748843
Jean-Yves Avenard [:jya]
Comment 2
2021-02-26 00:20:05 PST
Created
attachment 421620
[details]
Patch
Jer Noble
Comment 3
2021-02-26 13:32:46 PST
Comment on
attachment 421620
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=421620&action=review
> Source/WebCore/platform/MediaSample.h:76 > - virtual std::pair<RefPtr<MediaSample>, RefPtr<MediaSample>> divide(const MediaTime& presentationTime) = 0; > + virtual std::pair<RefPtr<MediaSample>, RefPtr<MediaSample>> divide(const MediaTime& presentationTime, bool useEndTime = false) = 0;
Here...
> Source/WebCore/platform/graphics/SourceBufferPrivate.cpp:1020 > + replacementSamples = replacementSamples.second->divide(m_appendWindowEnd, true /* useEndTime */);
And here: Rather than have a comment indicate the meaning of "true" in this case, something we've done elsewhere is: enum class UseEndTime : bool { DoNotUse, Use, }; and: virtual std::pair<RefPtr<MediaSample>, RefPtr<MediaSample>> divide(const MediaTime& presentationTime, UseEndTime = UseEndTime::DoNotUse); and: replacementSamples = replacementSamples.second->divide(m_appendWindowEnd, UseEndTime::Use);
Eric Carlson
Comment 4
2021-02-26 13:35:54 PST
Comment on
attachment 421620
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=421620&action=review
> Source/WebCore/platform/graphics/SourceBufferPrivate.cpp:1020 > + replacementSamples = replacementSamples.second->divide(m_appendWindowEnd, true /* useEndTime */);
Please define and use an enum here instead of a bool
> Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.h:64 > + std::pair<RefPtr<MediaSample>, RefPtr<MediaSample>> divide(const MediaTime& presentationTime, bool useEndTime) override;
s/override/final/
> Source/WebCore/platform/graphics/gstreamer/MediaSampleGStreamer.h:53 > + std::pair<RefPtr<MediaSample>, RefPtr<MediaSample>> divide(const MediaTime&, bool) override { return { nullptr, nullptr }; }
Ditto.
> Source/WebCore/platform/mock/mediasource/MockSourceBufferPrivate.cpp:71 > + std::pair<RefPtr<MediaSample>, RefPtr<MediaSample>> divide(const MediaTime&, bool) override { return {nullptr, nullptr}; }
Ditto.
Jean-Yves Avenard [:jya]
Comment 5
2021-02-26 14:26:33 PST
Created
attachment 421707
[details]
Patch
Jer Noble
Comment 6
2021-02-26 14:35:53 PST
Comment on
attachment 421707
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=421707&action=review
r=me, with nits before landing:
> Source/WebCore/platform/MediaSample.h:79 > + enum class UseEndTime : bool { > + DoNotUse, > + Use, > + };
StyleBot is complaining that the enum values aren't indented correctly.
> Source/WebCore/platform/graphics/avfoundation/objc/MediaSampleAVFObjC.h:64 > - std::pair<RefPtr<MediaSample>, RefPtr<MediaSample>> divide(const MediaTime& presentationTime) override; > + std::pair<RefPtr<MediaSample>, RefPtr<MediaSample>> divide(const MediaTime& presentationTime, UseEndTime useEndTime) override;
StyleBot is complaining that the parameter name isn't needed here.
Jean-Yves Avenard [:jya]
Comment 7
2021-02-26 15:52:53 PST
Created
attachment 421719
[details]
Patch
EWS
Comment 8
2021-02-26 16:32:18 PST
Committed
r273604
: <
https://commits.webkit.org/r273604
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 421719
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug