Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3631] Crashing after continued use

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2011-05-26T17:34:52.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sRelease 1.7.0, Sprint 2011-21
ComponentsiOS
Labelscrash
ReporterRick Blalock
AssigneeStephen Tramer
Created2011-04-20T11:35:12.000+0000
Updated2011-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

FileDateSize
Preferences-2011-05-24-174632.crash2011-05-24T18:20:28.000+000085605
Resources.zip2011-04-25T12:46:42.000+00001659405
Resources.zip2011-04-22T11:39:16.000+00001573436

Comments

  1. Rick Blalock 2011-04-22

    Attached is a reproducible case.
  2. Rick Blalock 2011-04-22

    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
  3. Rick Blalock 2011-04-22

    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.
  4. Blain Hamon 2011-04-25

    Among other commits, this should be the last of the proxy issues.
  5. Rick Blalock 2011-04-25

  6. Rick Blalock 2011-04-26

    The issue is still happening in 1.7CI from today April 26th.
  7. Natalie Huynh 2011-05-18

    Crash log
  8. Natalie Huynh 2011-05-24

    new crash files

JSON Source