New issue
Advanced search Search tips

Issue 771107 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

[WebAssembly] Indexeddb structured cloning of WebAssembly is not stable across launch

Reported by gauravde...@gmail.com, Oct 3 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36

Steps to reproduce the problem:
(1) Unzip worker.zip to a local folder
(2) run any server in this directory say http-server -p 8567
(3) Goto localhost:8567/a.html in browser
(4) In a new tab open chrome://indexeddb-internals/ to observe 
(5) Then close the browser (optional) and restart the browser and goto localhost:8567/a.html again and observe the size of indexeddb again 

What is the expected behavior?
Size of indexeddb should remain consistent

What went wrong?
Size of indexeddb is different on 2 launch for the same webasembly file in chrome://indexeddb-internals/
Launch 1
http://localhost:8567
Size: 8.9 MB
Launch 2
http://localhost:8567
Size: 1,998 KB

Did this work before? N/A 

Chrome version: 63.0.3230.0  Channel: canary
OS Version: 10.0
Flash Version:
 
worker.zip
445 KB Download

Comment 1 by rtoy@chromium.org, Oct 3 2017

Components: -Blink Blink>Storage>IndexedDB

Comment 2 by rtoy@chromium.org, Oct 3 2017

 Issue 771108  has been merged into this issue.

Comment 3 by rtoy@chromium.org, Oct 3 2017

 Issue 771109  has been merged into this issue.
Labels: Needs-Feedback
Is the data present in the database as expected?

Chrome's Indexed DB implementation lazily compacts data behind the scenes - discarding old records, moving things between backing files, compressing data, etc., so the size change is entirely expected, especially as reported by the internals inspector.

Are you seeing this manifest as problems for your web app?

Loading WebAssembly from indexeddb is taking long time in webworker in our webapplication (as much time as if it was actually getting compiled on first launch) But loading it in main thread is not taking that much time.SerializedScriptValueFactory::deserialize() is taking all the time in webworker.
While trying to find a shorter repro I found this size issue and other crashes - so thought that they might be related.
Project Member

Comment 6 by sheriffbot@chromium.org, Oct 4 2017

Cc: jsb...@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "jsbell@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: WontFix (was: Unconfirmed)
As there doesn't appear to be a problem with the behavior, resolving as WAI.

Sign in to add a comment