Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

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

Closed
DartBot opened this issue Jun 5, 2015 · 4 comments
Closed

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

DartBot opened this issue Jun 5, 2015 · 4 comments

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

Originally opened as dart-lang/sdk#20228

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)

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/5479?v=3" align="left" width="48" height="48"hspace="10"> Comment by sethladd


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

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2049220?v=3" align="left" width="48" height="48"hspace="10"> Comment by sigmundch


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 Jun 5, 2015

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

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/984921?v=3" align="left" width="48" height="48"hspace="10"> Comment by jakemac53


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


Added MovedToGithub label.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant