Skip to content
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

IndexedDB IDBRequestImplementation.get:result is not implemented #2188

Closed
sethladd opened this issue Mar 15, 2012 · 5 comments
Closed

IndexedDB IDBRequestImplementation.get:result is not implemented #2188

sethladd opened this issue Mar 15, 2012 · 5 comments

Comments

@sethladd
Copy link
Contributor

This code:

    dom.IDBRequest request = dom.window.webkitIndexedDB.open(dbName);
    print('requested open');
    request.addEventListener('success', (e) {
      print('success');
      _db = e.target.result;
      _initDb(completer);
    });

will fail on the e.target.result line in Dartium 19.0.1068.0 (Developer Build 126348 Mac OS X) with error:

Exception: NotImplementedException
Stack Trace: 0. Function: 'IDBRequestImplementation.get:result' url: '/b/build/slave/dartium-mac-full/build/src/xcodebuild/DerivedSources/Release/webkit/bindings/dart/dart/IDBRequestImplementation.dart' line:18 col:3
 1. Function: 'IndexedDbAdapter.function' url: 'http://localhost:8094/dart/lawndart/lib/indexeddb-adapter.dart' line:31 col:28

@sethladd
Copy link
Contributor Author

Changed the title to: "IndexedDB IDBRequestImplementation.get:result is not implemented".

@DartBot
Copy link

DartBot commented Mar 16, 2012

This comment was originally written by [email protected]


Set owner to [email protected].

@DartBot
Copy link

DartBot commented Mar 16, 2012

This comment was originally written by [email protected]


Seth, may you provide the full repro with required setup, please?

@sethladd
Copy link
Contributor Author

No problem. Clone this repo: https://github.com/sethladd/lawndart

and load up testing/test.html into Dartium.

Hope that helps!

@DartBot
Copy link

DartBot commented Mar 20, 2012

This comment was originally written by [email protected]


Thanks a lot, Seth.

I hope I fixed this problem. Now when I load test.html I can see the following output:

Testing Lawndart

Database opened
Nuked!

However, there is another exception in console:

requested open undefined:1
success undefined:1
upgrading to 1 undefined:1
Database opened undefined:1
Nuked! undefined:1
2Exception: Invalid class: expected instance of IDBKeyImplementation
Stack Trace: 0. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3097 col:9
 1. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3119 col:14
 2. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3180 col:30
 3. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3144 col:34
 4. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3085 col:20
 5. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3119 col:14
 6. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3180 col:30
 7. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3144 col:34
 8. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3085 col:20
 9. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3119 col:14
 10. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3180 col:30
 11. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3144 col:34
 12. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3085 col:20
 13. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3119 col:14
 14. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3180 col:30
 15. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3144 col:34
 16. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3085 col:20
 17. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3119 col:14
 18. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3180 col:30
 19. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3144 col:34
 20. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3085 col:20
 21. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3119 col:14
 22. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3180 col:30
 23. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3144 col:34
 24. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3085 col:20
 25. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3119 col:14
 26. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3180 col:30
 27. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3144 col:34
 28. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3085 col:20
 29. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3119 col:14
 30. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3180 col:30
 31. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3144 col:34
 32. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3085 col:20
 33. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3119 col:14
 34. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3180 col:30
 35. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3144 col:34
 36. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3085 col:20
 37. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3119 col:14
 38. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3180 col:30
 39. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3144 col:34
 40. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3085 col:20
 41. Function: 'FutureImpl._setException@924b4b8' url: 'bootstrap_impl' line:3119 col:14
 42. Function: 'CompleterImpl.completeException' url: 'bootstrap_impl' line:3180 col:30
 43. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3152 col:36
 44. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3093 col:17
 45. Function: 'FutureImpl._setValue@924b4b8' url: 'bootstrap_impl' line:3107 col:14
 46. Function: 'CompleterImpl.complete' url: 'bootstrap_impl' line:3176 col:26
 47. Function: 'FutureImpl.function' url: 'bootstrap_impl' line:3159 col:44
 48. Function: 'FutureImpl._complete@924b4b8' url: 'bootstrap_impl' line:3093 col:17
 49. Function: 'FutureImpl._setValue@924b4b8' url: 'bootstrap_impl' line:3107 col:14
 50. Function: 'CompleterImpl.complete' url: 'bootstrap_impl' line:3176 col:26
 51. Function: 'IndexedDbAdapter.function' url: 'file:///home/antonm/lawndart/lib/indexeddb-adapter.dart' line:130 col:71
 FIXME:1

Do you think it's a problem in Dartium or in your code?

And if you think that original issue has been fixed, please, mark as such.


Added Fixed label.

copybara-service bot pushed a commit that referenced this issue Aug 14, 2023
Revisions updated by `dart tools/rev_sdk_deps.dart`.

lints (https://github.com/dart-lang/lints/compare/1e0245e..54cd7a0):
  54cd7a0  2023-08-11  Parker Lougheed  Cleanup docs and links (#142)

protobuf (https://github.com/dart-lang/protobuf/compare/217c030..a852ba4):
  a852ba4  2023-08-14  Ömer Sinan Ağacan  Release protobuf-3.1.0, protoc_plugin-21.1.0 (#868)
  8505c58  2023-08-14  Ömer Sinan Ağacan  Generate constructor arguments again, add a flag to disable (#855)

test (https://github.com/dart-lang/test/compare/9b1828f..bc0a992):
  bc0a992d  2023-08-11  Nate Bosch  Remove always null observatoryUrl for browsers (#2079)

webdev (https://github.com/dart-lang/webdev/compare/f8f752c..19aad27):
  19aad27b  2023-08-11  Elliott Brooks  Reset DWDS to version 20.0.2-wip after release (#2193)
  20cc6d3d  2023-08-10  Elliott Brooks  Prepare DWDS for release to version 20.0.1 (#2192)
  9e352670  2023-08-10  Elliott Brooks  Prepare DWDS for release to version 20.0.0 (#2191)
  bc008840  2023-08-10  Bernardo Ferrari  Update `file` dependency. (#2185)
  afbd6401  2023-08-10  Elliott Brooks  Re-enable events_test with fix (#2189)
  1f1efa35  2023-08-10  Elliott Brooks  Fix Flutter crash by catching WipError on resume and mapping to RPC error (#2188)

Change-Id: I159fc1b35b60bab9909f287a9c9f85b624993fb0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/320640
Commit-Queue: Konstantin Shcheglov <[email protected]>
Auto-Submit: Devon Carew <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants