{ "id": "133610", "key": "TIMOB-17548", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-27T21:09:36.000+0000", "created": "2014-07-23T13:46:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_network", "qe-manualtest" ], "versions": [], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-09-02T17:23:52.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": "HTTP client calls fail and crash the app. The following error is reported:\r\nAssertion failed: (self.method != nil), function -[APSHTTPRequest send], file /Users/vduggal/ForkedRepos/APSHTTPClient/APSHTTPClient/APSHTTPRequest.m, line 66.\r\n\r\nIt looks like something is not properly linked in libAPSHTTPClient.a , as the error is pointing to a path in vduggal's computer.", "attachment": [], "flagged": false, "summary": "iOS: APSHTTPRequest send fails with assertion on self.method", "creator": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "environment": "IOS, Mavericks, XCode 5.0, SDK 3.3.0 GA", "closedSprints": [ { "id": 175, "state": "closed", "name": "2014 Sprint 17 SDK", "startDate": "2014-08-21T22:07:00.000Z", "endDate": "2014-08-30T00:00:00.000Z", "completeDate": "2014-09-02T19:56:25.517Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "315580", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Hi,\r\n\r\nCan you provide us a simple test case for this problem. Thanks.\r\n\r\nRegards,\r\nShuo", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-07-24T05:54:47.000+0000", "updated": "2014-07-24T05:54:47.000+0000" }, { "id": "316561", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Related to this community discussion:\r\n\r\nhttps://developer.appcelerator.com/question/176379/error-assertion-failed-titanium-330ga\r\n\r\nlooks like is happening to at least 3 people, but there is no way to reproduce it consistently just yet. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-08-01T00:24:55.000+0000", "updated": "2014-08-01T00:24:55.000+0000" }, { "id": "316830", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "Indeed. The day I posted I had the issue, and since then I couldn't reproduce. It was happening within a series of nested callbacks between httpclient and the facebook module. I'll give it anothe try isolating some test code. \r\nAnyway, this line from the log should give an idea of what's going on:\r\n /Users/vduggal/ForkedRepos/APSHTTPClient/APSHTTPClient/APSHTTPRequest.m\r\nthe local path in vduggal's Mac", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-08-04T14:11:59.000+0000", "updated": "2014-08-04T14:11:59.000+0000" }, { "id": "318621", "author": { "name": "lawrence.wilson@abannan.com", "key": "lawrence.wilson@abannan.com", "displayName": "Lawrence Wilson", "active": true, "timeZone": "Europe/London" }, "body": "I have updated the Q&A post https://developer.appcelerator.com/question/176379/error-assertion-failed-titanium-330ga with my experience/solution - not sure if it will help in your investigation.\r\nCheers", "updateAuthor": { "name": "lawrence.wilson@abannan.com", "key": "lawrence.wilson@abannan.com", "displayName": "Lawrence Wilson", "active": true, "timeZone": "Europe/London" }, "created": "2014-08-14T08:12:44.000+0000", "updated": "2014-08-14T08:12:44.000+0000" }, { "id": "320107", "author": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "body": "I also got this error when I tested a small yql query.\r\nMy environment:\r\nOS X 10.9.4\r\nTitanium Studio: build: 3.3.0.201407100905\r\nTitanium SDK: 3.3.0.GA\r\niOS Simulator: iPhone Retina (4-inch 64-bit), Version 7.1(11D167)\r\nXcode: Version 5.1.1 (5B1008)\r\n\r\n\r\nThe script is really very simple.\r\n{code}\r\nvar yql = 'SELECT * from yahoo.finance.xchange WHERE pair IN (\"USDEUR\")';\r\n \r\nTi.API.info(\"yql: \" + yql);\r\n \r\nTi.Yahoo.yql(yql, function(e) {\r\n Ti.API.info(JSON.stringify(e.data));\r\n});\r\n{code}\r\n\r\nConsole log:\r\n{code}\r\n-- Start simulator log -------------------------------------------------------\r\n[INFO] : Application started\r\n[DEBUG] : Reading stylesheet from: /Users/mkroeger/Library/Application Support/iPhone Simulator/7.1-64/Applications/DCA3CCBA-7DCE-4F64-AB42-8AD55E95A629/yql.app/stylesheet.plist\r\n[DEBUG] : objc[34024]: Class AXEmojiUtilities is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/PrivateFrameworks/AccessibilityUtilities.framework/AccessibilityUtilities and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libAXSpeechManager.dylib. One of the two will be used. Which one is undefined.\r\n[DEBUG] : 2014-08-25 14:03:35.914 yql[34024:70b] Cannot find executable for CFBundle 0xd427230 (not loaded)\r\n[DEBUG] : 2014-08-25 14:03:35.929 yql[34024:70b] Cannot find executable for CFBundle 0xce2b440 (not loaded)\r\n[DEBUG] : 2014-08-25 14:03:35.933 yql[34024:70b] Cannot find executable for CFBundle 0xd1234a0 (not loaded)\r\n[DEBUG] : 2014-08-25 14:03:35.952 yql[34024:70b] Cannot find executable for CFBundle 0xce49440 (not loaded)\r\n[DEBUG] : 2014-08-25 14:03:35.955 yql[34024:70b] Cannot find executable for CFBundle 0xd06f140 (not loaded)\r\n[DEBUG] : 2014-08-25 14:03:35.958 yql[34024:70b] Cannot find executable for CFBundle 0xd439d10 (not loaded)\r\n[DEBUG] : 2014-08-25 14:03:35.989 yql[34024:70b] You've implemented -[ application:performFetchWithCompletionHandler:], but you still need to add \"fetch\" to the list of your supported UIBackgroundModes in your Info.plist.\r\n[DEBUG] : 2014-08-25 14:03:35.989 yql[34024:70b] You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add \"remote-notification\" to the list of your supported UIBackgroundModes in your Info.plist.\r\n[INFO] : yql/1.0 (3.3.0.787cd39)\r\n[DEBUG] : Loading: /Users/mkroeger/Library/Application Support/iPhone Simulator/7.1-64/Applications/DCA3CCBA-7DCE-4F64-AB42-8AD55E95A629/yql.app/app.js, Resource: app_js\r\n[INFO] : yql: SELECT * from yahoo.finance.xchange WHERE pair IN (\"USDEUR\")\r\n[DEBUG] : Application booted in 27.007043 ms\r\n[DEBUG] : Assertion failed: (self.method != nil), function -[APSHTTPRequest send], file /Users/vduggal/ForkedRepos/APSHTTPClient/APSHTTPClient/APSHTTPRequest.m, line 66.\r\n-- End simulator log ---------------------------------------------------------\r\n[INFO] : Application has exited from iOS Simulator\r\n[INFO] : Project built successfully in 18s 364ms\r\n{code}\r\n\r\nHope that helps,\r\n\r\nMatthias", "updateAuthor": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-08-25T12:28:32.000+0000", "updated": "2014-08-25T12:28:32.000+0000" }, { "id": "320108", "author": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "body": "Titanium SDK: 3.2.3.GA works as expected:\r\n{code}\r\n-- Start simulator log -------------------------------------------------------\r\n[DEBUG] : Reading stylesheet from: /Users/mkroeger/Library/Application Support/iPhone Simulator/7.1-64/Applications/DCA3CCBA-7DCE-4F64-AB42-8AD55E95A629/yql.app/stylesheet.plist\r\n[DEBUG] : objc[40436]: Class AXEmojiUtilities is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/PrivateFrameworks/AccessibilityUtilities.framework/AccessibilityUtilities and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libAXSpeechManager.dylib. One of the two will be used. Which one is undefined.\r\n[DEBUG] : 2014-08-25 14:43:12.987 yql[40436:70b] Cannot find executable for CFBundle 0xce8bc10 (not loaded)\r\n[INFO] : Application started\r\n[DEBUG] : 2014-08-25 14:43:12.990 yql[40436:70b] Cannot find executable for CFBundle 0xcf9a5c0 (not loaded)\r\n[DEBUG] : 2014-08-25 14:43:12.994 yql[40436:70b] Cannot find executable for CFBundle 0xd397a70 (not loaded)\r\n[DEBUG] : 2014-08-25 14:43:13.009 yql[40436:70b] Cannot find executable for CFBundle 0xcfa77d0 (not loaded)\r\n[DEBUG] : 2014-08-25 14:43:13.017 yql[40436:70b] Cannot find executable for CFBundle 0xd2949a0 (not loaded)\r\n[DEBUG] : 2014-08-25 14:43:13.019 yql[40436:70b] Cannot find executable for CFBundle 0xcfadec0 (not loaded)\r\n[DEBUG] : 2014-08-25 14:43:13.057 yql[40436:70b] You've implemented -[ application:performFetchWithCompletionHandler:], but you still need to add \"fetch\" to the list of your supported UIBackgroundModes in your Info.plist.\r\n[DEBUG] : 2014-08-25 14:43:13.058 yql[40436:70b] You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add \"remote-notification\" to the list of your supported UIBackgroundModes in your Info.plist.\r\n[INFO] : yql/1.0 (3.2.3.GA.b958a70)\r\n[DEBUG] : Analytics is enabled = YES\r\n[DEBUG] : Loading: /Users/mkroeger/Library/Application Support/iPhone Simulator/7.1-64/Applications/DCA3CCBA-7DCE-4F64-AB42-8AD55E95A629/yql.app/app.js, Resource: app_js\r\n[INFO] : yql: SELECT * from yahoo.finance.xchange WHERE pair IN (\"USDEUR\")\r\n[DEBUG] : Application booted in 22.198975 ms\r\n[INFO] : {\"rate\":{\"Time\":\"8:43am\",\"Ask\":\"0.7579\",\"id\":\"USDEUR\",\"Bid\":\"0.7578\",\"Name\":\"USD to EUR\",\"Rate\":\"0.7578\",\"Date\":\"8/25/2014\"}}\r\n{code}", "updateAuthor": { "name": "mkroeger", "key": "mkroeger", "displayName": "Matthias Kroeger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-08-25T12:46:58.000+0000", "updated": "2014-08-25T12:46:58.000+0000" }, { "id": "320666", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This was fixed in PR: https://github.com/appcelerator/titanium_mobile/pull/5958", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-08-27T21:09:36.000+0000", "updated": "2014-08-27T21:09:36.000+0000" }, { "id": "320827", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{code}\r\n[INFO] : TIMB-17548/1.0 (3.4.0.5640a23)\r\n[INFO] : yql: SELECT * from yahoo.finance.xchange WHERE pair IN (\"USDEUR\")\r\n[INFO] : {\"rate\":{\"Time\":\"12:50pm\",\"Ask\":\"0.7592\",\"id\":\"USDEUR\",\"Bid\":\"0.759\",\"Name\":\"USD to EUR\",\"Rate\":\"0.7591\",\"Date\":\"8/28/2014\"}}\r\n{code}\r\n\r\nEnvironment tested\r\nMac osx 10.9.4 Maverics\r\nAppcelerator Studio, build: 3.4.0.201408201526\r\nTitanium SDK, build: 3.4.0.v20140827165712\r\ntitanium@3.4.0-dev (git://github.com/appcelerator/titanium.git#9079326639c7f610dafee33dd16742de7d92d795)\r\nXcode6-beta4\r\nDevice: iPhone 5c iOS 7.1", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-28T17:07:42.000+0000", "updated": "2014-08-28T17:07:42.000+0000" }, { "id": "321362", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appcelerator Studio, build: 3.4.0.201408291834\r\nTitanium SDK, build: 3.4.0.v20140829184521\r\nXcode6-beta4\r\nDevice:\r\niPhone 5S\r\n\r\nh5.Actual result\r\n{code}\r\n[INFO] : yql: SELECT * from yahoo.finance.xchange WHERE pair IN (\"USDEUR\")\r\n[INFO] : {\"rate\":{\"Time\":\"1:09pm\",\"Ask\":\"0.7618\",\"id\":\"USDEUR\",\"Bid\":\"0.7616\",\"Name\":\"USD to EUR\",\"Rate\":\"0.7617\",\"Date\":\"9/2/2014\"}}\r\n{code}", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-02T17:23:52.000+0000", "updated": "2014-09-02T17:23:52.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }