问题
I wasn't able to find anything helpful through google, so: My Dart webapplication worked perfectly. Next time I opened Darteditor and (without changing anything) ran it again, Darteditor showed the Error
Breaking on exception: Strict get failed, invalid object.
This Error doesn't always show up and even when it does, the App still functions. Darteditor doesn't give me any hit where that Error occurs, because the debugger claims some source not to be available.
Does anyone know why/when this Error occurrs and what to do to fix it?
EDIT 1: As suggested in comments:
- updating Darteditor
pub cache repair
pub upgrade
Did not work
EDIT 2: A Day after I tried the things mentioned in EDIT 1. Thus also after I rebooted the PC. At the moment, the Error doesn't appear anymore. I tried restarting the Darteditor after each try in EDIT 1 but nothing changed. Now...some of the things in EDIT 1 seem to have taken effect only after rebooting the PC. Not sure which of those though - am I supposed to answer my own question mentioning all 3 options from EDIT 1 or what should I do?
EDIT 3: (Sorry for all the edits) I changed some code now and the Error is back here again... Sometimes it goes away, but not with a obvious reason like a specific line of code added/removed. Right now, ther is an additional line by the Error:
Application Cache NoUpdate event (https://www.google.ch/xjs/_/js/k=xjs.ntp.en_US.mqcA3JMW-QU.O/m=jsa,ntp,pcc,csi/rt=j/d=1/t=zcms/rs=AItRSTO3mHFV3hPPmf2KYlzqp_GC2s-5GQ:119) Breaking on exception: Strict get failed, invalid object.
回答1:
I get the same error message when I click the back button in Dartium, or when I use the backspace key and the focus is not in an editable field (which triggers the back button). I think it's either a bug in Dart or Dartium. – Damien Aug 21 at 14:00
Interesting: When I pressed the back button in dartium, the error did show up, but after this, it said something about application cache (about 5 lines of text) and now I cannot reproduce the "strict get failed" Error message – lucidbrot yesterday
pressing the back button in dartium, which I never did before, seemed to help in my case. Updating Darteditor again after this didn't change anything - the strict get error disappeared.
I won't accept this answer until somebody comments that it worked for him too, but I guess it is better to view here than as a comment to my question.
来源:https://stackoverflow.com/questions/25182118/breaking-on-exception-strict-get-failed-invalid-object-dart