Bug 255276 - [CRASH][iOS][WebKit] void IPC::ArgumentCoder<WTF::String, void>::encode<IPC::Encoder>(IPC::Encoder&, WTF::String const&) + 1108
Summary: [CRASH][iOS][WebKit] void IPC::ArgumentCoder<WTF::String, void>::encode<IPC::...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: Other
Hardware: iPhone / iPad iOS 15
: P2 Critical
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-04-11 01:52 PDT by YokohamaHori
Modified: 2023-04-18 01:53 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description YokohamaHori 2023-04-11 01:52:10 PDT
`WebKit void IPC::ArgumentCoder<WTF::String, void>::encode<IPC::Encoder>(IPC::Encoder&, WTF::String const&) + 1108`

After publishing the app built with Xcode 14.2, the above (WebKit) crash report started to appear.
I don't know how to reproduce the crash, and I haven't received any inquiries from users, so I'm having a hard time finding a way to solve the crash.

If you have a solution (or cause) for the crash, it would be greatly appreciated if you could give me some advice.

## Steps to reproduce
- I'm really sorry, but I don't know how to reproduce
     - The crash log is coming up with Crashlytics, but I can't reproduce it at hand
     - It is certain that it occurs only in apps built with Xcode14.2 (apps built with Xcode13.4.2 do not crash)

## Device and OS
- device
     - 93% iPhone
         - 66% iPhone SE (2nd generation)
- OS
     - 87% iOS 16
         - Occurs on iOS15.5 or later
- Frequency of occurrence
     - About 1% of all users

## crash log
```
# Crashlytics - Stack trace
# Platform: apple
# Version: 2.8.7 (1)
# Issue: 62e8997828f209d6225b4f5335d3ffa8
# Session: 88cbdf20e8404510b0839e9bab3f5a6d_DNE_4_v2
# Date: Tue Apr 11 2023 14:41:54 GMT+0900 (日本標準時)

Crashed: com.apple.main-thread
0  WebKit                         0x41373c void IPC::ArgumentCoder<WTF::String, void>::encode<IPC::Encoder>(IPC::Encoder&, WTF::String const&) + 1108
1  WebKit                         0x413598 void IPC::ArgumentCoder<WTF::String, void>::encode<IPC::Encoder>(IPC::Encoder&, WTF::String const&) + 688
2  WebKit                         0x4747a8 WTF::Detail::CallableWrapper<WebKit::WebProcessPool::notifyPreferencesChanged(WTF::String const&, WTF::String const&, std::__1::optional<WTF::String> const&)::$_47, void, WebKit::WebsiteDataStore&>::call(WebKit::WebsiteDataStore&) + 120
3  WebKit                         0x735cac WebKit::WebsiteDataStore::forEachWebsiteDataStore(WTF::Function<void (WebKit::WebsiteDataStore&)>&&) + 144
4  WebKit                         0x46bdb4 WebKit::WebProcessPool::notifyPreferencesChanged(WTF::String const&, WTF::String const&, std::__1::optional<WTF::String> const&) + 640
5  WebKit                         0x103c30 WTF::Detail::CallableWrapper<-[WKPreferenceObserver preferenceDidChange:key:encodedValue:]::$_2, void>::call() + 216
6  JavaScriptCore                 0x520b0 WTF::RunLoop::performWork() + 200
7  JavaScriptCore                 0x52de8 WTF::RunLoop::performWork(void*) + 36
8  CoreFoundation                 0xd5f24 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
9  CoreFoundation                 0xe22fc __CFRunLoopDoSource0 + 176
10 CoreFoundation                 0x66220 __CFRunLoopDoSources0 + 340
11 CoreFoundation                 0x7bb7c __CFRunLoopRun + 836
12 CoreFoundation                 0x80eb0 CFRunLoopRunSpecific + 612
13 GraphicsServices               0x1368 GSEventRunModal + 164
14 UIKitCore                      0x3a1668 -[UIApplication _run] + 888
15 UIKitCore                      0x3a12cc UIApplicationMain + 340
```
Comment 1 Kimmo Kinnunen 2023-04-12 01:07:50 PDT
I think the crash logs should provide more information that would be useful in further guessing about the cause. Things to look for: crash reason, memory size related numbers. 
It's also useful to list the WebKit version being used.
Comment 2 Radar WebKit Bug Importer 2023-04-18 01:53:17 PDT
<rdar://problem/108187367>