Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3008] iOS: saw deadlock while toggling network - intermittent and not repro

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:00:40.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M08
ComponentsiOS
Labelsdeadlock, ios, network, regression, release-1.6.0, reported-1.6.0
ReporterThomas Huelbert
AssigneeBlain Hamon
Created2011-04-15T03:34:39.000+0000
Updated2011-04-17T02:00:40.000+0000

Description

Seen on a 4gt ipod running 4.1 only, not repro on same device, nor on others checked. logging in case crash log helps dev.

ipod touch 4GT (4.1) [INFO] Titanium SDK version: 1.6.0 (01/31/11 08:03 f9036ef).

1.Platform > network
2.Background app
3.settings > airplane mode turn it on
4.home button, tap app icon

resultds: deadlock occurred (as per the crash log, attached if LH lets me today).

Comments

  1. Thomas Huelbert 2011-04-15

    okay no attachments today either... sigh, emailed to Blain and Stephen

  2. Jeff Haynie 2011-04-15

    (from [09db865ff9e57aa9a24854919b9670aa645923c4]) [#3008 state:fixed-in-qa] Try to accquire a lock instead of outright claiming it. We need to be much more careful about that with analytics in resume/suspend operations. https://github.com/appcelerator/titanium_mobile/commit/09db865ff9e57aa9a24854919b9670aa645923c4"> https://github.com/appcelerator/titanium_mobile/commit/09db865ff9e5...

  3. Stephen Tramer 2011-04-15

    REPO STEPS (based on crash log):

    This one is going to be very tricky to duplicate. What happened was that while one of the suspend/shutdown/resume analytics events was occurring, a SECOND analytics event was then sent in the middle of the analytics request. So, this has to be timed just right:

    • Background the app at exactly the right time so that when restarted, analytics is queued up

    This time period is probably measured in tenths (or less) of a second. One possible way to do this is to force an analytics event on the 'resume' notification sent by the app while on a slow network.

  4. Thomas Huelbert 2011-04-15

    not seeing it, closing against [INFO] Titanium SDK version: 1.6.0 (02/02/11 07:59 a632082) need a better test case at some point.

JSON Source