Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2658] Crash on app resume

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:44.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M02
ComponentsiOS
Labelscrash, ios, release-1.6.0
ReporterStephen Tramer
AssigneeStephen Tramer
Created2011-04-15T03:26:09.000+0000
Updated2011-04-17T01:59:44.000+0000

Description

Under certain (very rare) circumstances, apps will crash upon resume. This appears to be because in iOS 4.0, an app may still be in the "terminating" state when it is re-resumed if the system determined that it should be shut down. If the app is locked and waiting on the main thread for a response, this may cause the OS to terminate the app for not responding in time when resuming.

The issue appears to come from -[AnalyticsModule shutdown:], where an HTTP request is scheduled on the main thread. Marking medium because it's such a weird corner case and hard to reproduce.

Bug may not be reproducible enough to reliably test a fix. This one is 100% crash log.

Attachments

FileDateSize
log12011-04-15T03:26:09.000+000025526
log22011-04-15T03:26:10.000+000022558
orientation_2010-12-20-145419_the-last-unicorn.crash2011-04-15T03:26:10.000+000024163

Comments

  1. Damien Elmes 2011-04-15

    I've seen this issue pop up a number of times in my users' crash logs. My app has analytics disabled, so that doesn't seem to be the sole cause. At the time it looked like the app was freezing in redraw code, so it's possible my users won't see this once I put out a new version based on Ti 1.5.

  2. Stephen Tramer 2011-04-15

    If you would be able to provide crash logs that would be extremely helpful. If you can symbolize them first at all, that would be great. The instructions here indicate how to do that:

    http://furbo.org/2008/08/08/symbolicatifination/">http://furbo.org/2008/08/08/symbolicatifination/

  3. Damien Elmes 2011-04-15

    Here's one I have on hand.

  4. Damien Elmes 2011-04-15

    And not sure if this is related or a separate issue, but from the same user

  5. Stephen Tramer 2011-04-15

    These seem to have a different underlying cause, but if these issues persist after an upgrade to 1.5.0, please file a ticket for them. There were a large number of changes to the view drawing system that may have fixed these issues.

  6. Damien Elmes 2011-04-15

    yep, thought as much. I'll let you know if they crop up again after I ship with 1.5.

  7. Jeff Haynie 2011-04-15

    (from [3165d74ad25b899f6d820b2ca76352fe13d9001a]) [#2658 state:fixed-in-qa] Speed up shutdown analytics events by reducing timeout. https://github.com/appcelerator/titanium_mobile/commit/3165d74ad25b899f6d820b2ca76352fe13d9001a"> https://github.com/appcelerator/titanium_mobile/commit/3165d74ad25b...

  8. Thomas Huelbert 2011-04-15

    not much I can do about this one, closing

  9. Damien Elmes 2011-04-15

    Stephen: I haven't seen log1 pop up again, but I'm still getting log2 on 1.5.1. I created a helpdesk ticket which includes new logs with full symbols, and it appears to be a deadlock in NSCondition: http://developer.appcelerator.com/helpdesk/view/66761">http://developer.appcelerator.com/helpdesk/view/66761

  10. Stephen Tramer 2011-04-15

    Damien, we're aware that there are some deadlock problems with certain UI operations right now, and we're trying to track all of them down. If you can create a new bug to track this issue and include the HD link/crash logs with it I would appreciate it.

  11. bowman9991 2011-04-15

    Getting identical issues described in this support ticket:
    http://developer.appcelerator.com/helpdesk/view/76350">http://developer.appcelerator.com/helpdesk/view/76350

JSON Source