[Webkit-unassigned] [Bug 192159] New: [iOS][WK1] RenderThemeIOS::contentSizeCategory() calls -[UIApplication preferredContentSizeCategory] on non-main thread
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 29 09:43:07 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=192159
Bug ID: 192159
Summary: [iOS][WK1] RenderThemeIOS::contentSizeCategory() calls
-[UIApplication preferredContentSizeCategory] on
non-main thread
Product: WebKit
Version: WebKit Local Build
Hardware: iPhone / iPad
OS: iOS 12
Status: NEW
Keywords: EasyFix, PlatformOnly
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dbates at webkit.org
CC: koivisto at iki.fi, simon.fraser at apple.com
Using an iOS app with a LegacyWebKit web view today I hit the following NSException:
Main Thread Checker: UI API called on a background thread: -[UIApplication preferredContentSizeCategory]
PID: 65242, TID: 12182809, Thread name: WebThread, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4 WebCore 0x0000000118059c09 _ZN7WebCore14RenderThemeIOS19contentSizeCategoryEv + 89
5 WebCore 0x0000000118064231 _ZNK7WebCore14RenderThemeIOS27cachedSystemFontDescriptionENS_10CSSValueIDE + 609
6 WebCore 0x000000011a9cf2b2 _ZNK7WebCore11RenderTheme10systemFontENS_10CSSValueIDERNS_22FontCascadeDescriptionE + 50
7 WebCore 0x00000001194b2c8b _ZN7WebCore17CSSPropertyParser17consumeSystemFontEb + 203
8 WebCore 0x00000001194a3200 _ZN7WebCore17CSSPropertyParser14parseShorthandENS_13CSSPropertyIDEb + 1248
9 WebCore 0x00000001194a002c _ZN7WebCore17CSSPropertyParser15parseValueStartENS_13CSSPropertyIDEb + 156
10 WebCore 0x000000011949f9cc _ZN7WebCore17CSSPropertyParser10parseValueENS_13CSSPropertyIDEbRKNS_19CSSParserTokenRangeERKNS_16CSSParserContextERN3WTF6VectorINS_11CSSPropertyELm256ENS8_15CrashOnOverflowELm16EEENS_13StyleRuleBase4TypeE + 140
11 WebCore 0x0000000119487a9d _ZN7WebCore13CSSParserImpl23consumeDeclarationValueENS_19CSSParserTokenRangeENS_13CSSPropertyIDEbNS_13StyleRuleBase4TypeE + 93
12 WebCore 0x000000011948ac22 _ZN7WebCore13CSSParserImpl18consumeDeclarationENS_19CSSParserTokenRangeENS_13StyleRuleBase4TypeE + 850
13 WebCore 0x0000000119487fcc _ZN7WebCore13CSSParserImpl22consumeDeclarationListENS_19CSSParserTokenRangeENS_13StyleRuleBase4TypeE + 604
14 WebCore 0x000000011948c7dd _ZN7WebCore13CSSParserImpl16consumeStyleRuleENS_19CSSParserTokenRangeES1_ + 525
15 WebCore 0x0000000119489631 _ZN7WebCore13CSSParserImpl20consumeQualifiedRuleERNS_19CSSParserTokenRangeENS0_16AllowedRulesTypeE + 401
16 WebCore 0x000000011948992b _ZN7WebCore13CSSParserImpl15consumeRuleListIZNS0_15parseStyleSheetERKN3WTF6StringERKNS_16CSSParserContextEPNS_18StyleSheetContentsENS_9CSSParser11RuleParsingEE3$_2EEbNS_19CSSParserTokenRangeENS0_12RuleListTypeET_ + 475
17 WebCore 0x000000011948106b _ZN7WebCore13CSSParserImpl15parseStyleSheetERKN3WTF6StringERKNS_16CSSParserContextEPNS_18StyleSheetContentsENS_9CSSParser11RuleParsingE + 139
18 WebCore 0x0000000119480fcb _ZN7WebCore9CSSParser10parseSheetEPNS_18StyleSheetContentsERKN3WTF6StringENS0_11RuleParsingE + 43
19 WebCore 0x000000011946f4c2 _ZN7WebCore18StyleSheetContents11parseStringERKN3WTF6StringE + 98
20 WebCore 0x00000001192f54ba _ZN7WebCoreL12parseUASheetERKN3WTF6StringE + 122
21 WebCore 0x00000001192f4da3 _ZN7WebCore21CSSDefaultStyleSheets20loadFullDefaultStyleEv + 771
22 WebCore 0x00000001192f5543 _ZN7WebCore21CSSDefaultStyleSheets34ensureDefaultStyleSheetsForElementERKNS_7ElementE + 51
23 WebCore 0x0000000119426d5a _ZN7WebCore13StyleResolver15styleForElementERKNS_7ElementEPKNS_11RenderStyleES6_NS_20RuleMatchingBehaviorEPKNS_14SelectorFilterE + 714
24 WebCore 0x000000011abcd4b2 _ZN7WebCore5Style12TreeResolver15styleForElementERNS_7ElementERKNS_11RenderStyleE + 770
25 WebCore 0x000000011abcd8b0 _ZN7WebCore5Style12TreeResolver14resolveElementERNS_7ElementE + 240
26 WebCore 0x000000011abcf1a9 _ZN7WebCore5Style12TreeResolver19resolveComposedTreeEv + 1449
27 WebCore 0x000000011abcff68 _ZN7WebCore5Style12TreeResolver7resolveEv + 568
28 WebCore 0x00000001195a2fba _ZN7WebCore8Document12resolveStyleENS0_16ResolveStyleTypeE + 1050
29 WebCore libc++abi.dylib: terminating with uncaught exception of type NSException
As the exception and backtrace indicate we called -[UIApplication preferredContentSizeCategory] from RenderThemeIOS::contentSizeCategory() on the WebThread, which is not the main thread.
--
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/20181129/fec1da0a/attachment.html>
More information about the webkit-unassigned
mailing list