[TIMOB-3631] Crashing after continued use
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-26T17:34:52.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Release 1.7.0, Sprint 2011-21 |
Components | iOS |
Labels | crash |
Reporter | Rick Blalock |
Assignee | Stephen Tramer |
Created | 2011-04-20T11:35:12.000+0000 |
Updated | 2011-10-06T17:08:03.000+0000 |
Description
After continued use of the app it will crash. All crashes result in a kill 9 with no further logs or crash statements.
Tested on 1.6.3, 1.6.1, 1.7CI.
The general design of the app: The app is One universal scrollableView. When a section (i.e. Entertainment, Local, World, etc.) gets loaded the views array gets flushed out (set to null) and repopulated with the new data. Reproducing the crash is as easy as refreshing a section 20 or so times or the following....
Reproducible Steps:
Test Case One:
Refresh the home page 20 times
Test Case Two:
Click the section button next to refresh -> Select a new section -> repeat selecting different sections -> refresh a section or two -> will result in crash after so many times.
Test Case Three:
Tap Section button next to refresh -> Select Entertainment -> Refresh 4-5 times to crash.
Test Case Four:
Load a section -> Tap on an article -> scroll through other articles -> Load a section -> repeat
---
Also, there is an issue with scrollableViews and 1.6.3. You cannot set the views array to null or it will throw:
~~~
message = "Invalid type passed to function. expected: NSArray, was: (null) in -[TiUIScrollableViewProxy setViews:] (TiUIScrollableViewProxy.m:32)";
sourceId = 202632936;
~~~
Note that setting the views array to null in 1.6.1 doesn't resolve the kill 9 crash.
Attachments
Attached is a reproducible case.
If you comment the part that removes it from the window, sets it to null, and recreates it, and only set the views array to [], memory is released: https://img.skitch.com/20110422-cuti158wy8uwu3g8ibi6ms29fe.jpg https://img.skitch.com/20110422-qctgt2e8kh9bdwjk119r9h4b4h.jpg But if you remove it from the window it never gets collected: https://img.skitch.com/20110422-rggc9ytpnqr57h7pgmenam9ira.jpg http://www.screencast.com/users/XiDScreencasts/folders/Jing/media/540e663a-8015-4072-a2d5-ce2aca6abca4
Just as an update: I tried the sample code but instead of a scrollableView, made it a TiUIView. Everything releases fine from the TiUIView - but not the SV.
Among other commits, this should be the last of the proxy issues.
The issue is still happening in 1.7CI from today April 26th.
Crash log
new crash files