NativeScript / nativescript-angular

Integrating NativeScript with Angular
http://docs.nativescript.org/angular/tutorial/ng-chapter-0
Apache License 2.0
1.21k stars 241 forks source link

Nativescript/Angular app UI is freezing #2367

Open robertcbit opened 3 years ago

robertcbit commented 3 years ago

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

robertcbit commented 3 years ago

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.

nikoTM commented 2 years ago

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.

cjohn001 commented 2 years ago

@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?

nikoTM commented 2 years ago

@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.

cjohn001 commented 2 years ago

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