Skip to content

REGRESSION(308531@main): [GStreamer][1.28] Flaky crashes when running test fast/mediastream/error.html#63066

Merged
webkit-commit-queue merged 1 commit into
WebKit:mainfrom
philn:eng/312157
Apr 20, 2026
Merged

REGRESSION(308531@main): [GStreamer][1.28] Flaky crashes when running test fast/mediastream/error.html#63066
webkit-commit-queue merged 1 commit into
WebKit:mainfrom
philn:eng/312157

Conversation

@philn
Copy link
Copy Markdown
Member

@philn philn commented Apr 19, 2026

ab66525

REGRESSION(308531@main): [GStreamer][1.28] Flaky crashes when running test fast/mediastream/error.html
https://bugs.webkit.org/show_bug.cgi?id=312157

Reviewed by Xabier Rodriguez-Calvar.

Calling gst_bus_poll() creates a new GSource and attaches it to the thread default GMainContext,
which introduced re-entrancy, where the GSource would wake-up the WebProcess main loop, make it
process an IPC message that would lead to a capture devices reset and a crash. Use
gst_bus_timed_pop_filtered() instead, which doesn't have this issue.

* LayoutTests/platform/glib/TestExpectations:
* Source/WebCore/platform/mediastream/gstreamer/GStreamerCaptureDeviceManager.cpp:
(WebCore::GStreamerCaptureDeviceManager::refreshCaptureDevices):

Canonical link: https://commits.webkit.org/311567@main

cb32618

Misc iOS, visionOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios 🛠 mac 🛠 wpe 🛠 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug 🧪 wpe-wk2 🧪 win-tests
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 🧪 api-mac 🧪 api-wpe
✅ 🧪 ios-wk2-wpt 🧪 api-mac-debug 🛠 gtk3-libwebrtc
✅ 🧪 api-ios 🧪 mac-wk1 ✅ 🛠 gtk
✅ 🛠 ios-safer-cpp 🧪 mac-wk2 🧪 gtk-wk2
✅ 🛠 vision ✅ 🧪 mac-AS-debug-wk2 🧪 api-gtk
✅ 🛠 🧪 merge ✅ 🛠 vision-sim 🧪 mac-wk2-stress ✅ 🛠 playstation
🧪 vision-wk2 🧪 mac-intel-wk2
✅ 🛠 tv 🛠 mac-safer-cpp
✅ 🛠 tv-sim
✅ 🛠 watch
✅ 🛠 watch-sim

@philn philn self-assigned this Apr 19, 2026
@philn philn added the New Bugs Unclassified bugs are placed in this component until the correct component can be determined. label Apr 19, 2026
@philn philn requested a review from calvaris April 19, 2026 10:34
@philn philn added the GLib Suggested Backport - 2.52 Suggest this merge request be backported to the webkitglib/2.52 stable branch label Apr 19, 2026
Copy link
Copy Markdown
Contributor

@calvaris calvaris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the changelog, I think, attach -> attaches

@philn philn added the merge-queue Applied to send a pull request to merge-queue label Apr 20, 2026
… test fast/mediastream/error.html

https://bugs.webkit.org/show_bug.cgi?id=312157

Reviewed by Xabier Rodriguez-Calvar.

Calling gst_bus_poll() creates a new GSource and attaches it to the thread default GMainContext,
which introduced re-entrancy, where the GSource would wake-up the WebProcess main loop, make it
process an IPC message that would lead to a capture devices reset and a crash. Use
gst_bus_timed_pop_filtered() instead, which doesn't have this issue.

* LayoutTests/platform/glib/TestExpectations:
* Source/WebCore/platform/mediastream/gstreamer/GStreamerCaptureDeviceManager.cpp:
(WebCore::GStreamerCaptureDeviceManager::refreshCaptureDevices):

Canonical link: https://commits.webkit.org/311567@main
@webkit-commit-queue
Copy link
Copy Markdown
Collaborator

Committed 311567@main (ab66525): https://commits.webkit.org/311567@main

Reviewed commits have been landed. Closing PR #63066 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit ab66525 into WebKit:main Apr 20, 2026
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Apr 20, 2026
@philn philn deleted the eng/312157 branch April 20, 2026 08:59
@aperezdc
Copy link
Copy Markdown
Contributor

Backported into webkitglib/2.52 as commit 1e48c4d

@aperezdc aperezdc removed the GLib Suggested Backport - 2.52 Suggest this merge request be backported to the webkitglib/2.52 stable branch label Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Bugs Unclassified bugs are placed in this component until the correct component can be determined.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants