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

Polymer app silently reloads without any error log or exception. #20228

Closed
DartBot opened this issue Jul 27, 2014 · 5 comments
Closed

Polymer app silently reloads without any error log or exception. #20228

DartBot opened this issue Jul 27, 2014 · 5 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.

Comments

@DartBot
Copy link

DartBot commented Jul 27, 2014

This issue was originally filed by @giry


What steps will reproduce the problem?
One of my projects works well with polymer 0.9.5 package but when I upgrade to 0.11.0+5 app started to reload after particular action (more precisely: after creation of second WebSocket connection - that is probably unimportant). Here is stacktrace of last place where I can put breakpoint:
MapServers.onGameInitResp() <-- last place im my code
_RootZone.runUnaryGuarded()
_BufferingStreamSubscription._sendData()
_DelayedData.perform()
_StreamImplEvents.handleNext()
_PendingEvents.<anonymous closure>()
_asyncRunCallbackLoop()
_asyncRunCallback()
_ScheduleImmediateHelper._handleMutation()

I can just use debugger and go step by step to _ScheduleImmediateHelper._handleMutation() and after it page just reloads.

When I set "Break on exceptions: all" in DartEditor settings - nothing happens - page still just silently reloads. When I select also "break on JavaScript exceptions" app stops in platform.concat.js on line 899 before app appears on screen (with SyntaxError):

  var hasDebugForceFullDelivery = hasObserve && (function() {
    try {
      eval('%RunMicrotasks()'); <--- here
      return true;
    } catch (ex) {
      return false;
    }
  })();

I can catch exception in platform.concat.js also in any other polymer app that I have in workspace (also sample polymer app created by File->New Project) so I guess this might be normal behaviour.
 

What version of the product are you using?
Dart Editor version 1.6.0.dev_04_00 (DEV)
Dart SDK version 1.6.0-dev.4.0
polymer 0.11.0+5

On what operating system?
Windows 8.1

What browser (if applicable)?
Dartium 36.0.1985.97 (282401)

@sethladd
Copy link
Contributor

Added Pkg-Polymer, Area-Pkg, Triaged labels.

@sigmundch
Copy link
Member

Thanks for the bug report.

Yeah - the exception from platform is normal, so you can safely ignore it.

It might be an issue that is very specific to your application, so it's hard to guess. Could you include a code example for us? We basically need a small example (it could be a single file) that we can run to reproduce the problem here.
 
Thanks!


Removed Priority-Unassigned label.
Added Priority-Medium, PolymerMilestone-Next, NeedsInfo labels.

@DartBot
Copy link
Author

DartBot commented Jul 31, 2014

This comment was originally written by @giry


I find out that the issue was caused by https://code.google.com/p/dart/issues/detail?id=20034

@jakemac53
Copy link
Contributor

Closing this then in preference of Polymer/polymer#672. You can use the _href="{{'#'}}" hack to work around this for now.


Added MovedToGithub label.

@DartBot DartBot added Type-Defect area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. labels Aug 7, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/polymer-dart#250.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.
Projects
None yet
Development

No branches or pull requests

4 participants