Closed zoechi closed 8 years ago
I could narrow down a bit. It seems I only get this exception for some Google API components in
https://github.com/bwu-dart/polymer_elements_demos/tree/update_2015-11-01
when I load web/index.html
and select one of the following demos:
I run into this _badUpgrade
today when an event handler Listen('theme-changed') myHandler(_, __){ throw 'xxx'; }
failed with an exception.
This is definitely a weird one, looks like it happens when you create a new element dynamically in code and then the upgrader fails.
It doesn't fail on the initial creation either, just subsequent ones?
cc @terrylucas since this looks like its happening inside the vm upgrader
So really what is happening here is an error is being thrown during the construction of the element, and the error is just being hidden by the separate error in dartium.
I tracked it down to a bad splices
change notification, which has a null indexSplices
property. I can't actually repro this outside of these couple elements, definitely going to need further investigation.
bleeding edge in Dartium has the fix to return the real error.
@zoechi can you confirm that this is now giving you a better error at least?
Yup, proper stacktrace :+1:
Ok, I am going to close this one then, and you can open a new issue for the actual error? Or maybe link it here if already filed :)
I also see that exception in stable 1.13.0.0 dartium. Any advice how to make it work?
Since the update I repeatedly get