NativeScript / nativescript-angular

Integrating NativeScript with Angular

Home Page:http://docs.nativescript.org/angular/tutorial/ng-chapter-0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nativescript/Angular app UI is freezing

robertcbit opened this issue · comments

I recently converted an old NS6 app to NS8, all the latest libraries. Noticed in some areas the UI is really slow but even worse, now the UI is freezing upon the very first click, my Login button. Is there any way I can capture any type of logs that might expose why this is occurring? It literally just freezes/stops and I have to restart the emulator with ns -avd myavdname -wipe-data

Update! - Switching AVD from Nexus 4 to Nexus 6 appears to have resolved the freezing and Livesync is working now also. No idea the root cause, perhaps some compatibility issue somewhere in the pipeline.

This has been happening to me as well. Once this freeze happens, all the NativeScript apps within the emulator stop working properly. For me there are 2 kinds of freezes: All the tap bindings stop working, but scroll views and buttons are still functional, and the second kind is when everything stops working. I am yet to catch anything in adb logcat that might be related.

@nikoTM : I am seeing the same behavior, NA app not really freezing but tap events not being processed. However, in my case it only appears to happen in the simulator. Have you found the source of the issue? Or you still think bug in this library?

@cjohn001 I wasn't able to find the cause, but a workaround is to restart the emulator, not the process but the device, just holding down the power button and clicking restart within the emulator. After a restart it never happens again. I don't think this is happening on real devices, I feel like it's an emulator issue but I am not sure.

@nikoTM : Thanks for the feedback. Unfortunately, after a restart it takes only some clicks till the app is going in the same state again.