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

I seem to be getting constant re-loads on Android #1

Open
adamgins opened this issue Jul 27, 2015 · 7 comments
Open

I seem to be getting constant re-loads on Android #1

adamgins opened this issue Jul 27, 2015 · 7 comments

Comments

@adamgins
Copy link

Thanks for this package. It looks like this is the stuff that would be part of Meteor 1.2 core. looking forward to that.

Anyway, I am having some issues debugging where the issue is, so apologies about the vagueness of this request.

On iOS my app seems to work fine. On Android, it's another matter, something seems to getting it to reload all the time. I need some help, please, to debug this.

As a side issue, I can't seem to get chrome://remote to work to try and debug this and get more valid info for this request:
image

Any help appreciated

@adamgins adamgins changed the title I seem to be getting constant re-loads on chrome I seem to be getting constant re-loads on Android Jul 27, 2015
@dnish
Copy link

dnish commented Sep 17, 2015

Yep, the same here, plugin is not working on Android with Cordova - after a HCP, it reloads the whole time.

@jaskinn
Copy link

jaskinn commented Sep 21, 2015

I experience this situation on both iOS and Android

@udiedrichsen
Copy link

I got also with warning after add this packages to my meteor project:
cp: dest file already exists: .meteor/local/cordova-build/plugins/com.meteor.cordova-update/plugin.xml

skipping existing file: Asset.java
skipping existing file: AssetUriRemapper.java
skipping existing file: CordovaUpdatePlugin.java
skipping existing file: FilesystemUriRemapper.java
skipping existing file: UriRemapper.java
skipping existing file: Utils.java
skipping existing file: CordovaUpdate.m
skipping existing file: METEORCordovaURLProtocol.h
skipping existing file: METEORCordovaURLProtocol.m
skipping existing file: index.html
skipping existing file: index.html
skipping existing file: CordovaUpdate.js
=> Started your app.

=> App running at: http://localhost:3000/

@timbotnik
Copy link
Contributor

Just published an updated version, and should fix these issues. Let me know if others are still having problems. New version is compatible with Meteor 1.2.

@dnish
Copy link

dnish commented Nov 17, 2015

@timbotnik Yeah, the reload problem was fixed :). But I've got a broken app version on my device (while using the dev machine). I only see a white screen, before the app didn't show any image assets. After restarting it, I only get a blank page. Seems like the plugin doesn't fix all broken HCPs?

@timbotnik
Copy link
Contributor

@dnish - thanks for the update. Yes there are definitely certain types of things that can slip past safe-reload, such as routing errors, broken templates, etc. In those cases at least autoupdate should be functioning (Hot Code Reload) so if you deploy a new version it should be able to recover. Perhaps if you have an example of a case where it is not able to perform Hot Code Reload, that would be interesting to look at.

@dnish
Copy link

dnish commented Nov 19, 2015

@timbotnik Mhhh can't reproduce it exactly, it happens just sometimes. Just got the following message in my console:

20151119-13:10:57.675(1) (android:http://meteor.local/packages/ddp-client.js:1181) Uncaught Error: INVALID_STATE_ERR

If I remember correct, I've killed the app while I did a change on my local dev machine. Maybe the interruption of this update causes the error?

//Edit
It happened again, here another output:

=> Client modified -- refreshing (x7)I20151119-14:14:56.553(1) (android:http://meteor.local/packages/meteor.js:906) Clock discrepancy detected. Attempting re-sync.
I20151119-14:15:01.016(1) (android:http://meteor.local/app/client/templates/dashboard/pages/followers/template.followers.js:1) Uncaught SyntaxError: Unexpected token <
I20151119-14:15:01.261(1) (android:http://meteor.local/app/client/templates/dashboard/pages/followers/followers.js:1) Uncaught SyntaxError: Unexpected token <
I20151119-14:15:04.980(1) (android:http://meteor.local/packages/blaze.js:3155) Uncaught Error: No such template: followers
I20151119-14:15:05.015(1) (android:http://meteor.local/packages/dispatch_kernel.js:336) Uncaught Error: Can't call View#autorun from a Tracker Computation; try calling it from the created or rendered callback
I20151119-14:15:05.022(1) (android:http://meteor.local/packages/dispatch_kernel.js:336) Uncaught Error: Can't call View#autorun from a Tracker Computation; try calling it from the created or rendered callback
I20151119-14:15:05.028(1) (android:http://meteor.local/packages/dispatch_kernel.js:336) Uncaught Error: Can't call View#autorun from a Tracker Computation; try calling it from the created or rendered callback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants