{ "id": "78536", "key": "TIMOB-4841", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-08-26T11:52:19.000+0000", "created": "2011-07-29T17:00:42.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [ { "id": "14032", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "83301", "key": "TIMOB-6414", "fields": { "summary": "Android: The globalPoint/x/y properties of Titanium.UI.view's click event does not work", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "12555", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "79679", "key": "TIMOB-5118", "fields": { "summary": "iOS: Deprecate globalpoint member", "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 } } } }, { "id": "12554", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "79684", "key": "TIMOB-5122", "fields": { "summary": "Add a member function to View called 'convertPointToView'", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:33: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "globalPoint is null for touchstart events for windows or views\r\n\r\nStep 1: run the code below\r\nStep 2: tap the window\r\nStep 3: look at the error in the console\r\n\r\n{code:title=\"app.js\"}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'blue'\r\n});\r\nwin.addEventListener('touchstart', function(e){\r\n\r\n Ti.API.info(\"Touch Started for view: \" + e.source);\r\n Ti.API.info(\"View Center: \" + e.source.center.x + \",\" + e.source.center.y);\r\n Ti.API.info(\"e.globalPoint: \" + e.globalPoint);\r\n Ti.API.info(\"Start Touch: \" + e.globalPoint.x + \",\" + e.globalPoint.y);\r\n});\r\nwin.open();\r\n{code}\r\n\r\n{code:title=\"console\"}\r\nW/InputManagerService( 84): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41a3c340\r\nD/dalvikvm( 84): GC_CONCURRENT freed 1895K, 51% free 13619K/27655K, paused 7ms+11ms\r\nI/TiAPI ( 602): (kroll$1: app://app.js) [27143,93021] Touch Started for view: [Ti.UI.Window]\r\nI/TiAPI ( 602): (kroll$1: app://app.js) [14,93035] View Center: 640,363.5\r\nI/TiAPI ( 602): (kroll$1: app://app.js) [4,93039] e.globalPoint: null\r\nE/KrollCallback( 602): (kroll$1: app://app.js) [3,93042] ECMA Error evaluating source, invocation: [callMethod UI.Window.UI.Window:event:touchstart null], message: TypeError: Cannot read property \"x\" from null (file:///android_asset/Resources/app.js#9)\r\nE/KrollCallback( 602): org.mozilla.javascript.EcmaError: TypeError: Cannot read property \"x\" from null (file:///android_asset/Resources/app.js#9)\r\nE/KrollCallback( 602): \tat org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3784)\r\nE/KrollCallback( 602): \tat org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3762)\r\nE/KrollCallback( 602): \tat org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3790)\r\nE/KrollCallback( 602): \tat org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3809)\r\nE/KrollCallback( 602): \tat org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3822)\r\nE/KrollCallback( 602): \tat org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1507)\r\nE/KrollCallback( 602): \tat org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1398)\r\nE/KrollCallback( 602): \tat script(file:///android_asset/Resources/app.js:9)\r\nE/KrollCallback( 602): \tat org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\nE/KrollCallback( 602): \tat org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\nE/KrollCallback( 602): \tat org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\nE/KrollCallback( 602): \tat org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\nE/KrollCallback( 602): \tat org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)\r\nE/KrollCallback( 602): \tat org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139)\r\nE/KrollCallback( 602): \tat org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164)\r\nE/KrollCallback( 602): \tat android.os.Handler.handleCallback(Handler.java:587)\r\nE/KrollCallback( 602): \tat android.os.Handler.dispatchMessage(Handler.java:92)\r\nE/KrollCallback( 602): \tat android.os.Looper.loop(Looper.java:126)\r\nE/KrollCallback( 602): \tat org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)\r\nE/TiJSError( 602): (kroll$1: app://app.js) [16,93058] ----- Titanium Javascript Runtime Error -----\r\nE/TiJSError( 602): (kroll$1: app://app.js) [3,93061] - In file:///android_asset/Resources/app.js:9,0\r\nE/TiJSError( 602): (kroll$1: app://app.js) [1,93062] - Message: TypeError: Cannot read property \"x\" from null (file:///android_asset/Resources/app.js#9)\r\nE/TiJSError( 602): (kroll$1: app://app.js) [3,93065] - Source: null\r\nD/SntpClient( 84): request time failed: java.net.SocketException: Address family not supported by protocol\r\nD/SntpClient( 84): request time failed: java.net.SocketException: Address family not supported by protocol\r\n{code}\r\n\r\nh3. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-115761", "attachment": [], "flagged": false, "summary": "Android: globalPoint is null for touchstart events for window and view", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.7.2\r\nAndroid Emulator 3.0", "comment": { "comments": [ { "id": "164163", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "globalpoint is being deprecated. Please see linked item for customer solution.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-26T11:52:19.000+0000", "updated": "2011-08-26T11:52:19.000+0000" }, { "id": "414888", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix and with reference to the above comments. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:33:14.000+0000", "updated": "2017-03-22T20:33:14.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }