<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>201483</bug_id>
          
          <creation_ts>2019-09-04 18:28:05 -0700</creation_ts>
          <short_desc>IndexedDB: Connection to Indexed Database server lost. Refresh the page to try again</short_desc>
          <delta_ts>2026-01-25 21:43:21 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>Other</version>
          <rep_platform>All</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=197050</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>165889</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jake Teton-Landis">just.1.jake</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>etienne.maheu</cc>
    
    <cc>joshkel</cc>
    
    <cc>marcosc</cc>
    
    <cc>mywhiteruth</cc>
    
    <cc>sihui_liu</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zac.spitzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1567935</commentid>
    <comment_count>0</comment_count>
    <who name="Jake Teton-Landis">just.1.jake</who>
    <bug_when>2019-09-04 18:28:05 -0700</bug_when>
    <thetext>Sometimes IndexedDB reports a DOMException with name: &quot;UnknownError&quot; and message: &quot;Connection to Indexed Database server lost. Refresh the page to try again&quot;.

Possible duplicate of https://bugs.webkit.org/show_bug.cgi?id=197050 - I wasn&apos;t sure if that bug covered this unexpected IndexedDB error as well.
This issue prevents us from relying on WebKit&apos;s IndexedDB implementation to store users&apos; data on both iOS and macOS. I was alarmed to see this from &quot;Intel Mac OS X 10_14_3&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1568912</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-09-07 12:37:50 -0700</bug_when>
    <thetext>&lt;rdar://problem/55148923&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1569207</commentid>
    <comment_count>2</comment_count>
    <who name="Sihui Liu">sihui_liu</who>
    <bug_when>2019-09-09 11:17:10 -0700</bug_when>
    <thetext>(In reply to Jake Teton-Landis from comment #0)
&gt; Sometimes IndexedDB reports a DOMException with name: &quot;UnknownError&quot; and
&gt; message: &quot;Connection to Indexed Database server lost. Refresh the page to
&gt; try again&quot;.
&gt; 
&gt; Possible duplicate of https://bugs.webkit.org/show_bug.cgi?id=197050 - I
&gt; wasn&apos;t sure if that bug covered this unexpected IndexedDB error as well.
&gt; This issue prevents us from relying on WebKit&apos;s IndexedDB implementation to
&gt; store users&apos; data on both iOS and macOS. I was alarmed to see this from
&gt; &quot;Intel Mac OS X 10_14_3&quot; user-agents, as #197050 only mentions iOS.
&gt; 
&gt; Here is a sampling of user agents that have reported this error:
&gt; 
&gt; Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML,
&gt; like Gecko) Version/12.0.3 Safari/605.1.15
&gt; Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML,
&gt; like Gecko) Version/12.1.2 Safari/605.1.15
&gt; Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML,
&gt; like Gecko) Version/13.0 Safari/605.1.15
&gt; Mozilla/5.0 (iPhone; CPU iPhone OS 13_1 like Mac OS X) AppleWebKit/605.1.15
&gt; (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 &gt; Privacy &gt; Analytics &gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1570455</commentid>
    <comment_count>3</comment_count>
    <who name="Jake Teton-Landis">just.1.jake</who>
    <bug_when>2019-09-12 18:05:51 -0700</bug_when>
    <thetext>Hi Sihui Liu,

This report is based on errors logged from our production clients in the wild, so I can&apos;t check on the Analytics Data directly. I&apos;ll try to put together a test case
to trigger this issue.

For what it&apos;s worth, this error is coming from a fairly generic `indexedDB.open()` or its version changed migration function.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1593756</commentid>
    <comment_count>4</comment_count>
    <who name="Etienne Maheu">etienne.maheu</who>
    <bug_when>2019-11-26 14:55:49 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1597090</commentid>
    <comment_count>5</comment_count>
    <who name="Etienne Maheu">etienne.maheu</who>
    <bug_when>2019-12-09 20:01:08 -0800</bug_when>
    <thetext>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.

&gt; {&quot;app_name&quot;:&quot;com.apple.WebKit.WebContent&quot;,&quot;timestamp&quot;:&quot;2019-07-10 17:25:33.02 +0200&quot;,&quot;app_version&quot;:&quot;8606&quot;,&quot;slice_uuid&quot;:&quot;723D30DB-B0EB-3107-9E55-AE9A21B79B20&quot;,&quot;build_version&quot;:&quot;8606.3.4.0.2&quot;,&quot;bundleID&quot;:&quot;com.apple.WebKit.WebContent&quot;,&quot;share_with_app_devs&quot;:false,&quot;is_first_party&quot;:true,&quot;bug_type&quot;:&quot;202&quot;,&quot;os_version&quot;:&quot;iPhone OS 12.1.1 (16C50)&quot;,&quot;incident_id&quot;:&quot;618A43D3-1703-482D-842C-DE2251BA9EE3&quot;,&quot;name&quot;:&quot;com.apple.WebKit.WebContent&quot;}
&gt; Date/Time:       2019-07-10 17:25:12 +0200
&gt; End time:        2019-07-10 17:25:31 +0200
&gt; OS Version:      iPhone OS 12.1.1 (Build 16C50)
&gt; Architecture:    arm64
&gt; Report Version:  27
&gt; Incident Identifier: 618A43D3-1703-482D-842C-DE2251BA9EE3
&gt; 
&gt; Data Source:     Microstackshots
&gt; Shared Cache:    0x9a07c000 7A757322-B328-3B09-80FD-0DE44CFD4B0A
&gt; 
&gt; Command:         com.apple.WebKit.WebContent
&gt; Path:            /System/Library/Frameworks/WebKit.framework/XPCServices/com.apple.WebKit.WebContent.xpc/com.apple.WebKit.WebContent
&gt; Identifier:      com.apple.WebKit.WebContent
&gt; Version:         8606 (8606.3.4.0.2)
&gt; PID:             243
&gt; 
&gt; Event:           cpu usage
&gt; Action taken:    none
&gt; CPU:             144 seconds cpu time over 151 seconds (95% cpu average), exceeding limit of 80% cpu over 180 seconds
&gt; CPU limit:       144s
&gt; Limit duration:  180s
&gt; CPU used:        144s
&gt; Duration:        19.12s
&gt; Steps:           20
&gt; 
&gt; Hardware model:  iPad5,2
&gt; Active cpus:     2
&gt; Boot args:        
&gt; 
&gt; 
&gt; Heaviest stack for the target process:
&gt;   20  ??? (libsystem_pthread.dylib + 45500) [0x21ab6c1bc]
&gt;   20  ??? (libsystem_pthread.dylib + 45660) [0x21ab6c25c]
&gt;   20  ??? (JavaScriptCore + 303832) [0x2222802d8]
&gt;   20  ??? (JavaScriptCore + 298352) [0x22227ed70]
&gt;   20  ??? (WebCore + 23111308) [0x224ea468c]
&gt;   20  ??? (WebCore + 23099848) [0x224ea19c8]
&gt;   8   ??? (WebCore + 23100556) [0x224ea1c8c]
&gt;   3   ??? (CoreFoundation + 680432) [0x21aedb1f0]
&gt;   2   ??? (CoreFoundation + 682628) [0x21aedba84]
&gt;   2   ??? (CoreFoundation + 703464) [0x21aee0be8]
&gt;   2   ??? (libsystem_kernel.dylib + 97956) [0x21aadbea4]
&gt; 
&gt; 
&gt; Powerstats for:  com.apple.WebKit.WebContent [243]
&gt; UUID:            723D30DB-B0EB-3107-9E55-AE9A21B79B20
&gt; Path:            /System/Library/Frameworks/WebKit.framework/XPCServices/com.apple.WebKit.WebContent.xpc/com.apple.WebKit.WebContent
&gt; Architecture:    arm64
&gt; Parent:          UNKNOWN [1]
&gt; UID:             501
&gt; Sudden Term:     Tracked
&gt; Footprint:       9488 KB
&gt; Start time:      2019-07-10 17:25:12 +0200
&gt; End time:        2019-07-10 17:25:31 +0200
&gt; Num samples:     20 (100%)
&gt; CPU Time:        16.419s
&gt; 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
&gt; User Activity:   0 samples Idle, 0 samples Active, 20 samples Unknown
&gt; Power Source:    0 samples on Battery, 0 samples on AC, 20 samples Unknown
&gt;   20  ??? (libsystem_pthread.dylib + 45500) [0x21ab6c1bc]
&gt;     20  ??? (libsystem_pthread.dylib + 45660) [0x21ab6c25c]
&gt;       20  ??? (JavaScriptCore + 303832) [0x2222802d8]
&gt;         20  ??? (JavaScriptCore + 298352) [0x22227ed70]
&gt;           20  ??? (WebCore + 23111308) [0x224ea468c]
&gt;             20  ??? (WebCore + 23099848) [0x224ea19c8]
&gt;               8   ??? (WebCore + 23100556) [0x224ea1c8c]
&gt;                 3   ??? (CoreFoundation + 680432) [0x21aedb1f0]
&gt;                   2   ??? (CoreFoundation + 682628) [0x21aedba84]
&gt;                     2   ??? (CoreFoundation + 703464) [0x21aee0be8]
&gt;                       2   ??? (libsystem_kernel.dylib + 97956) [0x21aadbea4]
&gt;                         2   &lt;Kernel mode&gt;
&gt;                   1   ??? (CoreFoundation + 681540) [0x21aedb644]
&gt;                     1   ??? (libsystem_malloc.dylib + 70576) [0x21ab2e3b0]
&gt;                       1   ??? (libsystem_malloc.dylib + 68000) [0x21ab2d9a0]
&gt;                         1   ??? (libsystem_malloc.dylib + 30940) [0x21ab248dc]
&gt;                           1   ??? (libsystem_malloc.dylib + 112080) [0x21ab385d0]
&gt;                             1   ??? (libsystem_malloc.dylib + 118660) [0x21ab39f84]
&gt;                 2   ??? (CoreFoundation + 680492) [0x21aedb22c]
&gt;                   1   ??? (CoreFoundation + 327428) [0x21ae84f04]
&gt;                   1   ??? (libsystem_malloc.dylib + 114112) [0x21ab38dc0]
&gt;                 1   ??? (CoreFoundation + 680352) [0x21aedb1a0]
&gt;                 1   ??? (CoreFoundation + 680288) [0x21aedb160]
&gt;                   1   ??? (CoreFoundation + 679712) [0x21aedaf20]
&gt;                 1   ??? (CoreFoundation + 680120) [0x21aedb0b8]
&gt;                   1   ??? (CoreFoundation + 807260) [0x21aefa15c]
&gt;               6   ??? (WebCore + 23100296) [0x224ea1b88]
&gt;                 1   ??? (WebCore + 10969012) [0x22430ffb4]
&gt;                 1   ??? (WebCore + 10968896) [0x22430ff40]
&gt;                 1   ??? (WebCore + 10968872) [0x22430ff28]
&gt;                   1   ??? (JavaScriptCore + 9895016) [0x222ba5c68]
&gt;                 1   ??? (WebCore + 10968856) [0x22430ff18]
&gt;                 1   ??? (WebCore + 10968784) [0x22430fed0]
&gt;                 1   ??? (WebCore + 10968744) [0x22430fea8]
&gt;               2   ??? (WebCore + 23100096) [0x224ea1ac0]
&gt;                 2   ??? (CoreFoundation + 684172) [0x21aedc08c]
&gt;                   2   ??? (CoreFoundation + 678824) [0x21aedaba8]
&gt;                     2   ??? (CoreFoundation + 719796) [0x21aee4bb4]
&gt;                       1   ??? (CoreFoundation + 1321832) [0x21af77b68]
&gt;                         1   ??? (CoreFoundation + 713328) [0x21aee3270]
&gt;                       1   ??? (CoreFoundation + 810572) [0x21aefae4c]
&gt;               2   ??? (WebCore + 23100168) [0x224ea1b08]
&gt;                 1   ??? (WebCore + 10968516) [0x22430fdc4]
&gt;                 1   ??? (WebCore + 10968476) [0x22430fd9c]
&gt;               1   ??? (WebCore + 23100076) [0x224ea1aac]
&gt;                 1   ??? (CoreFoundation + 673912) [0x21aed9878]
&gt;               1   ??? (WebCore + 23100036) [0x224ea1a84]
&gt;                 1   ??? (JavaScriptCore + 130004) [0x222255bd4]
&gt; 
&gt;   Binary Images:
&gt;            0x100ebc000 -                ???  com.apple.WebKit.WebContent &lt;723D30DB-B0EB-3107-9E55-AE9A21B79B20&gt;  /System/Library/Frameworks/WebKit.framework/XPCServices/com.apple.WebKit.WebContent.xpc/com.apple.WebKit.WebContent
&gt;            0x21aac4000 -        0x21aaeefff  libsystem_kernel.dylib      &lt;1F1EDEE5-18B5-36F1-88E1-73FC02137614&gt;  /usr/lib/system/libsystem_kernel.dylib
&gt;            0x21ab1d000 -        0x21ab40fff  libsystem_malloc.dylib      &lt;6E321806-C54E-31DB-B4A8-9DEC04A5CA2C&gt;  /usr/lib/system/libsystem_malloc.dylib
&gt;            0x21ab61000 -        0x21ab71fff  libsystem_pthread.dylib     &lt;78ADDF58-E801-357C-9001-13579B17D2BA&gt;  /usr/lib/system/libsystem_pthread.dylib
&gt;            0x21ae35000 -        0x21b198fff  CoreFoundation              &lt;DF938905-A982-3D29-BADE-1B903A929425&gt;  /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
&gt;            0x222236000 -        0x222e0bfff  JavaScriptCore              &lt;0E79C70C-83C3-38EF-A288-8F960BA4CB0A&gt;  /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore
&gt;            0x22389a000 -        0x22513bfff  WebCore                     &lt;07E440F4-58E5-3A26-B1B6-0FB43EE5CFFD&gt;  /System/Library/PrivateFrameworks/WebCore.framework/WebCore
&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>