-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offline Storage fails with IDB error #1230
Comments
Confirmed. Reproduced on the first try for me in Chrome with the latest code. |
We are working on a fix. As a work-around, you can clear your IndexedDB storage in the Chrome debugger. |
This affects all app upgrades to v2.3 where there was any offline content stored by an earlier version. All v2.3.x releases are affected. |
We are going to implement the quickest fix we can for this issue: a new error code to detect upgrade issues and a new method to delete the existing database. This will allow applications to recover from this issue, albeit at the expense of any content already stored by end-users. The changes will appear in our next release, v2.3.2. |
To track the long-term fix, in which we will support reading data from older versions, subscribe to #1248. |
I was able to store/read/delete offline content once I deleted the old database. however, I just want to note that reading/deleting data from old databases (in my case v2.2.7) worked just fine, but adding new content to the old db was not possible due to this error. this was tested on my custom app. thanks. |
We are unable to add new content because of a problem in the schema of the upgraded tables. During our investigations, we found that the mis-upgraded tables were only part of the problem. Larger tables could not be upgraded at all, leaving the v2.2 content completely inaccessible if it is over a certain size. |
We have removed the upgrade code using this list of CLs: 965dc8e To get updates on progress on supporting older storage version, please follow #1248. |
Fixes cherry-picked for v2.3.2 |
This removed all of DBUpgrade (lib and test) as it was not accomplishing its requirements. Now instead, if DBEngine detects that there needs to be an upgrade, it will abort the upgrade and message the app with |UNSUPPORTED_UPGRADE_REQUEST|. Issue #1230 Issue #1248 Change-Id: If65bc013b0482c9b0c6e71e644e9132584984414
Have you read the FAQ and checked for duplicate issues: Yes.
What version of Shaka Player are you using: 2.3.0
Can you reproduce the issue with our latest release version: Yes.
Can you reproduce the issue with the latest code from
master
: I used the Demo appAre you using the demo app or your own custom app: Both.
If custom app, can you reproduce the issue using our demo app:
What browser and OS are you using:
Chrome version 63.0.3239.132 (Official Build) (64-bit), Windows 10 (OS Build 16299.192)
What are the manifest and license server URIs: Demo App Manifests list
(you can send the URIs to shaka-player-issues@google.com instead, but please use GitHub and the template for the rest)
What did you do?
loading Sintel 4k (MP4 only/WebM only), and clicking the store button.
What did you expect to happen?
Successful Offline storage & playback.
What actually happened?
Got this error:
Failed to execute 'add' on 'IDBObjectStore': The object store uses out-of-line keys and has no key generator and the key parameter was not provided.
The text was updated successfully, but these errors were encountered: