{ "id": "84230", "key": "TIMOB-6893", "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": "12092", "description": "", "name": "Sprint 2011-52", "archived": true, "released": true, "releaseDate": "2011-12-30" } ], "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2012-01-23T16:52:19.000+0000", "created": "2011-12-22T16:00:17.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-01T02:51:26.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. Problem\r\n\r\nNotification from other app crashes app playing video\r\n\r\nh2. Test case\r\n\r\n* Create a mobile project using the attached app.js file\r\n* Place a movie file that includes sound at Resources/movie.mov and run the app on the iPhone\r\n* Arrange for a notification from another app while the movie is playing. You can use the built-in Reminders app\r\n* Open the app that sent the notification via the notification's alert dialog, then return to the sample app\r\n* At this point the sample app will crash. See also stack trace below.\r\n\r\nNOTE: The notification has to come in the form of an alert dialog; banners don't trigger this problem.\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n orientationModes: [ Ti.UI.PORTRAIT ]\r\n});\r\n\r\nvar videoPlayerView = Ti.Media.createVideoPlayer({\r\n media: 'movie.mov',\r\n movieControlMode: Ti.Media.VIDEO_CONTROL_EMBEDDED,\r\n mediaControlStyle: Ti.Media.VIDEO_CONTROL_EMBEDDED,\r\n scalingMode: Ti.Media.VIDEO_SCALING_ASPECT_FIT,\r\n autoplay: false,\r\n top:60\r\n});\r\n\r\nwin.add(videoPlayerView);\r\n\r\nwin.open();\r\n{code}\r\n\r\n\r\n\r\nh2. Logs\r\n\r\n{code}\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : [ERROR] The application has crashed with an unhandled exception. Stack trace:\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 0 CoreFoundation 0x340fa8bf __exceptionPreprocess + 162\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 1 libobjc.A.dylib 0x3434a1e5 objc_exception_throw + 32\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 2 AVFoundation 0x36d81cb5 -[AVPlayerItem _attachToPlayer:forImmediateEnqueueing:shouldAppendItem:] + 340\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 3 AVFoundation 0x36d721f7 -[AVPlayer _insertPlaybackItemOfItem:inPlayerQueueAfterPlaybackItemOfItem:] + 42\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 4 AVFoundation 0x36d79bf3 __-[AVPlayer _attachItem:andPerformOperation:withObject:]_block_invoke_2 + 1098\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 5 libdispatch.dylib 0x36d23d55 _dispatch_call_block_and_release + 12\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 6 libdispatch.dylib 0x36d2ee8d _dispatch_main_queue_callback_4CF$VARIANT$up + 196\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 7 CoreFoundation 0x340cd2dd __CFRunLoopRun + 1268\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 8 CoreFoundation 0x340504dd CFRunLoopRunSpecific + 300\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 9 CoreFoundation 0x340503a5 CFRunLoopRunInMode + 104\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 10 GraphicsServices 0x308d4fcd GSEventRunModal + 156\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 11 UIKit 0x374d1743 UIApplicationMain + 1090\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 12 babyfaces tests 0x0000453b babyfaces tests + 13627\r\nDec 22 15:51:11 unknown UIKitApplication:com.logicallabs.babyfacestest[0xff95][6512] : 13 babyfaces tests 0x00003dc0 babyfaces tests + 11712\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Media - notification from another app crashes Titanium app that is playing video", "creator": { "name": "zpapp", "key": "zpapp", "displayName": "Zsombor Papp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "zpapp", "key": "zpapp", "displayName": "Zsombor Papp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* iPhone 4 and iPhone 4S\r\n* iOS 5.0.1\r\n* Ti SDK 1.8.0.1", "comment": { "comments": [ { "id": "177099", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thank you for raising this issue, Zsombor. Please note the changes that were necessary in order for me to be able to escalate it, as described in [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist].\r\n\r\nWould you test this problem with the official release from yesterday, just in case it's been solved?\r\n\r\nI will mark this resolved for now. Once you have let me know about the above, reopen it, and I will then move it to the main project.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-23T03:05:51.000+0000", "updated": "2011-12-23T03:05:51.000+0000" }, { "id": "177116", "author": { "name": "zpapp", "key": "zpapp", "displayName": "Zsombor Papp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It does crash with official release SDK 1.8.0.1.", "updateAuthor": { "name": "zpapp", "key": "zpapp", "displayName": "Zsombor Papp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-23T07:38:34.000+0000", "updated": "2011-12-23T07:38:34.000+0000" }, { "id": "177117", "author": { "name": "zpapp", "key": "zpapp", "displayName": "Zsombor Papp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I don't seem to have permission to change the status of the ticket.", "updateAuthor": { "name": "zpapp", "key": "zpapp", "displayName": "Zsombor Papp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-23T07:40:07.000+0000", "updated": "2011-12-23T07:40:07.000+0000" }, { "id": "177346", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce iPod 4GT iOS 5.0.1 (which does not come with Reminders, I used another alarm app which sends scheduled notifications).\r\n\r\nReassigning to Blain since he has access to a 4S device.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-27T16:56:12.000+0000", "updated": "2011-12-27T16:56:12.000+0000" }, { "id": "177348", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Assigning back to me; can dupe on an iPad 2. This appears to be a dual-core/A5-specific problem. Crash message indicates that it could actually be an Apple bug.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-27T17:01:16.000+0000", "updated": "2011-12-27T17:04:36.000+0000" }, { "id": "177446", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Could not find pull request, but manually pulled. Unfortunately, the same crasher still happens. Perhaps we should make a radar about it? Can we recreate it outside of titanium?", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-28T11:43:08.000+0000", "updated": "2011-12-28T11:43:08.000+0000" }, { "id": "177517", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was both able to recreate and possibly resolve outside Titanium; this is going to get looked at again. The sample app resolution may be different due to multithreading concerns, but this is definitely going to get a radar.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-28T17:32:09.000+0000", "updated": "2011-12-28T17:32:09.000+0000" }, { "id": "177640", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug filed with Apple; Radar # is 10631746. A workaround may be viable; investigating it.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-29T14:21:01.000+0000", "updated": "2011-12-29T14:21:01.000+0000" }, { "id": "177649", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Must HOLD this ticket as it is an Apple bug. The workaround that I discovered in an independent app may not be working for several reasons:\r\n\r\n* Overloaded notification center\r\n* Notification center delivery order\r\n* Multithreading\r\n\r\nGoing to make an attempt to reduce the possibility of multithread issues (movie object managed off main thread) but that will be a last-ditch attempt.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-29T15:39:39.000+0000", "updated": "2011-12-29T15:39:39.000+0000" }, { "id": "177652", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After numerous attempts to get the known workaround to behave appropriately, still getting the crash. We filed the Radar # as above and hopefully this issue is significant enough for Apple to address it within a near timeframe.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-29T15:52:10.000+0000", "updated": "2011-12-29T15:52:10.000+0000" }, { "id": "180184", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "closing as this is an apple bug that we cannot address", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-23T11:04:49.000+0000", "updated": "2012-01-23T11:04:49.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }