Hi, I don't think it's related.
Other question : does a simple index.html with <html> <head> </head> <body> Hello world! </body> </html> Takes that long to load? Your index.html loads few other things that we don't know what they do and what they are. Thanks. Le 21 mai 2014 09:06, "Aditya Pasumarthi" <[email protected]> a écrit : > This did not make difference in the startup time. > > I would request crosswalk team to look at the error I pointed out in my > logs. The error seems to be from EGL code during startup of the app. I'm > attaching our logs and index.html again. > > Any help here to identify the issue and provide a solution would be very > helpful. > > > > On Tue, May 20, 2014 at 5:07 PM, Alexis Menard <[email protected]> wrote: > >> Hi, >> >> If you get rid of : >> >> >> Ext.blink({"id":"424a8154-ef46-47c8-bf86-63f8406c9f33","js":[{"path":"jquery.js"},{"path":"cordova.js","remote":true},{"path":"scripts/humanized_time_span.js"},{"path":"scripts/geo.js"},{"path":"scripts/latlon.js"},{"path":"scripts/expanding.js"},{"path":"scripts/jquery.nicescroll.js"},{"path":"scripts/greensock/TweenMax.js"},{"path":"scripts/greensock/utils/Draggable.js"},{"path":"app.js","update":"delta"},{"path":"ux/picker/DateTime.js"},{"path":"ux/field/DateTimePicker.js"},{"path":"util/Constants.js"},{"path":"util/common.js"},{"path":"scripts/cryptojs/core.js"},{"path":"scripts/cryptojs/x64-core.js"},{"path":"scripts/cryptojs/enc-hex.js"},{"path":"scripts/cryptojs/sha512.js"},{"path":"file/FileTransfer.js"},{"path":"websockets/WS2PBaseHeader.js"},{"path":"websockets/WS2PMessage.js"},{"path":"websockets/WS2PClientPlugin.js"},{"path":"websockets/WS2PClient.js"}],"css":[{"path":"resources/css/app.css","update":"delta"}]}); >> >> I bet it's going to be normal/acceptable loading time. >> >> To deploy a Sencha Touch app you need to concatenate the files : >> http://moduscreate.com/preparing-for-sencha-touch-production-deployment/ >> . On Desktop it's not a big deal but on devices it is. >> >> Other pointers : >> >> http://stackoverflow.com/questions/15686125/how-do-i-create-a-production-build-minified-scripts-for-sencha-touch-app >> >> Thanks. >> >> On Tue, May 20, 2014 at 7:59 AM, Aditya Pasumarthi >> <[email protected]> wrote: >> > Ningxin, Alexis, >> > >> > Attached are the android app logs and sencha touch index.html of our >> app. >> > There are several areas where we feel the loading is talking more >> time... >> > >> > Initializing Crosswalk Cordova >> > >> > 05-20 15:39:36.944: I/CordovaLog(25057): Changing log level to DEBUG(3) >> > 05-20 15:39:40.199: I/chromium(25057): >> > [INFO:xwalk_extension_renderer_controller.cc(43)] EXTENSION PROCESS >> > DISABLED. >> > >> > Loading Index.html >> > >> > 05-20 15:39:40.689: D/CordovaActivity(25057): >> > onMessage(onPageStarted,file:///android_asset/www/index.html) >> > 05-20 15:39:40.704: E/[EGL-ERROR](25057): EGLBoolean >> > __egl_platform_swap_interval(egl_surface*, EGLint):2189: native window >> is >> > NULL for surface (0x598296e0) >> > 05-20 15:39:40.704: E/chromium(25057): [ERROR:gl_context_egl.cc(177)] >> > eglSwapInterval failed with error EGL_SUCCESS >> > 05-20 15:39:42.204: D/SoftKeyboardDetect(25057): Ignore this event >> > 05-20 15:39:44.604: I/chromium(25057): [INFO:CONSOLE(0)] "The key >> > "minimum-ui" is not recognized and ignored.", source: >> > file:///android_asset/www/index.html (0) >> > 05-20 15:39:45.334: D/CordovaActivity(25057): onMessage(spinner,stop) >> > 05-20 15:39:45.404: D/CordovaWebViewClient(25057): >> > onPageFinished(file:///android_asset/www/index.html) >> > 05-20 15:39:45.404: D/CordovaActivity(25057): >> > onMessage(onPageFinished,file:///android_asset/www/index.html) >> > 05-20 15:39:46.634: I/chromium(25057): [INFO:CONSOLE(1)] "BaseView >> > Initialized.", source: file:///android_asset/www/app.js (1) >> > >> > >> > If we can identify and fix the above delays (which are totaling to 10 >> > seconds), it would give a great startup performance improvement for our >> app. >> > >> > >> > -- >> > Regards, >> > Aditya. >> > >> > Adityanand Pasumarthi >> > Co-Founder & Chief Technology Officer (CTO), Stillpoint Software, Inc. >> > Managing Director, Stillpoint Software India Pvt Ltd. >> > >> > +91.9246241805 (mobile) >> > +91.9573960369 (mobile) >> > >> > DISCLAIMER >> > The information contained in this eMail is confidential and intended >> for the >> > named recipient(s) only. If you are not an intended recipient of this >> eMail >> > you must not copy, distribute or take any further action in reliance on >> it. >> > You should delete it and notify the sender immediately >> > >> > >> > On Mon, May 19, 2014 at 8:52 PM, Alexis Menard <[email protected]> wrote: >> >> >> >> Hi, >> >> >> >> Would you mind sending the actual index.html for us to see? >> >> >> >> Thank you. >> >> >> >> On Mon, May 19, 2014 at 10:57 AM, Aditya Pasumarthi >> >> <[email protected]> wrote: >> >> > Thanks for quick reply. >> >> > >> >> > We moved to the beta version of cordova-crosswalk (arm) you >> mentioned, >> >> > and >> >> > it improved the startup time by few seconds. However we are still >> facing >> >> > a >> >> > delay during very startup. Please look at the below logs from our >> >> > Android >> >> > app. >> >> > >> >> > We are using Samsung Galaxy S III with Android 4.3. >> >> > >> >> > 19:10:58.094: E/chromium(28979): [ERROR:gl_context_egl.cc(177)] >> >> > eglSwapInterval failed with error EGL_SUCCESS >> >> > 19:10:59.764: I/chromium(28979): [INFO:CONSOLE(0)] "The key >> "minimum-ui" >> >> > is >> >> > not recognized and ignored.", >> >> > source:file:///android_asset/www/index.html >> >> > 19:11:01.139: I/chromium(28979): [INFO:CONSOLE(1)] "BaseView >> >> > Initialized.", >> >> > source: file:///android_asset/www/app.js (1) >> >> > >> >> > You can see that, the very first logcat log we are getting in ADT is >> an >> >> > error. And after that it takes 1.7 seconds to start loading the >> >> > Index.html. >> >> > >> >> > I also want to understand the "minimum-ui" ignore log. >> >> > >> >> > Can you please look into the above and let us know what could be the >> >> > issue >> >> > and any solution? Reducing the above 1.7 seconds will help us >> greatly in >> >> > improving the overall app startup time. >> >> > >> >> > >> >> > -- >> >> > Regards, >> >> > Aditya. >> >> > >> >> > Adityanand Pasumarthi >> >> > Co-Founder & Chief Technology Officer (CTO), Stillpoint Software, >> Inc. >> >> > Managing Director, Stillpoint Software India Pvt Ltd. >> >> > >> >> > +91.9246241805 (mobile) >> >> > +91.9573960369 (mobile) >> >> > >> >> > DISCLAIMER >> >> > The information contained in this eMail is confidential and intended >> for >> >> > the >> >> > named recipient(s) only. If you are not an intended recipient of >> this >> >> > eMail >> >> > you must not copy, distribute or take any further action in reliance >> on >> >> > it. >> >> > You should delete it and notify the sender immediately >> >> > >> >> > >> >> > On Mon, May 19, 2014 at 6:45 PM, Hu, Ningxin <[email protected]> >> >> > wrote: >> >> >> >> >> >> Hi Aditya, >> >> >> >> >> >> >> >> >> >> >> >> I suppose the 'cordova' in your email means >> >> >> 'crosswalk-cordova-android', >> >> >> am I correct? >> >> >> >> >> >> >> >> >> >> >> >> I tested the app launch time in CordovaExample generated by >> >> >> crosswalk-cordova-android, it is about 1.106 seconds on my Nexus 4. >> >> >> >> >> >> >> >> >> >> >> >> I used the latest Crosswalk 6 beta: >> >> >> >> >> >> >> https://download.01.org/crosswalk/releases/crosswalk/android/beta/6.35.131.5/arm/crosswalk-cordova-6.35.131.5-arm.zip >> >> >> >> >> >> The steps to build CordovaExmaple are: >> >> >> >> >> >> >> https://crosswalk-project.org/#wiki/Create-Sample-App-With-Crosswalk-Cordova-Android >> >> >> >> >> >> The measurement method of launch time is 1) use logcat to record >> >> >> timestamp >> >> >> of application start intent ("START u0 { >> >> >> act=android.intent.action.MAIN…") >> >> >> and "ondeviceready" timestamp. 2) minus the "ondeviceready" >> timestamp >> >> >> with >> >> >> start intent timestamp. >> >> >> >> >> >> >> >> >> >> >> >> I also used the SenchaCmd-4.0.4.84 with touch-2.3.1 to generate a >> >> >> Cordova >> >> >> app as http://docs-origin.sencha.com/touch/2.3.0/#!/guide/cordova. >> And >> >> >> I >> >> >> switched the default CordovaLib (Android WebView) to Crosswalk >> WebView >> >> >> as >> >> >> >> >> >> >> https://crosswalk-project.org/#wiki/Moving-Existing-Cordova-App-To-Crosswalk >> >> >> >> >> >> The "ondeviceready" timestamp - start intent timestamp is 2.043 >> seconds >> >> >> on >> >> >> Nexus 4. >> >> >> >> >> >> >> >> >> >> >> >> I inspected the Sencha app a little bit, it embeds a SenchaCmd >> script >> >> >> into >> >> >> the index.html like: >> >> >> >> >> >> <!-- The line below must be kept intact for Sencha Command to build >> >> >> your >> >> >> application --> >> >> >> >> >> >> <script type="text/javascript">(function(e)… </script> >> >> >> >> >> >> You mentioned in your index.html doesn't have any script except >> cordova >> >> >> launch event handler ("ondeviceready" event handler?). May I know >> what >> >> >> your >> >> >> index.html is like? >> >> >> >> >> >> >> >> >> >> >> >> Thanks, >> >> >> >> >> >> -ningxin >> >> >> >> >> >> >> >> >> >> >> >> From: Crosswalk-help >> >> >> [mailto:[email protected]] On >> Behalf >> >> >> Of >> >> >> Aditya Pasumarthi >> >> >> Sent: Saturday, May 17, 2014 11:22 PM >> >> >> To: crosswalk-help >> >> >> Subject: [Crosswalk-help] Cordova app startup time with xwalkview >> >> >> >> >> >> >> >> >> >> >> >> Hi, >> >> >> >> >> >> >> >> >> >> >> >> We are using sencha touch + cordova for an Android app. There is a >> >> >> general >> >> >> startup time delay for cordova apps. >> >> >> >> >> >> >> >> >> >> >> >> However we are seeing a 7 second gap between app launch (from app >> icon >> >> >> tap) and when our index.html is loaded. We do not have any script in >> >> >> index.html. We do all our app initialization when we get cordova >> launch >> >> >> event, which is after index.html is loaded. >> >> >> >> >> >> >> >> >> >> >> >> Does everyone experience this delay? If so, any ideas on how to >> reduce >> >> >> this? If not, again any thoughts on how to reduce this and any >> pointers >> >> >> we >> >> >> should be looking at? >> >> >> >> >> >> >> >> >> >> >> >> Any help is highly appreciated. >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> >> >> >> Regards, >> >> >> >> >> >> Aditya. >> >> >> >> >> >> >> >> >> >> >> >> Adityanand Pasumarthi >> >> >> >> >> >> Co-Founder & Chief Technology Officer (CTO), Stillpoint Software, >> Inc. >> >> >> >> >> >> Director, Stillpoint Software India Pvt Ltd. >> >> >> >> >> >> >> >> >> >> >> >> +91.9246241805 (mobile) >> >> >> >> >> >> +91.9573960369 (mobile) >> >> >> >> >> >> >> >> >> >> >> >> DISCLAIMER >> >> >> >> >> >> The information contained in this eMail is confidential and intended >> >> >> for >> >> >> the named recipient(s) only. If you are not an intended recipient >> of >> >> >> this >> >> >> eMail you must not copy, distribute or take any further action in >> >> >> reliance >> >> >> on it. You should delete it and notify the sender immediately >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > _______________________________________________ >> >> > Crosswalk-help mailing list >> >> > [email protected] >> >> > https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help >> >> > >> >> >> >> >> >> >> >> -- >> >> Alexis Menard >> > >> > >> > >> >> >> >> -- >> Alexis Menard >> > > > > -- > Regards, > Aditya. > > Adityanand Pasumarthi > Co-Founder & Chief Technology Officer (CTO), Stillpoint Software, Inc. > Managing Director, Stillpoint Software India Pvt Ltd. > > +91.9246241805 (mobile) > +91.9573960369 (mobile) > > DISCLAIMER > The information contained in this eMail is confidential and intended for > the named recipient(s) only. If you are not an intended recipient of this > eMail you must not copy, distribute or take any further action in reliance > on it. You should delete it and notify the sender immediately > > _______________________________________________ > Crosswalk-help mailing list > [email protected] > https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help > >
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
