Meteor 1.3 Android Emulator

I can’t get the emulator to run. Never had an issue in 1.2.1

I use

meteor run android --mobile-server http://10.0.1.11:3000

-29 12:41:30.326 6734 6734 I chromium: [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
I20160329-12:41:32.483(-7)? 03-29 12:41:30.347 6734 6734 W chromium: [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
I20160329-12:41:32.483(-7)? 03-29 12:41:30.533 6734 6758 W chromium: [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
I20160329-12:41:32.484(-7)? 03-29 12:41:30.709 6734 6734 I MeteorWebApp: Serving asset bundle with version: 10581b7aceb7f671b5f5d2e55056eca44d5878cc
I20160329-12:41:37.316(-7)? 03-29 12:41:36.342 6734 6734 I chromium: [INFO:CONSOLE(1185)] “deviceready has not fired after 5 seconds.”, source: http://localhost:12088/cordova.js (1185)
I20160329-12:41:37.320(-7)? 03-29 12:41:36.346 6734 6734 I chromium: [INFO:CONSOLE(1178)] “Channel not fired: onDOMContentLoaded”, source: http://localhost:12088/cordova.js (1178)
I20160329-12:41:38.920(-7)? 03-29 12:41:37.945 6734 6734 I chromium: [INFO:CONSOLE(0)] “XMLHttpRequest cannot load http://10.0.1.11:3000/_timesync. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:12088’ is therefore not allowed access.”, source: http://localhost:12088/ (0)
I20160329-12:41:38.968(-7)? 03-29 12:41:37.957 6734 6734 I chromium: [INFO:CONSOLE(943)] "Error syncing to server time: ", source: http://localhost:12088/packages/meteor.js?hash=1742ab28bef8d6a8d6931da61d6953fddf9ff7da (943)
I20160329-12:41:40.000(-7)? 03-29 12:41:39.025 6734 6734 I chromium: [INFO:CONSOLE(0)] “XMLHttpRequest cannot load http://10.0.1.11:3000/_timesync. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:12088’ is therefore not allowed access.”, source: http://localhost:12088/ (0)
I20160329-12:41:40.003(-7)? 03-29 12:41:39.028 6734 6734 I chromium: [INFO:CONSOLE(943)] "Error syncing to server time: ", source: http://localhost:12088/packages/meteor.js?hash=1742ab28bef8d6a8d6931da61d6953fddf9ff7da (943)
I20160329-12:41:41.216(-7)? 03-29 12:41:40.082 6734 6734 I chromium: [INFO:CONSOLE(0)] “XMLHttpRequest cannot load http://10.0.1.11:3000/_timesync. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:12088’ is therefore not allowed access.”, source: http://localhost:12088/ (0)
I20160329-12:41:41.218(-7)? 03-29 12:41:40.083 6734 6734 I chromium: [INFO:CONSOLE(943)] "Error syncing to server time: ", source: http://localhost:12088/packages/meteor.js?hash=1742ab28bef8d6a8d6931da61d6953fddf9ff7da (943)
I20160329-12:41:42.086(-7)? 03-29 12:41:41.107 6734 6734 I chromium: [INFO:CONSOLE(0)] “XMLHttpRequest cannot load http://10.0.1.11:3000/_timesync. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:12088’ is therefore not allowed access.”, source: http://localhost:12088/ (0)
I20160329-12:41:42.088(-7)? 03-29 12:41:41.108 6734 6734 I chromium: [INFO:CONSOLE(943)] "Error syncing to server time: ", source: http://localhost:12088/packages/meteor.js?hash=1742ab28bef8d6a8d6931da61d6953fddf9ff7da (943)
I20160329-12:41:43.106(-7)? 03-29 12:41:42.132 6734 6734 I chromium: [INFO:CONSOLE(0)] “XMLHttpRequest cannot load http://10.0.1.11:3000/_timesync. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:12088’ is therefore not allowed access.”, source: http://localhost:12088/ (0)
I20160329-12:41:43.108(-7)? 03-29 12:41:42.132 6734 6734 I chromium: [INFO:CONSOLE(943)] "Error syncing to server time: ", source: http://localhost:12088/packages/meteor.js?hash=1742ab28bef8d6a8d6931da61d6953fddf9ff7da (943)
I20160329-12:41:44.134(-7)? 03-29 12:41:43.160 6734 6734 I chromium: [INFO:CONSOLE(0)] “XMLHttpRequest cannot load http://10.0.1.11:3000/_timesync. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:12088’ is therefore not allowed access.”, source: http://localhost:12088/ (0)
I20160329-12:41:44.137(-7)? 03-29 12:41:43.163 6734 6734 I chromium: [INFO:CONSOLE(943)] "Error syncing to server time: ", source: http://localhost:12088/packages/meteor.js?hash=1742ab28bef8d6a8d6931da61d6953fddf9ff7da (943)
I20160329-12:41:44.320(-7)? 03-29 12:41:43.165 6734 6734 I chromium: [INFO:CONSOLE(941)] “Max number of time sync attempts reached. Giving up.”, source: http://localhost:12088/packages/meteor.js?hash=1742ab28bef8d6a8d6931da61d6953fddf9ff7da (941)
I20160329-12:41:51.692(-7)? 03-29 12:41:50.718 6734 6776 W MeteorWebApp: App startup timed out, reverting to last known good version
I20160329-12:42:12.724(-7)? 03-29 12:42:11.750 6734 6734 I chromium: [INFO:CONSOLE(509)] “There is no route for the path:”, source: http://localhost:12088/packages/kadira_flow-router.js?hash=513a41824fc68b9fc2a72f714f2de5765bce9eda (509)
I20160329-12:42:39.893(-7)? 03-29 12:42:38.919 6734 6775 E chromium: [ERROR:gles2_cmd_decoder.cc(2009)] [GroupMarkerNotSet(crbug.com/242999)!:7CB82FA2]GL ERROR :GL_INVALID_OPERATION : BackFramebuffer::Destroy: <- error from previous GL command
I20160329-12:42:39.925(-7)? 03-29 12:42:38.951 6734 6775 E chromium: [ERROR:gles2_cmd_decoder.cc(2009)] [GroupMarkerNotSet(crbug.com/242999)!:7CB02FA2]GL ERROR :GL_INVALID_OPERATION : BackFramebuffer::Destroy: <- error from previous GL command

This looks like an issue with mizzao:timesync, see https://github.com/meteor/meteor/issues/6605.

1 Like

So I fixed that bug now I have this one

=> Started app on Android Emulator.
I20160329-21:01:41.645(-7)? 03-29 18:09:45.557 4560 4560 I chromium: [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
I20160329-21:01:41.938(-7)? 03-29 18:09:45.579 4560 4560 W chromium: [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
I20160329-21:01:41.938(-7)? 03-29 18:09:45.803 4560 4584 W chromium: [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
I20160329-21:01:41.939(-7)? 03-29 18:09:45.994 4560 4560 I MeteorWebApp: Serving asset bundle with version: 37e2ad894f47fc0047c93e0187c33476fe1c1d07
I20160329-21:01:47.071(-7)? 03-29 18:09:51.579 4560 4560 I chromium: [INFO:CONSOLE(1185)] “deviceready has not fired after 5 seconds.”, source: http://localhost:12088/cordova.js (1185)
I20160329-21:01:47.072(-7)? 03-29 18:09:51.581 4560 4560 I chromium: [INFO:CONSOLE(1178)] “Channel not fired: onDOMContentLoaded”, source: http://localhost:12088/cordova.js (1178)
I20160329-21:02:00.994(-7)? 03-29 18:10:06.026 4560 4602 W MeteorWebApp: App startup timed out, reverting to last known good version
I20160329-21:03:01.550(-7)? 03-29 18:11:06.585 4560 4560 I chromium: [INFO:CONSOLE(509)] “There is no route for the path:”, source: http://localhost:12088/packages/kadira_flow-router.js?hash=513a41824fc68b9fc2a72f714f2de5765bce9eda (509)

Any clues?

Thanks

It seems app startup is taking longer than 20 seconds, so that explains the ‘App startup timed out, reverting to last known good version’ message.

You could try putting this in your mobile-config.js to increase the timeout:

App.setPreference("WebAppStartupTimeout", 60);

See this section of the mobile guide for more information.

I’m not sure that is your main issue however. There is also a flow router error message.

Have you tried remote debugging in Chrome and looking at the console output there? See the documentation linked to in the mobile guide.

I tried the Startup time fix but still get the same output. I don’t have any flow router issues with meteor 1.2.1 and the emulator. All this is 1.3 issues. The emulator keeps saying it can’t find http://localhost:12088 but I’m running on port 3000

Where does the emulator say it can’t find http://localhost:12088? That is the address of the local server, similar to http://meteor.local in Meteor 1.2.

Any more information using remote debugging?

When the app loads on the emulator it shows a popup saying it can’t connect while the splash screen is displayed

=> App running at: http://localhost:3000/
=> Started app on Android Emulator.
I20160329-22:39:40.482(-7)? 03-29 22:39:36.689 2996 2996 I chromium: [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
I20160329-22:39:40.558(-7)? 03-29 22:39:37.010 2996 2996 W chromium: [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
I20160329-22:39:40.558(-7)? 03-29 22:39:38.028 2996 3020 W chromium: [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
I20160329-22:39:40.621(-7)? 03-29 22:39:39.145 2996 2996 I MeteorWebApp: Serving asset bundle with version: 37e2ad894f47fc0047c93e0187c33476fe1c1d07
I20160329-22:39:40.693(-7)? 03-29 22:39:39.227 2996 3039 W MeteorWebApp: App startup timed out, reverting to last known good version
I20160329-22:39:46.875(-7)? 03-29 22:39:44.670 2996 2996 I chromium: [INFO:CONSOLE(1185)] “deviceready has not fired after 5 seconds.”, source: http://localhost:12088/cordova.js (1185)
I20160329-22:39:46.877(-7)? 03-29 22:39:44.670 2996 2996 I chromium: [INFO:CONSOLE(1178)] “Channel not fired: onDOMContentLoaded”, source: http://localhost:12088/cordova.js (1178)
I20160329-22:40:01.629(-7)? 03-29 22:40:00.162 2996 3040 E chromium: [ERROR:gles2_cmd_decoder.cc(2009)] [GroupMarkerNotSet(crbug.com/242999)!:7CC89FA1]GL ERROR :GL_INVALID_OPERATION : BackFramebuffer::Destroy: <- error from previous GL command
I20160329-22:40:01.659(-7)? 03-29 22:40:00.193 2996 3040 E chromium: [ERROR:gles2_cmd_decoder.cc(2009)] [GroupMarkerNotSet(crbug.com/242999)!:7CC09FA1]GL ERROR :GL_INVALID_OPERATION : BackFramebuffer::Destroy: <- error from previous GL command

That is weird, because the log output shows it has at least loaded http://localhost:12088/cordova.js.

Could you try running with --verbose to get additional log output?

=> App running at: http://localhost:3000/
UP-TO-DATE app on Android Emulator |
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
UP-TO-DATE app on Android Emulator |
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:compileDebugAidl UP-TO-DATE
UP-TO-DATE app on Android Emulator /
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
UP-TO-DATE app on Android Emulator /
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedDebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
UP-TO-DATE app on Android Emulator /
:generateDebugBuildConfig UP-TO-DATE
:generateDebugAssets UP-TO-DATE
UP-TO-DATE app on Android Emulator -
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
UP-TO-DATE app on Android Emulator -
:processDebugManifest UP-TO-DATE
UP-TO-DATE app on Android Emulator -
:generateDebugSources UP-TO-DATE
UP-TO-DATE app on Android Emulator -
:compileDebugNdk UP-TO-DATE
:compileDebugSources UP-TO-DATE
:transformClassesWithDexForDebug UP-TO-DATE
UP-TO-DATE app on Android Emulator \
:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:validateDebugSigning
:packageDebug UP-TO-DATE
UP-TO-DATE app on Android Emulator \
:assembleDebug UP-TO-DATE
:cdvBuildDebug UP-TO-DATE

BUILD SUCCESSFUL

Total time: 8.491 secs
Built the following apk(s): mulator /
/Users/reynaldoreyna/Documents/Development/Meteor/theRxBoard/.meteor/local/cordova-build/platforms/android/build/outputs/apk/android-debug.apk
Using apk: /Users/reynaldoreyna/Documents/Development/Meteor/theRxBoard/.meteor/local/cordova-build/platforms/android/build/outputs/apk/android-debug.apk
INSTALL SUCCESS on Android Emulator |
LAUNCH SUCCESSp on Android Emulator
Tailing logs for Android Emulator
=> Started app on Android Emulator.
I20160329-23:01:00.215(-7)? 03-29 22:48:00.273 5039 5039 I chromium: [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
I20160329-23:01:00.293(-7)? 03-29 22:48:00.296 5039 5039 W chromium: [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
I20160329-23:01:00.294(-7)? 03-29 22:48:00.490 5039 5063 W chromium: [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
I20160329-23:01:00.294(-7)? 03-29 22:48:00.679 5039 5039 I MeteorWebApp: Serving asset bundle with version: 37e2ad894f47fc0047c93e0187c33476fe1c1d07
I20160329-23:01:00.294(-7)? 03-29 22:48:00.754 5039 5080 W MeteorWebApp: App startup timed out, reverting to last known good version
I20160329-23:01:05.594(-7)? 03-29 22:48:06.409 5039 5039 I chromium: [INFO:CONSOLE(1185)] “deviceready has not fired after 5 seconds.”, source: http://localhost:12088/cordova.js (1185)
I20160329-23:01:05.596(-7)? 03-29 22:48:06.409 5039 5039 I chromium: [INFO:CONSOLE(1178)] “Channel not fired: onDOMContentLoaded”, source: http://localhost:12088/cordova.js (1178)
I20160329-23:01:22.312(-7)? 03-29 22:48:23.413 5039 5079 E chromium: [ERROR:gles2_cmd_decoder.cc(2009)] [GroupMarkerNotSet(crbug.com/242999)!:7CD07BA1]GL ERROR :GL_INVALID_OPERATION : BackFramebuffer::Destroy: <- error from previous GL command
I20160329-23:01:22.324(-7)? 03-29 22:48:23.425 5039 5079 E chromium: [ERROR:gles2_cmd_decoder.cc(2009)] [GroupMarkerNotSet(crbug.com/242999)!:7CF8A7A1]GL ERROR :GL_INVALID_OPERATION : BackFramebuffer::Destroy: <- error from previous GL command

Hmmm, nothing new there it seems. I do notice I’ve made a mistake in my suggestion to change the startup timeout. That value is in milliseconds, not seconds, so 60s should be:

App.setPreference("WebAppStartupTimeout", 60000);

I don’t think that will make a difference in solving your issue however.

Have you tried running on a device to see if that works?

Same error on a device, it keeps trying to go to localhost:12088

So I figured out the file loading problem, a folder I had started with an _ and Cordova doesn’t like that. I still get the couldn’t’ connect warning message but if I let it wait it loads the app in the background. The Chrome debug tool lets me interact with the app. It’s just that damn alert that messes everything up.

Can you see anything on the network tab of the debug tool? Curious to see where the error comes from if it is still able to load the app. You could also try location.reload() to see if the same problems occurs on a reload.

This is what I get on my meteor console

I20160330-14:42:22.782(-7)? I/chromium(15127): [INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, default verbosity = 0

I20160330-14:42:22.861(-7)? W/chromium(15127): [WARNING:resource_bundle.cc(304)] locale_file_path.empty()

I20160330-14:42:22.861(-7)? I/chromium(15127): [INFO:aw_browser_main_parts.cc(63)] Load from apk succesful, fd=44 off=62340 len=3333

I20160330-14:42:22.861(-7)? I/chromium(15127): [INFO:aw_browser_main_parts.cc(76)] Loading webviewchromium.pak from, fd:45 off:257776 len:5373509

I20160330-14:42:22.864(-7)? W/chromium(15127): [WARNING:data_reduction_proxy_settings.cc(334)] SPDY proxy OFF at startup

I20160330-14:42:22.864(-7)? I/MeteorWebApp(15127): Serving asset bundle with version: 1bacfe58b767b1dffe8f216afeb6a3626732abc7

I20160330-14:42:27.348(-7)? I/chromium(15127): [INFO:CONSOLE(1185)] “deviceready has not fired after 5 seconds.”

I20160330-14:42:27.349(-7)? I/chromium(15127): [INFO:CONSOLE(1178)] “Channel not fired: onDOMContentLoaded”

files are loaded from cache

The errors appear instantly, before the app is even loaded. I’ve been watching it, cordova.js isn’t waiting for something I guess. After a bit, it loads the files but that damn warning kicks me out of the app.

I added crosswalk just to see if this would shed some light and I got this error

Error: Skipping downloading new version because the Cordova platform version or plugin versions have changed and are potentially incompatible
at http://localhost:12088/plugins/cordova-plugin-meteor-webapp/www/webapp_local_server.js:36:21
at Object.cordova.callbackFromNative (http://localhost:12088/cordova.js:293:58)
at processMessage (http://localhost:12088/cordova.js:1081:17)
at processMessages (http://localhost:12088/cordova.js:1104:9)
at Meteor.bindEnvironment (http://localhost:12088/packages/meteor.js?hash=1742ab28bef8d6a8d6931da61d6953fddf9ff7da:1116:22)(anonymous function) @ webapp.js?hash=2552b0d8c8f134d5763b6897c1be6c9bfa3e9c28:68(anonymous function) @ webapp_local_server.js:37cordova.callbackFromNative @ cordova.js:293processMessage @ cordova.js:1081processMessages @ cordova.js:1104Meteor.bindEnvironment @ meteor.js?hash=1742ab28bef8d6a8d6931da61d6953fddf9ff7da:1116

@flean: That just means you’ll have to reinstall the app. Because plugins include native code, and hot code push only updates JavaScript, we block downloading new versions when the set of plugins changes.

Ok, any ideas on how to get rid of the Application error popup?

Not really, because I don’t know what could be causing this. Are there no network errors in the debugger (you may have to scroll down to the beginning)? What happens after location.reload()?

Do you have any Cordova plugins installed?