NEW201483
IndexedDB: Connection to Indexed Database server lost. Refresh the page to try again
https://bugs.webkit.org/show_bug.cgi?id=201483
Summary IndexedDB: Connection to Indexed Database server lost. Refresh the page to tr...
Jake Teton-Landis
Reported 2019-09-04 18:28:05 PDT
Sometimes IndexedDB reports a DOMException with name: "UnknownError" and message: "Connection to Indexed Database server lost. Refresh the page to try again". Possible duplicate of https://bugs.webkit.org/show_bug.cgi?id=197050 - I wasn't sure if that bug covered this unexpected IndexedDB error as well. This issue prevents us from relying on WebKit's IndexedDB implementation to store users' data on both iOS and macOS. I was alarmed to see this from "Intel Mac OS X 10_14_3" user-agents, as #197050 only mentions iOS. Here is a sampling of user agents that have reported this error: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15 Mozilla/5.0 (iPhone; CPU iPhone OS 13_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1
Attachments
Radar WebKit Bug Importer
Comment 1 2019-09-07 12:37:50 PDT
Sihui Liu
Comment 2 2019-09-09 11:17:10 PDT
(In reply to Jake Teton-Landis from comment #0) > Sometimes IndexedDB reports a DOMException with name: "UnknownError" and > message: "Connection to Indexed Database server lost. Refresh the page to > try again". > > Possible duplicate of https://bugs.webkit.org/show_bug.cgi?id=197050 - I > wasn't sure if that bug covered this unexpected IndexedDB error as well. > This issue prevents us from relying on WebKit's IndexedDB implementation to > store users' data on both iOS and macOS. I was alarmed to see this from > "Intel Mac OS X 10_14_3" user-agents, as #197050 only mentions iOS. > > Here is a sampling of user agents that have reported this error: > > Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, > like Gecko) Version/12.0.3 Safari/605.1.15 > Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, > like Gecko) Version/12.1.2 Safari/605.1.15 > Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, > like Gecko) Version/13.0 Safari/605.1.15 > Mozilla/5.0 (iPhone; CPU iPhone OS 13_1 like Mac OS X) AppleWebKit/605.1.15 > (KHTML, like Gecko) Version/13.0 Mobile/15E148 Safari/604.1 Hello Jake, You mentioned in https://bugs.webkit.org/show_bug.cgi?id=197050#c26 that on iOS 13 beta you still see the IDB error. Do you see com.apple.WebKit.Networking crash reports when you encounter this error? (On iOS device you can check on Settings > Privacy > Analytics > Analytics Data.) Do you have steps or test case to reproduce the bug? For example, https://bugs.webkit.org/show_bug.cgi?id=197050 happened when the user backgrounded the app and brought the app to foreground again.
Jake Teton-Landis
Comment 3 2019-09-12 18:05:51 PDT
Hi Sihui Liu, This report is based on errors logged from our production clients in the wild, so I can't check on the Analytics Data directly. I'll try to put together a test case to trigger this issue. For what it's worth, this error is coming from a fairly generic `indexedDB.open()` or its version changed migration function.
Etienne Maheu
Comment 4 2019-11-26 14:55:49 PST
I am seeing the same issue while using IndexedDB through localforage in a vuejs PWA. I have noticed that this issue started to appear with users upgrading to iPad OS 13.2. My analytics shows that the last version they used beforehand (12.4) worked fine.
Etienne Maheu
Comment 5 2019-12-09 20:01:08 PST
I have managed to acquire a set of IPS analytics files from one of the devices that encountered this issue. From what I see in my analytics, this problem happened quite a few time for them and, fittingly, they gave me 16 crash report files. They all look the same and appear to be an OS safety against infinite loops. It is hard to say if this is caused by some code in WebKit or in JavaScript code running in the page. > {"app_name":"com.apple.WebKit.WebContent","timestamp":"2019-07-10 17:25:33.02 +0200","app_version":"8606","slice_uuid":"723D30DB-B0EB-3107-9E55-AE9A21B79B20","build_version":"8606.3.4.0.2","bundleID":"com.apple.WebKit.WebContent","share_with_app_devs":false,"is_first_party":true,"bug_type":"202","os_version":"iPhone OS 12.1.1 (16C50)","incident_id":"618A43D3-1703-482D-842C-DE2251BA9EE3","name":"com.apple.WebKit.WebContent"} > Date/Time: 2019-07-10 17:25:12 +0200 > End time: 2019-07-10 17:25:31 +0200 > OS Version: iPhone OS 12.1.1 (Build 16C50) > Architecture: arm64 > Report Version: 27 > Incident Identifier: 618A43D3-1703-482D-842C-DE2251BA9EE3 > > Data Source: Microstackshots > Shared Cache: 0x9a07c000 7A757322-B328-3B09-80FD-0DE44CFD4B0A > > Command: com.apple.WebKit.WebContent > Path: /System/Library/Frameworks/WebKit.framework/XPCServices/com.apple.WebKit.WebContent.xpc/com.apple.WebKit.WebContent > Identifier: com.apple.WebKit.WebContent > Version: 8606 (8606.3.4.0.2) > PID: 243 > > Event: cpu usage > Action taken: none > CPU: 144 seconds cpu time over 151 seconds (95% cpu average), exceeding limit of 80% cpu over 180 seconds > CPU limit: 144s > Limit duration: 180s > CPU used: 144s > Duration: 19.12s > Steps: 20 > > Hardware model: iPad5,2 > Active cpus: 2 > Boot args: > > > Heaviest stack for the target process: > 20 ??? (libsystem_pthread.dylib + 45500) [0x21ab6c1bc] > 20 ??? (libsystem_pthread.dylib + 45660) [0x21ab6c25c] > 20 ??? (JavaScriptCore + 303832) [0x2222802d8] > 20 ??? (JavaScriptCore + 298352) [0x22227ed70] > 20 ??? (WebCore + 23111308) [0x224ea468c] > 20 ??? (WebCore + 23099848) [0x224ea19c8] > 8 ??? (WebCore + 23100556) [0x224ea1c8c] > 3 ??? (CoreFoundation + 680432) [0x21aedb1f0] > 2 ??? (CoreFoundation + 682628) [0x21aedba84] > 2 ??? (CoreFoundation + 703464) [0x21aee0be8] > 2 ??? (libsystem_kernel.dylib + 97956) [0x21aadbea4] > > > Powerstats for: com.apple.WebKit.WebContent [243] > UUID: 723D30DB-B0EB-3107-9E55-AE9A21B79B20 > Path: /System/Library/Frameworks/WebKit.framework/XPCServices/com.apple.WebKit.WebContent.xpc/com.apple.WebKit.WebContent > Architecture: arm64 > Parent: UNKNOWN [1] > UID: 501 > Sudden Term: Tracked > Footprint: 9488 KB > Start time: 2019-07-10 17:25:12 +0200 > End time: 2019-07-10 17:25:31 +0200 > Num samples: 20 (100%) > CPU Time: 16.419s > Primary state: 18 samples Non-Frontmost App, Non-Suppressed, User mode, Effective Thread QoS User Initiated, Requested Thread QoS User Initiated, Override Thread QoS Unspecified > User Activity: 0 samples Idle, 0 samples Active, 20 samples Unknown > Power Source: 0 samples on Battery, 0 samples on AC, 20 samples Unknown > 20 ??? (libsystem_pthread.dylib + 45500) [0x21ab6c1bc] > 20 ??? (libsystem_pthread.dylib + 45660) [0x21ab6c25c] > 20 ??? (JavaScriptCore + 303832) [0x2222802d8] > 20 ??? (JavaScriptCore + 298352) [0x22227ed70] > 20 ??? (WebCore + 23111308) [0x224ea468c] > 20 ??? (WebCore + 23099848) [0x224ea19c8] > 8 ??? (WebCore + 23100556) [0x224ea1c8c] > 3 ??? (CoreFoundation + 680432) [0x21aedb1f0] > 2 ??? (CoreFoundation + 682628) [0x21aedba84] > 2 ??? (CoreFoundation + 703464) [0x21aee0be8] > 2 ??? (libsystem_kernel.dylib + 97956) [0x21aadbea4] > 2 <Kernel mode> > 1 ??? (CoreFoundation + 681540) [0x21aedb644] > 1 ??? (libsystem_malloc.dylib + 70576) [0x21ab2e3b0] > 1 ??? (libsystem_malloc.dylib + 68000) [0x21ab2d9a0] > 1 ??? (libsystem_malloc.dylib + 30940) [0x21ab248dc] > 1 ??? (libsystem_malloc.dylib + 112080) [0x21ab385d0] > 1 ??? (libsystem_malloc.dylib + 118660) [0x21ab39f84] > 2 ??? (CoreFoundation + 680492) [0x21aedb22c] > 1 ??? (CoreFoundation + 327428) [0x21ae84f04] > 1 ??? (libsystem_malloc.dylib + 114112) [0x21ab38dc0] > 1 ??? (CoreFoundation + 680352) [0x21aedb1a0] > 1 ??? (CoreFoundation + 680288) [0x21aedb160] > 1 ??? (CoreFoundation + 679712) [0x21aedaf20] > 1 ??? (CoreFoundation + 680120) [0x21aedb0b8] > 1 ??? (CoreFoundation + 807260) [0x21aefa15c] > 6 ??? (WebCore + 23100296) [0x224ea1b88] > 1 ??? (WebCore + 10969012) [0x22430ffb4] > 1 ??? (WebCore + 10968896) [0x22430ff40] > 1 ??? (WebCore + 10968872) [0x22430ff28] > 1 ??? (JavaScriptCore + 9895016) [0x222ba5c68] > 1 ??? (WebCore + 10968856) [0x22430ff18] > 1 ??? (WebCore + 10968784) [0x22430fed0] > 1 ??? (WebCore + 10968744) [0x22430fea8] > 2 ??? (WebCore + 23100096) [0x224ea1ac0] > 2 ??? (CoreFoundation + 684172) [0x21aedc08c] > 2 ??? (CoreFoundation + 678824) [0x21aedaba8] > 2 ??? (CoreFoundation + 719796) [0x21aee4bb4] > 1 ??? (CoreFoundation + 1321832) [0x21af77b68] > 1 ??? (CoreFoundation + 713328) [0x21aee3270] > 1 ??? (CoreFoundation + 810572) [0x21aefae4c] > 2 ??? (WebCore + 23100168) [0x224ea1b08] > 1 ??? (WebCore + 10968516) [0x22430fdc4] > 1 ??? (WebCore + 10968476) [0x22430fd9c] > 1 ??? (WebCore + 23100076) [0x224ea1aac] > 1 ??? (CoreFoundation + 673912) [0x21aed9878] > 1 ??? (WebCore + 23100036) [0x224ea1a84] > 1 ??? (JavaScriptCore + 130004) [0x222255bd4] > > Binary Images: > 0x100ebc000 - ??? com.apple.WebKit.WebContent <723D30DB-B0EB-3107-9E55-AE9A21B79B20> /System/Library/Frameworks/WebKit.framework/XPCServices/com.apple.WebKit.WebContent.xpc/com.apple.WebKit.WebContent > 0x21aac4000 - 0x21aaeefff libsystem_kernel.dylib <1F1EDEE5-18B5-36F1-88E1-73FC02137614> /usr/lib/system/libsystem_kernel.dylib > 0x21ab1d000 - 0x21ab40fff libsystem_malloc.dylib <6E321806-C54E-31DB-B4A8-9DEC04A5CA2C> /usr/lib/system/libsystem_malloc.dylib > 0x21ab61000 - 0x21ab71fff libsystem_pthread.dylib <78ADDF58-E801-357C-9001-13579B17D2BA> /usr/lib/system/libsystem_pthread.dylib > 0x21ae35000 - 0x21b198fff CoreFoundation <DF938905-A982-3D29-BADE-1B903A929425> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation > 0x222236000 - 0x222e0bfff JavaScriptCore <0E79C70C-83C3-38EF-A288-8F960BA4CB0A> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore > 0x22389a000 - 0x22513bfff WebCore <07E440F4-58E5-3A26-B1B6-0FB43EE5CFFD> /System/Library/PrivateFrameworks/WebCore.framework/WebCore >
Note You need to log in before you can comment on or make changes to this bug.