[Webkit-unassigned] [Bug 190401] [iOS Debug] Assertion failure in NSComparisonResult UIContentSizeCategoryCompareToCategory()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 11 10:10:59 PDT 2018


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

--- Comment #9 from Wenson Hsieh <wenson_hsieh at apple.com> ---
(In reply to Jonathan Bedard from comment #6)
> (In reply to Wenson Hsieh from comment #5)
> > I suspect that making TestWebKitAPI a proper UI application would fix this.
> 
> Making it a UI application would prevent a flakey SEGFAULT? That would
> strike me as very strange.

Yes, I strongly suspect this is the case. We're hitting this exception because UIKit can't figure out what scale to apply to an icon image for a button in the callout bar when focusing an editable element.

UIKit attempts to determine this scale by inspecting -[UIApplication preferredContentSizeCategory], which in the case of these API tests, returns `nil`. However, in WebKitTestRunner, this returns a non-null string, so we don't hit this exception. So I think we either need to make TestWebKitAPI a UI application to address this, or pretend to make it an app by swizzling some (carefully chosen) SPI.

> 
> Also, are we sure that's the right crashlog? The stack trace isn't pointing
> to that UIKit assertion error, it's a C++ string/stream error in our code.

The crash log does not seem relevant to the exception here; I've pasted an example trace in the radar.

-- 
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/20181011/2b6bc00c/attachment.html>


More information about the webkit-unassigned mailing list