This is a migrated thread and some comments may be shown as answers.

RadListView on Android - will crash occasionally

5 Answers 71 Views
ListView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Clarence
Top achievements
Rank 2
Clarence asked on 09 Feb 2017, 05:04 AM

Founded that the RadListView on Android will crash occasionally.

Steps to reproduce:

  • Clone the SDKAngular examples repo (https://github.com/telerik/nativescript-ui-samples-angular.git)
  • tns run android
  • Navigate to ListView -> Item Layouts
  • Randomly click through the linear and grid views, scroll between the views, etc.
  • Occasionally, the app will crash with the following exception:
An uncaught Exception occurred on "main" thread.
com.tns.NativeScriptException:
Calling js method onBindViewHolder failed
 
[object Object]
 
StackTrace:
    Frame: function:'SafeSubscriber.__tryOrUnsub', file:'file:///data/data/org.nativescript.sdkAngular/files/app/tns_modules/rxjs/Subscriber.js', line: 227, column: 13
    Frame: function:'SafeSubscriber.next', file:'file:///data/data/org.nativescript.sdkAngular/files/app/tns_modules/rxjs/Subscriber.js', line: 172, column: 22
    Frame: function:'Subscriber._next', file:'file:///data/data/org.nativescript.sdkAngular/files/app/tns_modules/rxjs/Subscriber.js', line: 125, column: 26
    Frame: function:'Subscriber.next', file:'file:///data/data/org.nativescript.sdkAngular/files/app/tns_modules/rxjs/Subscriber.js', line: 89, column: 18

 

Kindly advice

Clarence

5 Answers, 1 is accepted

Sort by
0
Nikolay Tsonev
Telerik team
answered on 09 Feb 2017, 08:47 AM
Hello,

I reviewed your case and follow the below-given steps, however, I am unable to reproduce this behavior.
Could you verify, whether you are using local download of UI for NativeScirpt or the official version in NPM? 

To be able to investigate further this issue, could you provide some more info about the device or emulator, which you are using for testing? I have tested the app on Android API level 21 and API level 19.

Thank you in advance for your cooperation.
Regards,
nikolay.tsonev
Telerik by Progress
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Clarence
Top achievements
Rank 2
answered on 10 Feb 2017, 08:06 AM

Hi, 

I just clone the sample app from Github and run npm install, so it should using the version in the npm repo.

On the other hand, for the device, I am using the following:

  • Emulator software: Genymotion 2.8.1 personal
  • Device: Google Nexus 5X - 7.0.0 - API 24 - 1080 X 1920

Regards

Clarence

0
Nikolay Tsonev
Telerik team
answered on 10 Feb 2017, 04:29 PM
Hello,

We are still unable to reproduce this behavior while using We will research further what could cause this issue.
In the meantime could you verify, whether you are using latest NativeScript 2.5. You could do that by running  --version. If not please update to latest NativeScript, while following the instructions here.

Initially, have you tried to remove the app from the device and to delete platforms, node_modules and hooks folders from the project and to clear  cache with  cache clear command. Then rebuild with run android.

Could you also verify, whether you will have the same behavior in a sample app while using UI for NativeScript and RadListView component?

Regards,
nikolay.tsonev
Telerik by Progress
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Jordi
Top achievements
Rank 1
answered on 12 Feb 2017, 10:55 AM

Actually this exact same crash happens with a regular RadListView with a Staggered layout manager and some items:

Just create the list view with staggered and 100-200 objects with a single text. Every time you scroll fast up and down eventually the app crashes with exactly the same stacktrace posted above. 

 

Tried in Android emulator 7.0

0
Nikolay Tsonev
Telerik team
answered on 13 Feb 2017, 09:54 AM
Hello,

This issue could be related to missing Android SDK Build-tools 23.0.2 and  25.0.2. Could you verify, whether those packages has been installed in Android SDK Manager? if not, please install  Android SDK Build-tools 23.0.2 and  Android SDK Build-tools 25.0.2. When they are installed successfully delete platforms folder from the project and build again with  run android.

If this does not help, please send us more info about your environment(CLI, NativeScript modules, node versions) and about the Emulator(API level, CPU/ABI). It will help also if you could give us list of the installed packages from your Android SDK Manager.

Due to the problem with reproducing this issue, I am attaching sample project where has been used RadListView component, you could review it and make appropriate changes, which will allow us to reproduce this behavior and gif file with the running project on our emulator.

Hope this information helps.

Regards,
nikolay.tsonev
Telerik by Progress
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Tags
ListView
Asked by
Clarence
Top achievements
Rank 2
Answers by
Nikolay Tsonev
Telerik team
Clarence
Top achievements
Rank 2
Jordi
Top achievements
Rank 1
Share this question
or