Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13756] Android: ListView crashing app on ScrollableView page change

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-06-26T22:33:59.000+0000
Affected Version/sRelease 3.1.0, Release 3.2.0
Fix Version/s2013 Sprint 14, 2013 Sprint 14 API, Release 3.1.2, Release 3.2.0
ComponentsAndroid
Labelslistview, qe-closed-3.1.2, qe-testadded, triage
ReporterLeonardo Leal
AssigneeSunila
Created2013-04-24T14:02:03.000+0000
Updated2013-08-22T12:38:42.000+0000

Description

*Problem description* I created a ScrollableView with 3 Pages. Each page has a bunch of data displayed and a ListView. The ListView on all the 3 Pages share the same custom Template that consist of 1 level of child templates containing 6 labels each. I fed the 3 tables with 20 rows containing dummy text. The screen renders ok, but every third page change on the scrollableview, the app crashed with the log attached to this issue. *Steps to reproduce* 1. Create a new Classic Single Window Application. 2. Drop the attached ApplicationWindow.js into Resources/ui/handheld/android/ApplicationWindow.js 3. Run on Android device or emulator 4. Scroll horizontally 3 times 5. Observe crash *Test case* See attached ApplicationWindow.js

Attachments

FileDateSize
ApplicationWindow.js2013-04-25T14:22:14.000+00004861
log.txt2013-04-24T14:02:03.000+000013607

Comments

  1. Daniel Sefton 2013-04-24

    Hi Leonardo, Please provide a reproducible test case that we can drop into an app.js and run. Thanks for your time.
  2. Leonardo Leal 2013-04-25

    Attached ApplicationWindow.js containing the specific code that causes the crash. How to reproduce It: - Use the sample code as your application window; - Execute the application and swipe change page to the thrid page and go back to the second page. The application will crash on Android(Any Android version: tested with 2.3.3 and 4.2.2).
  3. Alexander Herwix 2013-05-03

    Same problem here. No Problems on iOS when caching is large enough, so maybe there is an issue with redrawing the list if views are not cached anymore?! If there are any known workarounds or quick fixes I would really appreciate a comment, kinda stuck here as a newbie to titanium. One idea I had was to switch to https://bitbucket.org/MostThingsWeb/virtualscroller/wiki/Home instead of scrollableView... anyone experience with it and ListViews? Cheers!
  4. Daniel Sefton 2013-05-03

    Tested and confirmed on Samsung Galaxy S2 Android 2.3.6 with Ti SDK 3.1 GA and 3.2 CI.
  5. Agustín Gutiérrez 2013-05-09

    Same thing. Crashing on Android 2.3.1, and emulator running 2.2. Although it doesn't always crash on the third swipe, it does after some use (between 5 and 15)
  6. Sunila 2013-05-12

    Make sure that view doesn't cleanup proxy data. https://github.com/appcelerator/titanium_mobile/pull/4254
  7. Hieu Pham 2013-07-24

    backport PR: https://github.com/appcelerator/titanium_mobile/pull/4478
  8. Federico Casali 2013-08-10

    Verified fixed. Provided sample application is not crashing. Tested on device Google Nexus Galaxy 4.2.2 Titanium SDK 3.1.2.v20130808180613 Alloy 1.2.0-alpha6 Appcelerator Studio 3.1.2.201308082014 CLI 3.1.2-alpha Node 0.10.13 Closing.
  9. Olga Romero 2013-08-15

    Tested above code and verified fix with: Appcelerator Studio: , build: 3.1.2.201308091728 Titanium SDK, build: 3.1.2.v20130814124556 CLI: 3.1.2-alpha Alloy: 1.2.0-alpha6 Device: GalaxyS3 Android version 4.0.4

JSON Source