Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25728

Android: TableView can crash using setData()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.1.0
    • Component/s: Android
    • Environment:

      Mac OSX, SDK 6 (all releases)

    • Story Points:
      8
    • Sprint:
      2018 Sprint 02 SDK, 2018 Sprint 03 SDK

      Description

      I have a tableview in a View XML and it crashes when I set the data via setData on SK6. Works fine on SDK 5, but on SDK6 it crashes on Android when I assign the same data twice which I do when I need to switch data sets. This is only on Android as iOS works as it should

      $.table.setData(myDataSet);
      $.table.data = [];
      $.table.setData(newDataSet); // This is ok
      $.table.data = [];
      $.table.setData(anotherNewDataSet); // This is ok
      $.table.data = [];
      $.table.setData(myDataSet); // Re-assigning myDataSet crashes the app

      I am guessing this is a bug in SDK6 for Android. I've done some further testing and it only crashes if the SAME dataset is assigned twice, I can keep adding new datasets and it won't crash, but assign the same dataset again and it crashes.

      Thanks

      Nigel

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                developer@tpglobalpartners.com Nigel Underwood
                Tester:
                Lokesh Choudhary
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6137
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code