{ "id": "121426", "key": "TIMOB-15544", "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": "15719", "description": "2013 Sprint 26", "name": "2013 Sprint 26", "archived": true, "released": true, "releaseDate": "2014-01-03" }, { "id": "15720", "description": "2013 Sprint 26 API", "name": "2013 Sprint 26 API", "archived": true, "released": true, "releaseDate": "2014-01-03" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-27T23:15:56.000+0000", "created": "2013-10-21T11:43:18.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_titanium", "module_xcodebuild", "qe-testadded", "regression", "supportTeam", "triage" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-31T08:51:11.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": "h2. Description \r\nAttached is a very simple multiple context app using the info.plist key 'Application does not run in background' key set to 'YES'. It crashes after < 10 open/closes of app.\r\n\r\nNote: Issue is reproducible only in 3.1.3GA.\r\n\r\nh2. Test Case\r\nPlease find the attached project that reproduces the issue. Try to open/close the application for less than 10 times and then you are able to reproduce the issue.", "attachment": [ { "id": "43334", "filename": "testApp.zip", "author": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-21T11:43:18.000+0000", "size": 1408708, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS7: info.plist key 'Application does not run in background' causes the application to crash when is set to 'YES'", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 7 & iOS 6\r\nDevice iPhone 4S", "comment": { "comments": [ { "id": "275957", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~rsharma] You indicate it's only reproducible in 3.1.3.GA. What other SDKs did you try? Does it only happen on iOS 7?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-21T16:20:06.000+0000", "updated": "2013-10-21T16:20:06.000+0000" }, { "id": "276193", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Does it matter how fast you open and close the app? Is it in the space of one minute? Or across an hour?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-22T18:27:20.000+0000", "updated": "2013-10-22T18:27:20.000+0000" }, { "id": "284415", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201312151544\r\nSDK:3.2.0.v20131215211321\r\nalloy: 1.3.0-cr\r\nacs: 1.0.10\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-cr3\r\ntitanium-code-processor: 1.1.0-cr2\r\nXcode:5.0.2\r\nOS: Mac OSX 10.9\r\nDevice: Iphone5(v7.0.4),Ipod Touch3(v6.1.3)\r\n\r\n\r\nHope my findings help:\r\n\r\nI could see the strange behavior that app crash(not visible to us) instead it just generates the crash logs. \r\nApp crash(not visible to us) has a reason that info plist has key 'Application does not run in background' set to 'YES'. \r\nHence app always relaunches itself from start.\r\n\r\nSteps to reproduce:\r\n\r\n1)Import the test app attached and run on iOS Device.\r\n2)Tap on any tab. Respective window gets open.\r\n3)Press Home button. So that app gets terminated(as because info plist has key ‘Application does not run’ in background set to true).\r\n4)Now when again I launch the app the app gets restarted and launch itself.\r\n\r\nBut the app throws crash logs as:\r\n{code}\r\n\r\nDec 16 13:55:29 GL-iPhone5 AKLeg[1547] : [ERROR] Can not close root window of the tab. Use removeTab instead\r\nDec 16 13:55:29 GL-iPhone5 AKLeg[1547] : [ERROR] Can not close root window of the tab. Use removeTab instead\r\nDec 16 13:55:29 GL-iPhone5 AKLeg[1547] : [ERROR] Can not close root window of the tab. Use removeTab instead\r\nDec 16 13:55:29 GL-iPhone5 AKLeg[1547] : [ERROR] The application has crashed with an uncaught exception 'org.akleg.TiUITabProxy'.\r\n\tReason:\r\n\tInvalid type passed to function\r\n\tStack trace:\r\n\t\r\n\t0 CoreFoundation 0x2d96ce83 + 130\r\n\t1 libobjc.A.dylib 0x37cc96c7 objc_exception_throw + 38\r\n\t2 AKLeg 0x00181bb9 AKLeg + 760761\r\n\t3 AKLeg 0x0016a8b1 AKLeg + 665777\r\n\t4 AKLeg 0x00153c5d AKLeg + 572509\r\n\t5 AKLeg 0x00154467 AKLeg + 574567\r\n\t6 AKLeg 0x001541ef AKLeg + 573935\r\n\t7 AKLeg 0x001551f7 AKLeg + 578039\r\n\t8 AKLeg 0x00182963 AKLeg + 764259\r\n\t9 AKLeg 0x00182341 AKLeg + 762689\r\n\t10 AKLeg 0x001551b9 AKLeg + 577977\r\n\t11 AKLeg 0x001eea93 AKLeg + 1206931\r\n\t12 AKLeg 0x00141bd3 AKLeg + 498643\r\n\t13 AKLeg 0x00182963 AKLeg + 764259\r\n\t14 AKLeg 0x00182d63 AKLeg + 765283\r\n\t15 AKLeg 0x001c9d63 AKLeg + 1056099\r\n\t16 AKLeg 0x001c9f4f AKLeg + 1056591\r\n\t17 UIKit 0x3017809d + 152\r\n\t18 UIKit 0x30175497 + 2474\r\n\t19 UIKit 0x300f60c7 + 774\r\n\t20 UIKit 0x300f5cfd + 72\r\n\t21 UIKit 0x3015b321 + 664\r\n\t22 GraphicsServices 0x325db76d + 608\r\n\t23 GraphicsServices 0x325db357 + 34\r\n\t24 CoreFoundation 0x2d937777 + 34\r\n\t25 CoreFoundation 0x2d937713 + 346\r\n\t26 CoreFoundation 0x2d935edf + 1406\r\n\t27 CoreFoundation 0x2d8a0471 CFRunLoopRunSpecific + 524\r\n\t28 CoreFoundation 0x2d8a0253 CFRunLoopRunInMode + 106\r\n\t29 GraphicsServices 0x325da2eb GSEventRunModal + 138\r\n\t30 UIKit 0x30155845 UIApplicationMain + 1136\r\n\t31 AKLeg 0x000d050f AKLeg + 34063\r\n\t32 libdyld.dylib 0x381c2ab7 + 2\r\nDec 16 13:55:29 GL-iPhone5 AKLeg[1547] : *** Terminating app due to uncaught exception 'org.akleg.TiUITabProxy', reason: 'Invalid type passed to function'\r\n\t*** First throw call stack:\r\n\t(0x2d96ce83 0x37cc96c7 0x181bb9 0x16a8b1 0x153c5d 0x154467 0x1541ef 0x1551f7 0x182963 0x182341 0x1551b9 0x1eea93 0x141bd3 0x182963 0x182d63 0x1c9d63 0x1c9f4f 0x3017809d 0x30175497 0x300f60c7 0x300f5cfd 0x3015b321 0x325db76d 0x325db357 0x2d937777 0x2d937713 0x2d935edf 0x2d8a0471 0x2d8a0253 0x325da2eb 0x30155845 0xd050f 0x381c2ab7)\r\nDec 16 13:55:29 GL-iPhone5 ReportCrash[1548] : ReportCrash acting against PID 1547\r\nDec 16 13:55:29 GL-iPhone5 ReportCrash[1548] : Formulating crash report for process AKLeg[1547]\r\nDec 16 13:55:29 GL-iPhone5 com.apple.launchd[1] (UIKitApplication:org.akleg.iphoneapp[0xeb72][1547]) : (UIKitApplication:org.akleg.iphoneapp[0xeb72]) Job appears to have crashed: Abort trap: 6\r\nDec 16 13:55:29 GL-iPhone5 backboardd[28] : Application 'UIKitApplication:org.akleg.iphoneapp[0xeb72]' exited abnormally with signal 6: Abort trap: 6\r\nDec 16 13:55:29 GL-iPhone5 ReportCrash[1548] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/AKLeg_2013-12-16-135529_GL-iPhone5.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0\r\n{code}\r\n \r\nThe above scenario is reproduced in latest sdk build:3.2.0.v20131215211321 as well as on 3.1.3.GA on both iOS6 and 7 devices.\r\n\r\nBut using 3.1.2.GA no crash logs are generated instead just gets a warning :\r\n{code}\r\n[WARN] Can not close root window of a tab. Use TabGroup.removeTab instead\r\n{code}", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-16T08:58:22.000+0000", "updated": "2013-12-16T08:59:00.000+0000" }, { "id": "284573", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Alright looks like a bug we introduced as part of windows refactor. (3.1.3)\n\nTurns out in TiUITabProxy.m ; closeWindowProxy:animated: method when it trys to find the navigationController. the rootWindow is nil and is no longer a type of TiWindowProxy causing the crash. \n", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-16T22:26:45.000+0000", "updated": "2013-12-16T22:26:45.000+0000" }, { "id": "285923", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "MASTER PR : https://github.com/appcelerator/titanium_mobile/pull/5166", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-27T01:38:10.000+0000", "updated": "2013-12-27T01:38:10.000+0000" }, { "id": "286280", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "32X PR https://github.com/appcelerator/titanium_mobile/pull/5175", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-30T19:00:55.000+0000", "updated": "2014-01-03T18:13:52.000+0000" }, { "id": "286851", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified, using the attached sample app, that the app does not silently crash after pressing the home button.\n\nTested on:\n\nAppcelerator Studio, build: 3.2.1.201401052158\nSDK build: 3.2.1.v20140106134045, 3.3.0.v20140106141645\nCLI: 3.2.0\nAlloy: 1.3.1-beta\nXcode: 5.0.2\nDevices: iphone 4s (6.0.1), iphone 5s (7.0.2)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-07T00:34:42.000+0000", "updated": "2014-01-07T00:34:42.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }