-
Notifications
You must be signed in to change notification settings - Fork 248
0.11 crashes after a few route changes #973
Comments
You are hitting internal consistency check. This error means that our internal book keeping has gone out of sync and we got confused. This is definitely an error in angular. I would like to get to the bottom of this, but I need to be able to reproduce the error locally. Any way I can get a hold of your source code or could you create a minimal repro case? |
Did you receive my email with the sourcecode? BTW: I just upgraded my branch to 0.11 and the error is still there. But the filesize of the compiled JS reduced to 900kb which is nice ;-) |
I have worked around the problem by not using scope.watch. To work around the problem, I forked angular and disabled the cleanup check . See: https://github.com/orchit/angular.dart/commit/09c4226f66855550ecb25092fe8104486786e2ac In that process I noticed that the scope.watch doesn't work anymore (at least the way I use it). This is one of the problematic directives:
|
Do you have the code that triggers the issue available somewhere ? |
The code needs the corresponding php code on the same server+DB etc. so that's not really feasable. Or are you only interested in parts of it? As I wrote I could pinpoint the problem to the scope.watch expression. I have a angular dart controller (defined even in the same file) which is exported as permissionsCtrl. It has a list of strings "allowedItems" which should be monitored by the scope.watch. |
The easiest to work with would be small repro that triggers the issue. Do you think it would be possible to mock the server ? |
I tried to create a stripped down version quickly, but looks like I'm missing something important. I'll try later this week. I don't have a lot of time for that right now. I hope to prepare something before Saturday. |
@pcornelissen no pb, take your time (thanks for working on the repro). |
BTW: I only see these crashes when I start dartium in checked mode |
This is because the code is wrapped in an assert |
I have created a stripped down version of the app and replaced all http calls with static data. to see the bug in action, start chromium in checked mode and just switch views via the menu on the left side. |
Sorry, I forgot to push the commit where I strippes the stuff down. Now it's much less code with the same bugs ;) |
Is this bug still in the latest release ? (0.14) |
I can have a look on monday, when I'm back in the office. 2014-08-29 18:12 GMT+02:00 Victor Berchet [email protected]:
Mit freundlichen Grüßen, |
yes, please let us know |
OK, I can't update right now, as the libs I use, currently especially 2014-09-01 9:18 GMT+02:00 Victor Berchet [email protected]:
Mit freundlichen Grüßen, |
@pcornelissen Then I'll close this issue for now. Feel free to re-open if it still does not work once you've updated. |
Hi!
My upgrade went to 0.10 went so far that I can start the app in dartium.
When I click on a few menu items, the app crashes and is dead.
It doesn't matter on which page I am, the error occures on all of them after a few clicks.
This is the log output:
pubspec dependencies: (with most recent versions, if not pinned)
The text was updated successfully, but these errors were encountered: