the dart2js compiled version of my app sometimes throws on startup: NoSuchMethodError : method not found: 'Symbol("[]")' Receiver: Instance of 'UnknownJavaScriptObject' #15193
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-obsolete
Closed as the reported issue is no longer relevant
library-js
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
This issue was originally filed by ross.dart...@gmail.com
r30437
Windows 7x64
The dart2js compiled version of my application throws the following error sometimes on startup:
NoSuchMethodError : method not found: 'Symbol("[]")'
Receiver: Instance of 'UnknownJavaScriptObject'
Arguments: ["isFile"]
The call stack where this happens is for an interop call using
dart:js
to the Chrome API methodrestoreEntry(id)
to restore a file entry. So I am not 100% sure where the bug lies, whether with dart2js, dart:js, or Chrome. However, the Dartium (vm) version of my application does not experience this issue, so I suspect dart2js is involved somehow.The strange thing is that this only seems to happen if I launch the application 'quickly' after closing a previous session. If I twiddle my thumbs for a minute or two and then relaunch, the issue goes away and the application launches without issue. Chrome apps have a notion of a 'background script' that is possibly coming into play here, as I think it hangs around for a short while after the application windows close, before it is suspended.
Please let me know if there are any other details I can provide here. Thanks to zones, I am able to catch this and not crash, but the user doesn't get to restore any of their previous session, so it is not a very good situation. I thought I was maybe going crazy until I stumbled upon these guys seeing the same issue here:
googlearchive/chromedeveditor#215 (comment)
thanks :)
The text was updated successfully, but these errors were encountered: