Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7775] Android: Master/Detail Template: intermittent crash on use

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-05T10:44:47.000+0000
Affected Version/sRelease 1.8.1, Release 1.8.2
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsAndroid
Labelsmodule_templates, qe-and021312, qe-testadded
ReporterDustin Hyde
AssigneeJosh Roesslein
Created2012-02-22T14:20:36.000+0000
Updated2012-04-05T10:44:47.000+0000

Description

When a Master/Detail template is run, and it is used as intended, there will be an intermittent crash (sometimes within a few seconds, sometimes not at all). Seems more frequent in 1.8.2. Could not reproduce in Rhino. Steps to Reproduce: 1. Create a Master/Detail template in studio. New -> TiMob Project, Next, Master-Detail. 2. Deploy to device. 3. Click on fruit row. Press back. Repeat with a new row each time. Expected Result: No crash. Actual Result: Intermittently, on fruit row click, the app will freeze for a few seconds, then the screen will turn black, 'Unable to release window reference.' warnings will log to the console, then the platform will alert a kill request.

Attachments

FileDateSize
master-detail 1.8.2 android v8 crash.txt2012-02-22T14:20:36.000+0000167143

Comments

  1. Natalie Huynh 2012-02-22

  2. Josh Roesslein 2012-03-13

    The "Unable to release window reference" warnings are caused by extra "close" listeners we use in window.js to remove a window from our "windows" list. These listeners are currently never removed after "close" has fired. So when a window is re-opened you now have n+1 listeners (n=number of times opened). I don't believe this alone would create any crashes. I could not reproduce this on a HTC Desire (Android 2.2). Could we get confirmation this crash still occurs on a recent CI build (master branch)?
  3. Josh Roesslein 2012-03-14

    Cannot fix "Unable to release window reference" warnings until TIMOB-7876 is resolved.
  4. Dustin Hyde 2012-03-14

    Able to reproduce twice: SDK: 2.0.0.v20120314101738 Android: V8 Studio: 2.0.0.201203121914 OS: Snow Leopard Devices Tested: Nexus One 2.2.2
  5. Josh Roesslein 2012-03-16

    Dustin, Is the crash still the same as the one in the log attached to this ticket? From the log report the crash was due to an ANR timeout (application stopped responding). We have seen this due to out of memory issues on older Android versions. So far I have only been able to reproduce a hard, NDK crash (TIMOB-7990), but haven't seen any ANR timeouts yet like the one in the log report attached here. If you could attach the log from the crash when you re-tested (if you still have it around) or clarify if the crash was different and more like the one seen in TIMOB-7990. Trying to determine if the ANR crash still occurs or if we are just seeing the new crash described in TIMOB-7990. Thanks,
  6. Marshall Culpepper 2012-03-18

    Closing because the only crash we could repro in the Master/Detail template has now been fixed. Dustin, please reopen if the ANR still persists, but that was probably originally related to another issue
  7. Dustin Hyde 2012-03-19

    Closing as Fixed. Behavior no longer exists. Note: This is an intermittent issue. SDK: 2.0.0.v20120319003254 Android: V8 Studio: 2.0.0.201203182248 OS: Snow Leopard Devices Tested: Nexus One 2.2.2, Droid 2.2.3, Revolution 2.3.4
  8. Dustin Hyde 2012-04-05

    Opening to edit labels.

JSON Source