Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
5.11.0 Beta 3
-
None
Description
Sometimes the tst_qwebenginepage test will assert in tst_QWebEnginePage::getUserMediaRequest on Linix
[5812:5839:0420/152117.998078:WARNING:audio_input_sync_writer.cc(379)] AISW: No room in socket buffer.: Broken pipe (32)
tst_qwebenginepage: ../../3rdparty/chromium/third_party/webrtc/modules/desktop_capture/x11/x_error_trap.cc:45: webrtc::XErrorTrap::XErrorTrap(Display*): Assertion `!g_xserver_error_trap_enabled' failed.
Received signal 6
#0 0x7ff6c1cdf46e base::debug::StackTrace::StackTrace()
#1 0x7ff6c1cdd587 base::debug::StackTrace::StackTrace()
#2 0x7ff6c1cde10b base::debug::(anonymous namespace)::StackDumpSignalHandler()
#3 0x7ff6b9919b10 <unknown>
#4 0x7ff6b8cfe8d7 __GI_raise
#5 0x7ff6b8cffcaa __GI_abort
#6 0x7ff6b8cf7866 __assert_fail_base
#7 0x7ff6b8cf7912 _GI__assert_fail
#8 0x7ff6c4863b60 webrtc::XErrorTrap::XErrorTrap()
#9 0x7ff6c48631c7 webrtc::GetWindowRect()
#10 0x7ff6c48642a7 webrtc::XServerPixelBuffer::Init()
#11 0x7ff6c485ba5b webrtc::(anonymous namespace)::ScreenCapturerLinux::Init()
#12 0x7ff6c485d0b7 webrtc::DesktopCapturer::CreateRawScreenCapturer()
#13 0x7ff6c485768c webrtc::DesktopCapturer::CreateScreenCapturer()
#14 0x7ff6be2af7e0 QtWebEngineCore::(anonymous namespace)::getDefaultScreenId()
#15 0x7ff6be2b1378 QtWebEngineCore::MediaCaptureDevicesDispatcher::handleMediaAccessPermissionResponse()
#16 0x7ff6be2ea93d QtWebEngineCore::WebContentsAdapter::grantMediaAccessPermission()
#17 0x7ff6cc8dc1f3 QWebEnginePage::setFeaturePermission()
#18 0x00000042ae5a tst_QWebEnginePage::getUserMediaRequest()
#19 0x000000455e41 tst_QWebEnginePage::qt_static_metacall()
#20 0x7ff6ba00f1d8 QMetaMethod::invoke()
#21 0x7ff6bb421d4e QTest::TestMethods::invokeTestOnData()
#22 0x7ff6bb422ab9 QTest::TestMethods::invokeTest()
This happens because both the UI process and the "AudioThread" process will access X11 with the non-thread safe XErrorTrap construct.
Attachments
Issue Links
- duplicates
-
QTBUG-69007 tst_QWebEnginePage crash after getUserMediaRequest(device audio+video)
- Closed