Bug 235221

Summary: [Debug][GStreamer] Crash in fast/mediastream/get-display-media-settings.html
Product: WebKit Reporter: Diego Pino <dpino>
Component: New BugsAssignee: Philippe Normand <pnormand>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, calvaris, eric.carlson, ews-watchlist, glenn, hta, jer.noble, philipj, pnormand, sergio, tommyw, 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=233879
https://bugs.webkit.org/show_bug.cgi?id=233722
Attachments:
Description Flags
Tests crashing with a similar stacktrace
none
Patch none

Description Diego Pino 2022-01-14 00:19:11 PST
fast/mediastream/get-display-media-settings.html and other related tests are crashing due to an unsatisfied ASSERT.

STDERR: ASSERTION FAILED: !m_hashedID.isEmpty()
STDERR: /app/webkit/Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp(1106) : const WTF::String& WebCore::RealtimeMediaSource::hashedId() const

Thread 1 (Thread 0x7f38e950e9c0 (LWP 90115)):
#0  0x00007f38f245c866 in WTFCrash () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#1  0x00007f38ef17aa14 in std::numeric_limits<unsigned int>::max() () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#2  0x00007f38f57818e6 in WebCore::RealtimeMediaSource::hashedId() const () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#3  0x00007f38f6537eee in WebCore::MockDisplayCaptureSourceGStreamer::settings() () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#4  0x00007f38f57645cf in WebCore::MediaStreamTrackPrivate::settings() const () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#5  0x00007f38f3cbef8f in WebCore::MediaStreamTrack::getSettings() const () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#6  0x00007f38f3005eea in WebCore::jsMediaStreamTrackPrototypeFunction_getSettingsBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSMediaStreamTrack*) () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#7  0x00007f38f301fdfb in long WebCore::IDLOperation<WebCore::JSMediaStreamTrack>::call<&WebCore::jsMediaStreamTrackPrototypeFunction_getSettingsBody, (WebCore::CastedThisErrorBehavior)0>(JSC::JSGlobalObject&, JSC::CallFrame&, char const*) () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#8  0x00007f38f3005f8a in WebCore::jsMediaStreamTrackPrototypeFunction_getSettings(JSC::JSGlobalObject*, JSC::CallFrame*) () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#9  0x00007f38a80ff1d8 in  ()
#10 0x00007fff11989010 in  ()
#11 0x00007f38f259dda0 in op_call_slow_return_location () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#12 0x0000000000000000 in  ()


Other tests that are failing with the same stacktrace are:

  fast/mediastream/constraint-intrinsic-size.html
  fast/mediastream/get-display-media-capabilities.html
  fast/mediastream/getDisplayMedia-frame-rate.html
  fast/mediastream/getDisplayMedia-max-constraints1.html
  fast/mediastream/getDisplayMedia-max-constraints2.html
  fast/mediastream/getDisplayMedia-max-constraints3.html
  fast/mediastream/getDisplayMedia-size.html
  http/tests/media/media-stream/get-display-media-prompt.html
Comment 1 Diego Pino 2022-01-14 00:23:36 PST
Created attachment 449143 [details]
Tests crashing with a similar stacktrace
Comment 2 Philippe Normand 2022-01-15 02:49:55 PST
Created attachment 449249 [details]
Patch
Comment 3 EWS 2022-01-17 01:30:14 PST
Committed r288091 (246105@main): <https://commits.webkit.org/246105@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 449249 [details].
Comment 4 Radar WebKit Bug Importer 2022-01-17 01:31:18 PST
<rdar://problem/87671310>