{ "id": "62509", "key": "TIMOB-1877", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11240", "name": "Release 1.6.0 M07", "archived": true, "released": true, "releaseDate": "2011-01-31" } ], "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2011-04-15T03:04:33.000+0000", "created": "2011-04-15T03:04:32.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "apple", "bug", "crash", "defect", "ios", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T07:01:14.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

4th gen iPod touch (4.1) with mobile sdk build 1.4.2.dc7b90

\n

1.BaseUI>views>Email dialog
\n2.select an image (I used a previous screen shot) and enter a valid\nemail, send it
\n3.check output while its happening

\n

output:Wed Sep 22 10:07:37 eWorld sandboxd[1536] :\nKitchenSink(1533) deny file-write-data\n/private/var/mobile/Media/PhotoData

\n

Wed Sep 22 10:08:04 eWorld KitchenSink[1533] : DA|Could not open\nthe lock file at /tmp/DAAccountsLoading.lock. We'll load the\naccounts anyway, but bad things may happen

\n

Wed Sep 22 10:08:04 eWorld sandboxd[1539] : KitchenSink(1533)\ndeny file-read-data /private/var/tmp/DAAccountsLoading.lock

\n

I crashed once at this point. Not sure if this a downstream\ncrash from a mem leak or not.

{html}", "attachment": [], "flagged": false, "summary": "iOS - errors and intermittent crash with email test case", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126887", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Wed Sep 22 10:08:04 eWorld KitchenSink[1533] : DA|Could not open\nthe lock file at /tmp/DAAccountsLoading.lock. We'll load the\naccounts anyway, but bad things may happen

\n

this line above is new, marking as regression, other output goes\nback to 1.4.0 at least

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:32.000+0000", "updated": "2011-04-15T03:04:32.000+0000" }, { "id": "126888", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

While debugging, I came across this bit:

\n

2011-01-24 14:25:28.854 Titanium[38516:307] Using two-stage\nrotation animation. To use the smoother single-stage animation,\nthis application must remove two-stage method implementations.
\n2011-01-24 14:25:54.508 Titanium[38516:307] Using two-stage\nrotation animation is not supported when rotating more than one\nview controller or view controllers not the window delegate

\n

The stack trace was thus:

\n

0 0x3108676c in NSLog ()
\n1 0x3163d2c0 in -UIWindow\n_setRotatableClient:toOrientation:duration:force:
\n2 0x3163c19a in -UIWindowController\ntransition:fromViewController:toViewController:target:didEndSelector:
\n3 0x3163bad2 in -UIViewController\npresentModalViewController:withTransition:
\n4 0x3163b246 in -UIViewController\npresentModalViewController:animated:
\n5 0x001191f8 in -[TiApp attachModal:toController:animated:]\n(self=0x517110, cmd=0x24246f, modalController=0x5af100,\npresentingController=0x53b150, animated=1 '\\001') at\n/CodeValhalla/Appcelerate/mobile/iphone/iphone/../Classes/TiApp.mm:560
\n6 0x0011775c in -[TiApp showModalController:animated:]\n(self=0x517110,
cmd=0x23544c, modalController=0x5af100,\nanimated=1 '\\001') at\n/CodeValhalla/Appcelerate/mobile/iphone/iphone/../Classes/TiApp.mm:595
\n7 0x000c1770 in -[MediaModule displayModalPicker:settings:]\n(self=0x5ae900, cmd=0x23df10, picker=0x5af100,\nargs=0x5aece0) at\n/CodeValhalla/Appcelerate/mobile/iphone/iphone/../Classes/MediaModule.m:159
\n8 0x000c25a6 in -[MediaModule showPicker:isCamera:] (self=0x5ae900,\ncmd=0x23dee9, args=0x5aece0, isCamera=0 '\\000') at\n/CodeValhalla/Appcelerate/mobile/iphone/iphone/../Classes/MediaModule.m:327
\n9 0x000c7042 in -[MediaModule openPhotoGallery:]\n(self=0x5ae900,
cmd=0x23d45f, args=0x5aece0) at\n/CodeValhalla/Appcelerate/mobile/iphone/iphone/../Classes/MediaModule.m:787
\n10 0x349c42ea in -NSObject(NSObject)\nperformSelector:withObject:
\n11 0x3109a824 in NSThreadPerformPerform ()
\n12 0x349dbf24 in
\nCFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION\n()
\n13 0x349adba6 in
CFRunLoopDoSources0 ()
\n14 0x349ad44a in __CFRunLoopRun ()
\n15 0x349ad276 in CFRunLoopRunSpecific ()
\n16 0x349ad17e in CFRunLoopRunInMode ()
\n17 0x311dc5f2 in GSEventRunModal ()
\n18 0x311dc69e in GSEventRun ()
\n19 0x315b0122 in -UIApplication _run
\n20 0x315ae12e in UIApplicationMain ()
\n21 0x000043ce in main (argc=1, argv=0x2ffff5ec) at\n/CodeValhalla/Appcelerate/mobile/iphone/iphone/main.m:28

\n

Note that this is because of the camera roll in Apple's own\ncode, not ours, so this part is nothing we can do about.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:33.000+0000", "updated": "2011-04-15T03:04:33.000+0000" }, { "id": "126889", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hunh. Turns out that the origional bug is also Apple's\nfault.

\n

Trapping on NSLog causes this to catch in the middle of entering\nan email address into the email dialog (Apple's code). The trace is\nin thread 21:

\n

0 0x3108676c in NSLog ()
\n1 0x32ba43a8 in DALogV ()
\n2 0x32ba4282 in DALog ()
\n3 0x32ba3f7e in -DAAccountManager reloadAccounts
\n4 0x32ba3ce2 in -DAAccountManager init
\n5 0x32ba3bd4 in +DAAccountManager sharedInstance
\n6 0x3282ca0c in -MFFindSearchableStoresOperation\nmain
\n7 0x310889ee in -__NSOperationInternal start
\n8 0x31088752 in -NSOperation start
\n9 0x3109d57a in
__startOperations_block_invoke_2 ()
\n10 0x30ec3984 in
dispatch_call_block_and_release ()
\n11 0x30ec4764 in dispatch_worker_thread2 ()
\n12 0x30e68680 in
pthread_wqthread ()
\n13 0x30e61198 in start_wqthread ()

\n

Titanium makes no mention of MMFindSearchable or\nDAAccountManager, leading me to believe this is entirely instigated\noutside our control. Oh Apple, what surprises don't you have for\nus?

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:33.000+0000", "updated": "2011-04-15T03:04:33.000+0000" }, { "id": "408823", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and irrelevance. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T07:01:14.000+0000", "updated": "2017-03-03T07:01:14.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }