[Webkit-unassigned] [Bug 178204] New: IndexedDB causes massive storage usage on iOS, never recycles usage

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 12 02:21:22 PDT 2017


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

            Bug ID: 178204
           Summary: IndexedDB causes massive storage usage on iOS, never
                    recycles usage
           Product: WebKit
           Version: Safari 11
          Hardware: iPhone / iPad
                OS: iOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: pixelworld at hotmail.com

It appears to be an issue with writing updates a lot of times to IndexedDB on iOS devices. Even the simplest structures in IndexedDB (my test used 2 KB of data) will eventually (easily use more than 1GB a day) result in usage reported by the phone to be in gigabytes of size for the "Documents & Data" section for the app under "iPhone Storage".

I made a simple test app in Cordova, that uses LokiJS (have verified the issue also exists when using IndexedDB API directly) and ran the same operation over and over again writing (updating) 5 entities. The reported storage usage on iOS is continuously increasing and never recycles.

This happened on iOS 10.*, 11.0.2 and 11.0.3 on an iPhone 6, and have been reported to us from other devices as well.

After Chrome 61, it is now possible to see a chart in the Application tab on storage usage. IndexedDB size increases while the test are running, but it will recycle and drop once in a while. This same behavior is experienced for a Cordova app on Android, where the "Data" reported under "Storage" for the app increases a bit, then falls again.

Have verified that storage is recycled properly on Chrome on Windows 10 and OS X.

We have also experienced that Chrome on the desktop sometimes have a similar issue and use a lot of storage, that is never recycled, but don't know if this is related or a different bug.

The amount of data stored in the IndexedDB database, is verified to only be 2 KB in these tests, there are no real size increase (only a date field on the entities are updated) in the data actually stored in the IndexedDB.

One mitigation for this bug is to avoid persisting to IndexedDB on every update, but eventually the app will use up all available storage.

Additional bug details is reported here: https://github.com/techfort/LokiJS/issues/620

-- 
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/20171012/d4c80ab9/attachment.html>


More information about the webkit-unassigned mailing list