-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Dartium error with IndexedDB, inconsistent with dart2js #3130
Comments
This comment was originally written by antonm@google.com Thanks, Seth, I assume it's an issue w/ dispatch. Stephen, as you started on it putting you as an owner, but feel free to reassign back to me. Set owner to @rakudrama. |
This comment was originally written by antonm@google.com |
Unmerging. I think it is more likely related to the recent idl change. Added Accepted label. |
This comment was originally written by antonm@google.com Up to you. I've noticed those refernces to string vs. int too, but they looks like a warning. I observed exactly this reports when wrong overload was choosen (w/ IDBKey vs. Range). Stephen, what's the ETA for this bug (you're marked as an owner.) |
I'm still not sure what is going on here. Anton, if you think it is a dispatch issue, can you take a look? I will look at the string vs int problem - most of the work there is on the JavaScript side to make the various browsers compatible. Set owner to antonm@google.com. |
This comment was originally written by antonm@google.com Just ran on the freshest Dartium and got the following as an output: zsh/3 3 (git-svn)-[r140492]-% ./out/Debug/chrome --user-data-dir=ddd ~/Downloads/idbDartium.html So I think Dartium is off the hook. Reassigning back to Stephen and changing area to DOM. Set owner to @rakudrama. |
Added this to the M1 milestone. |
Marked this as blocking #1310. |
There is a bug with the code. You might just have been lucky with timing when it worked on Dartium. void _initDb(Completer completer) { The version change logic will also need to be upgraded to the standard upgradeneeded event protocol. Added AsDesigned label. |
I've attached the relevant files to repo this error, including html, compiled javascript, and dart code.
Chromium 21.0.1140.0 (Developer Build 137628)
OS Mac OS X
WebKit 537.1 (Source/WebCore/Configurations@528)
JavaScript V8 3.11.2
DartVM r7713
The attached code behaves differently in Dartium vs. when compiled to JavaScript via dart2js.
When running via dart2js, the program completes as expected.
When running in Dartium, the following error is produced:
opening db
success
version good to go for test-db
inserting objects into store00
opening mode 1 txn on store00
Numeric transaction modes are deprecated in IDBDatabase.transaction. Use "readonly" or "readwrite".
Saving 0
Exception: Error: TRANSACTION_INACTIVE_ERR: DOM IDBDatabase Exception 7
Stack Trace: 0. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3091 col:9
1. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3113 col:14
2. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3174 col:30
3. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3146 col:36
4. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3087 col:17
5. Function: 'FutureImpl._setValue@924b4b8' url: 'bootstrap_impl' line:3101 col:14
6. Function: 'CompleterImpl.complete' url: 'bootstrap_impl' line:3170 col:26
7. Function: '::_initDb@2d796a66' url: 'http://127.0.0.1:3030/Users/sethladd/dart/idb-dartium/idbDartium.dart' line:54 col:23
8. Function: '::function' url: 'http://127.0.0.1:3030/Users/sethladd/dart/idb-dartium/idbDartium.dart' line:27 col:12
9. Function: 'EventListenerListImplementation.function' url: '/Volumes/data/b/build/slave/dartium-mac-full/build/src/dart/lib/dom/src/native_EventsImplementation.dart' line:94 col:35
Exception: Error: TRANSACTION_INACTIVE_ERR: DOM IDBDatabase Exception 7
Stack Trace: 0. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3091 col:9
1. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3113 col:14
2. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3174 col:30
3. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3146 col:36
4. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3087 col:17
5. Function: 'FutureImpl._setValue@924b4b8' url: 'bootstrap_impl' line:3101 col:14
6. Function: 'CompleterImpl.complete' url: 'bootstrap_impl' line:3170 col:26
7. Function: '::_initDb@2d796a66' url: 'http://127.0.0.1:3030/Users/sethladd/dart/idb-dartium/idbDartium.dart' line:54 col:23
8. Function: '::function' url: 'http://127.0.0.1:3030/Users/sethladd/dart/idb-dartium/idbDartium.dart' line:27 col:12
9. Function: 'EventListenerListImplementation.function' url: '/Volumes/data/b/build/slave/dartium-mac-full/build/src/dart/lib/dom/src/native_EventsImplementation.dart' line:94 col:35
Attachments:
idbDartium.html (420 Bytes)
idbDartium.dart (3.67 KB)
idbDartium.dart.js_ (123.01 KB)
The text was updated successfully, but these errors were encountered: