GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-06-26T22:33:59.000+0000 |
Affected Version/s | Release 3.1.0, Release 3.2.0 |
Fix Version/s | 2013 Sprint 14, 2013 Sprint 14 API, Release 3.1.2, Release 3.2.0 |
Components | Android |
Labels | listview, qe-closed-3.1.2, qe-testadded, triage |
Reporter | Leonardo Leal |
Assignee | Sunila |
Created | 2013-04-24T14:02:03.000+0000 |
Updated | 2013-08-22T12:38:42.000+0000 |
*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
Hi Leonardo, Please provide a reproducible test case that we can drop into an app.js and run. Thanks for your time.
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).
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!
Tested and confirmed on Samsung Galaxy S2 Android 2.3.6 with Ti SDK 3.1 GA and 3.2 CI.
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)
Make sure that view doesn't cleanup proxy data. https://github.com/appcelerator/titanium_mobile/pull/4254
backport PR: https://github.com/appcelerator/titanium_mobile/pull/4478
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.
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