[Webkit-unassigned] [Bug 282790] New: [WebDriver] Assertion failure when starting a second session after the first one exits
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 7 16:31:33 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=282790
Bug ID: 282790
Summary: [WebDriver] Assertion failure when starting a second
session after the first one exits
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebDriver
Assignee: webkit-unassigned at lists.webkit.org
Reporter: lmoura at igalia.com
CC: bburg at apple.com
285374 at main added a `SessionHost::browserTerminatedObserver`, to clean up the WebDriverBiDi WebSocket when the browser exits/terminates.
Steps to reproduce:
- Run multiple sequential sessions on the same WPEWebDriver instance in a debug build.
...
ASSERTION FAILED: !browserTerminatedObservers().contains(observer)
/home/lauro/wkdev-shared/dev/wk-webdriver/WebKit-WebDriver/Source/WebDriver/SessionHost.cpp(121) : void WebDriver::SessionHost::addBrowserTerminatedObserver(const BrowserTerminatedObserver&)
1 0x611e0c85d2aa WebDriver::SessionHost::addBrowserTerminatedObserver(WTF::Observer<void (WTF::String const&)> const&)
2 0x611e0c8710f5 WebDriver::WebDriverService::connectToBrowser(WTF::Vector<WebDriver::Capabilities, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&&, WTF::Function<void (WebDriver::CommandResult&&)>&&)
3 0x611e0c870d3d WebDriver::WebDriverService::newSession(WTF::RefPtr<WTF::JSONImpl::Object, WTF::RawPtrTraits<WTF::JSONImpl::Object>, WTF::DefaultRefDerefTraits<WTF::JSONImpl::Object> >&&, WTF::Function<void (WebDriver::CommandResult&&)>&&)
4 0x611e0c86a34f WebDriver::WebDriverService::handleRequest(WebDriver::HTTPRequestHandler::Request&&, WTF::Function<void (WebDriver::HTTPRequestHandler::Response&&)>&&)
Likely this was hidden by bug276266, which is preventing normal WebDriver debug runs. Note that to trigger the issue reported in this bug, you have to comment out the assertion in bug276266.
Patch incoming.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241108/39d0cae0/attachment.htm>
More information about the webkit-unassigned
mailing list