RadListView on Android - will crash occasionally

Thread is closed for posting
6 posts, 0 answers
  1. Clarence
    Clarence avatar
    20 posts
    Member since:
    Nov 2016

    Posted 08 Feb 2017 Link to this post

    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

  2. Nikolay Tsonev
    Admin
    Nikolay Tsonev avatar
    340 posts

    Posted 09 Feb 2017 Link to this post

    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.
  3. Clarence
    Clarence avatar
    20 posts
    Member since:
    Nov 2016

    Posted 10 Feb 2017 in reply to Nikolay Tsonev Link to this post

    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

  4. Nikolay Tsonev
    Admin
    Nikolay Tsonev avatar
    340 posts

    Posted 10 Feb 2017 Link to this post

    Hello,

    We are still unable to reproduce this behavior while using nativescript-ui-samples-angular . 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 tns --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 npm cache with npm cache clear command. Then rebuild with tns 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.
  5. Jordi
    Jordi avatar
    1 posts
    Member since:
    Feb 2017

    Posted 12 Feb 2017 Link to this post

    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

  6. Nikolay Tsonev
    Admin
    Nikolay Tsonev avatar
    340 posts

    Posted 13 Feb 2017 Link to this post

    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 tns 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.
Back to Top