{ "id": "147490", "key": "TIMOB-19234", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-11-03T18:49:51.000+0000", "created": "2015-05-04T10:29:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "debugger-ios", "ios", "notable", "sdk", "studio" ], "versions": [], "issuelinks": [ { "id": "49661", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "149794", "key": "TIMOB-19231", "fields": { "summary": "Debug: Breakpoint won't stop if the app name contains space ", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-02-21T19:49: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": "h2. iOS debugger connection refused with SDKs 3.5.0 and 3.5.1\r\nAfter upgrading from SDK 3.4.1 to 3.5.0 (and 3.5.1), I can no longer debug under iOS. The iOS emulator starts and my application is loaded and runs ok. However, although Studio switches to the debug perspective, any breakpoints I set are ignored and I have no debugging capabilities. The only symptom indicating any issue are the series of messages like the one shown below in the Studio log file. Reverting to SDK 3.4.1 in my tiapp.xml restores the debugging capabilities.\r\n\r\nh2. Logs\r\n{code:lang=none|title=~/Documents/Titanium_Studio_Workspace/.metadata/.log}\r\n!ENTRY com.aptana.js.debug.core 4 4 2015-05-04 05:30:38.465\r\n!MESSAGE \r\n!STACK 0\r\njava.lang.NullPointerException\r\n\tat org.eclipse.core.runtime.Path.fromPortableString(Path.java:103)\r\n\tat com.appcelerator.titanium.core.launching.TitaniumAppURIMapper.resolve(TitaniumAppURIMapper.java:71)\r\n\tat com.aptana.js.debug.core.internal.model.JSDebugTarget.resolveSourceFile(JSDebugTarget.java:2199)\r\n\tat com.aptana.js.debug.core.internal.model.JSDebugTarget.handleScripts(JSDebugTarget.java:730)\r\n\tat com.aptana.js.debug.core.internal.model.JSDebugTarget.access$6(JSDebugTarget.java:703)\r\n\tat com.aptana.js.debug.core.internal.model.JSDebugTarget$DebugConnectionHandler.handleMessage(JSDebugTarget.java:2355)\r\n\tat com.aptana.js.debug.core.internal.model.DebugConnection.handleMessage(DebugConnection.java:228)\r\n\tat com.aptana.js.debug.core.internal.model.DebugConnection.access$3(DebugConnection.java:223)\r\n\tat com.aptana.js.debug.core.internal.model.DebugConnection$1.run(DebugConnection.java:155)\r\n{code}\r\n\r\nh2. Discussions\r\nHere is a Q&A discussion where several other developers are reporting a similar issue...\r\n\r\n[http://developer.appcelerator.com/question/181417/debug-connection-refused-with-sdk-35-and-ios]", "attachment": [ { "id": "55754", "filename": "2015-Jun-07-iosdebugger.log", "author": { "name": "robgabbard", "key": "robgabbard", "displayName": "Rob Gabbard", "active": true, "timeZone": "America/Kentucky/Louisville" }, "created": "2015-06-07T11:42:00.000+0000", "size": 15191, "mimeType": "text/plain" }, { "id": "55755", "filename": "2015-Jun-07-StudioLogFile.log", "author": { "name": "robgabbard", "key": "robgabbard", "displayName": "Rob Gabbard", "active": true, "timeZone": "America/Kentucky/Louisville" }, "created": "2015-06-07T11:42:00.000+0000", "size": 35225, "mimeType": "text/plain" }, { "id": "55470", "filename": "DiagTest.txt", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-19T17:58:01.000+0000", "size": 39649, "mimeType": "text/plain" }, { "id": "55469", "filename": "logfile.txt", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-19T17:58:19.000+0000", "size": 5220213, "mimeType": "text/plain" }, { "id": "55220", "filename": "ti-info.txt", "author": { "name": "robgabbard", "key": "robgabbard", "displayName": "Rob Gabbard", "active": true, "timeZone": "America/Kentucky/Louisville" }, "created": "2015-05-04T10:14:55.000+0000", "size": 8651, "mimeType": "text/plain" }, { "id": "55468", "filename": "TiInfo-Config.txt", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-19T17:58:14.000+0000", "size": 28066, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS debugger connection refused with SDKs 3.5.0 and 3.5.1", "creator": { "name": "robgabbard", "key": "robgabbard", "displayName": "Rob Gabbard", "active": true, "timeZone": "America/Kentucky/Louisville" }, "subtasks": [], "reporter": { "name": "robgabbard", "key": "robgabbard", "displayName": "Rob Gabbard", "active": true, "timeZone": "America/Kentucky/Louisville" }, "environment": "Here is a subset of the *ti info* output. The remainder of the output has been attached [^ti-info.txt].\r\n{code:lang=none}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.10.3\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8.0GB\r\n\r\nNode.js\r\n Node.js Version = 0.10.35\r\n npm Version = 1.4.28\r\n\r\nTitanium CLI\r\n CLI Version = 3.4.2\r\n node-appc Version = 0.2.25\r\n\r\nTitanium SDKs\r\n 3.5.1.GA\r\n Version = 3.5.1\r\n Install Location = /Users/rob/Library/Application Support/Titanium/mobilesdk/osx/3.5.1.GA\r\n Platforms = iphone, mobileweb, android, blackberry\r\n git Hash = 96875c9\r\n git Timestamp = 03/05/15 10:08\r\n node-appc Version = 0.2.24\r\n{code}", "closedSprints": [ { "id": 449, "state": "closed", "name": "2015 Sprint 14 Studio", "startDate": "2015-07-06T16:47:27.709Z", "endDate": "2015-07-18T01:47:00.000Z", "completeDate": "2015-07-30T23:23:52.053Z", "originBoardId": 113 }, { "id": 517, "state": "closed", "name": "2015 Sprint 22 SDK", "startDate": "2015-10-24T00:30:42.059Z", "endDate": "2015-11-07T01:30:00.000Z", "completeDate": "2015-11-09T02:37:29.441Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "353005", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Softerware is getting the same issue, as a note this is only happening for them in one of their apps (their main app) im including the logs and tiConfig files from their enviroment", "updateAuthor": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-19T17:59:31.000+0000", "updated": "2015-05-19T17:59:31.000+0000" }, { "id": "353985", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Let's start by fixing the NPE. Can we reproduce this in-house?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-01T16:42:44.000+0000", "updated": "2015-06-01T16:42:44.000+0000" }, { "id": "354178", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~kkolipaka] Can you take a look into this ?", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-03T00:09:59.000+0000", "updated": "2015-06-03T00:09:59.000+0000" }, { "id": "354323", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/aptana/studio3/pull/328", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-04T10:14:41.000+0000", "updated": "2015-06-04T10:14:41.000+0000" }, { "id": "354490", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~egomez] We capture the debug protocol communication in the logs at the file {{/.metadata/.plugins/com.appcelerator.titanium.ios.core/logs/iosdebugger.log}}. Default workspace for Appcelerator Studio is {{/Users//Documents/Appcelerator_Studio_Workspace}}. Can you ask the customer to send this file after recreating the problem ? As we were unable to reproduce the problem here, it will give us insight to understand why we were not receiving the correct path of the file from SDK debugger.", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-06T01:58:36.000+0000", "updated": "2015-06-06T01:58:36.000+0000" }, { "id": "354525", "author": { "name": "robgabbard", "key": "robgabbard", "displayName": "Rob Gabbard", "active": true, "timeZone": "America/Kentucky/Louisville" }, "body": "I have attached both the Studio log file and the iosdebugger.log from a session exhibiting the problem. Before running the iOS emulator, I cleaned the project and cleared both log files. This is with the Titanium SDK set to 3.5.1.GA. In this particular instance, I had a breakpoint set at line 318 of the source controller app/alloy/controllers/map.js which mapped to line 358 in it's generated counterpart at Resources/iphone/alloy/controllers/map.js.", "updateAuthor": { "name": "robgabbard", "key": "robgabbard", "displayName": "Rob Gabbard", "active": true, "timeZone": "America/Kentucky/Louisville" }, "created": "2015-06-07T11:42:06.000+0000", "updated": "2015-06-07T11:42:06.000+0000" }, { "id": "354533", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Space in the project name is causing this issue. I could reproduce the issue If I create a project with a space in it.\r\n{code}\r\n[28:16.520] Recv: >log*out*[DEBUG] Loading: /Users/rob/Library/Developer/CoreSimulator/Devices/AAC8D00D-62F1-49DD-9814-24C691E2753C/data/Containers/Bundle/Application/E6CFD2F4-E3C6-4738-9166-231397890EAA/Riverbend Music Center.app/app.js, Resource: app_js<\r\n[28:16.532] Recv: >scripts*created*1|app:.app/app.js||1|9<\r\n{code}\r\n\r\n_/Riverbend Music Center.app/app.js_ converted as _app:.app/app.js_ rather than _app:/app.js_\r\n\r\n[~pinnamuri] Looks like iOS team has to look into it.\r\n", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-08T06:09:19.000+0000", "updated": "2015-06-08T06:09:19.000+0000" }, { "id": "354613", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~robgabbard] Thanks for providing the logs. Until we address this issue, as a workaround, would it be possible to rename the project to remove spaces in order to debug the app ?", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-08T20:58:19.000+0000", "updated": "2015-06-08T20:58:19.000+0000" }, { "id": "354625", "author": { "name": "rtrueman", "key": "rtrueman", "displayName": "Rob Trueman", "active": true, "timeZone": "America/New_York" }, "body": "That's not the case with our app, DPMobile. There are no spaces in the name. I believe Marco sent all my information, but if you need anything else I'm happy to send it along. \r\n\r\nRob Trueman\r\nSofterWare, Inc.", "updateAuthor": { "name": "rtrueman", "key": "rtrueman", "displayName": "Rob Trueman", "active": true, "timeZone": "America/New_York" }, "created": "2015-06-08T22:15:51.000+0000", "updated": "2015-06-08T22:15:51.000+0000" }, { "id": "354630", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-08T23:50:27.000+0000", "updated": "2015-06-08T23:50:27.000+0000" }, { "id": "354752", "author": { "name": "rtrueman", "key": "rtrueman", "displayName": "Rob Trueman", "active": true, "timeZone": "America/New_York" }, "body": "I give up... how do I attach/upload the file?\r\n\r\nAlso, my project is a classic app. I set a breakpoint at line 2516 of the app.js file (this project was mostly all app.js when I got it) and ran it in the simulator as an iPhone 6 (v. 8.3). It never stopped. Project is set to 3.5.1 GA.", "updateAuthor": { "name": "rtrueman", "key": "rtrueman", "displayName": "Rob Trueman", "active": true, "timeZone": "America/New_York" }, "created": "2015-06-10T13:12:53.000+0000", "updated": "2015-06-10T13:12:53.000+0000" }, { "id": "354881", "author": { "name": "rtrueman", "key": "rtrueman", "displayName": "Rob Trueman", "active": true, "timeZone": "America/New_York" }, "body": "While publishing our latest demo to the app store yesterday and showing another developer the build directory, I was shocked to see the Xcode project named \"DP Mobile\", not \"DPMobile\" as I had expected from the Appcelerator project. This morning I renamed to DPMobile and tested debugging. It worked successfully. For me, I can rename the project until the permanent solution is available. \r\n\r\nThanks for all the support, folks! \r\n\r\nRob", "updateAuthor": { "name": "rtrueman", "key": "rtrueman", "displayName": "Rob Trueman", "active": true, "timeZone": "America/New_York" }, "created": "2015-06-11T15:03:00.000+0000", "updated": "2015-06-11T15:03:00.000+0000" }, { "id": "357831", "author": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~cng][~penrique] Issue is still there with 4.0 GA builds If project is having a space between the project name. The resource uri is returned wrongly from iOS debugger to studio.\r\nCould you please take a look at it ? Attached logs and error reported still valid even today with GA builds. Do let us know If we have to do something from studio.", "updateAuthor": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-16T13:12:41.000+0000", "updated": "2015-07-16T13:12:41.000+0000" }, { "id": "367749", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Debugger PR: https://github.com/appcelerator/titanium_debugger/pull/38\r\nTIMOB Master PR: https://github.com/appcelerator/titanium_mobile/pull/7345", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-26T06:35:37.000+0000", "updated": "2015-10-26T06:35:37.000+0000" }, { "id": "377467", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11.3 (15D21)\r\nStudio 4.5.0.201602170821\r\nTi SDK 5.2.0.v20160220080449\r\nAppc NPM 4.2.3-2\r\nAppc CLI 5.2.0-269\r\nAlloy 1.7.33\r\nXcode 7.2 (7C68)\r\n\r\nWas able to successfully debug multiple Alloy and Classic apps with and without spaces in the name across iOS simulators and devices and the QE test suite.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-21T19:49:52.000+0000", "updated": "2016-02-21T19:49:52.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }