Bug 257690

Summary: REGRESSION(264582@main): [GTK] UI process crash: Assertion 'this->_M_is_engaged()' failed.
Product: WebKit Reporter: two
Component: WebKitGTKAssignee: Michael Catanzaro <mcatanzaro>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, mcatanzaro
Priority: P2    
Version: Other   
Hardware: PC   
OS: Linux   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=2212303
https://bugs.webkit.org/show_bug.cgi?id=238327
https://bugzilla.redhat.com/show_bug.cgi?id=2212995
https://bugzilla.redhat.com/show_bug.cgi?id=2216397

Description two 2023-06-04 13:34:33 PDT
GNOME Web from flathub prints this in logs and crashes:

```
/usr/include/c++/12.2.0/optional:477: constexpr _Tp& std::_Optional_base_impl<_Tp, _Dp>::_M_get() [with _Tp = MotionEvent; _Dp = std::_Optional_base<MotionEvent, true, true>]: Assertion 'this->_M_is_engaged()' failed.
```

this usually happens during session restore, but can also happen during usage.
Comment 1 Michael Catanzaro 2023-06-05 05:57:57 PDT
We need to see a backtrace taken with gdb, please.
Comment 2 Michael Catanzaro 2023-06-05 10:05:10 PDT
Backtrace here: https://bugzilla.redhat.com/show_bug.cgi?id=2212303
Comment 3 Michael Catanzaro 2023-06-05 10:16:09 PDT
Problem is it's possible for a pointer leave event to occur before any pointer motion event. I thought that was not possible. This is a regression in 2.40.2.
Comment 4 Michael Catanzaro 2023-06-05 10:20:05 PDT
Pull request: https://github.com/WebKit/WebKit/pull/14674
Comment 5 EWS 2023-06-06 06:36:51 PDT
Committed 264895@main (d501d8dce059): <https://commits.webkit.org/264895@main>

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