{ "id": "141068", "key": "TIMOB-18197", "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": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-12T23:25:59.000+0000", "created": "2014-12-06T19:17:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.5.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-01-07T22:04:40.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": "The new APM module compiled for 64 bit seems to be throwing the error below when built with the 3.5.Alpha:\r\n\r\n{code}\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 44;\r\n[ERROR] : line = 11;\r\n[ERROR] : nativeLocation = \"-[ComAppceleratorApmModule init:] (ComAppceleratorApmModule.m:65)\";\r\n[ERROR] : nativeReason = \"expected: String, was: (null)\";\r\n[ERROR] : sourceURL = \"file:///Users/aleard/Library/Developer/CoreSimulator/Devices/228D3A95-AE1B-4B41-8F29-8C2B77EF1BC8/data/Containers/Bundle/Application/0F773D55-AA2B-4B9D-93DD-79249A0F01BB/Choreo.app/app.js\";\r\n[ERROR] : stack = \"[native code]\\nglobal code@file:///Users/aleard/Library/Developer/CoreSimulator/Devices/228D3A95-AE1B-4B41-8F29-8C2B77EF1BC8/data/Containers/Bundle/Application/0F773D55-AA2B-4B9D-93DD-79249A0F01BB/Choreo.app/app.js:11:44\";\r\n[ERROR] : }\r\n{code}\r\n\r\n\r\nTo reproduce build an app with the 3.5.Alpha SDK and the 64-bit compiled APM module enabled with services and the following code in the alloy.js file:\r\n\r\n{code}\r\n// START: APM service code injection\r\n// Require the apm module\r\nAlloy.Globals.apm = undefined;\r\ntry {\r\nAlloy.Globals.apm = require(\"com.appcelerator.apm\");\r\n}\r\ncatch (e) {\r\nTi.API.info(\"com.appcelerator.apm module is not available\");\r\n}\r\n\r\n// Initialize the module if it is defined\r\nAlloy.Globals.apm && Alloy.Globals.apm.init();\r\n// END: APM code injection\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: 64-bit APM module throws an error", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK version 3.5.Alpha\r\niOS 8", "comment": { "comments": [ { "id": "335396", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~aleard] Can you try module: https://github.com/appcelerator-modules/com.appcelerator.apm/releases/tag/1.1.0", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-08T18:06:58.000+0000", "updated": "2014-12-08T18:06:58.000+0000" }, { "id": "335845", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Customer have reported this same issue with the current GA i have tested and reproduced using SDK 3.4.0 and 3.4.1 with APM module 1.0.10 ", "updateAuthor": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-10T19:00:18.000+0000", "updated": "2014-12-10T19:00:18.000+0000" }, { "id": "336001", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "body": "After yesterday discussion customer and i have verified that assigning a String parameter to the init method prevents the error to happen in the latest GA, in previous versions and according to our documentation this was an optional parameter.\r\n\r\n{code}\r\nAlloy.Globals.apm = undefined;\r\ntry {\r\n\tAlloy.Globals.apm = require(\"com.appcelerator.apm\");\r\n}\r\ncatch (e) {\r\n\tTi.API.info(\"com.appcelerator.apm module is not available\");\r\n}\r\n\r\n// Initialize the module if it is defined\r\nAlloy.Globals.apm && Alloy.Globals.apm.init('com.appc.support.testAPM');\r\n{code}", "updateAuthor": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-11T15:26:28.000+0000", "updated": "2014-12-11T15:26:28.000+0000" }, { "id": "336004", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you. Does this now remove this as an issue?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-11T15:46:35.000+0000", "updated": "2014-12-11T15:46:35.000+0000" }, { "id": "336087", "author": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "body": "[~ingo] Indeed, I think this is a Documentation bug", "updateAuthor": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "created": "2014-12-11T23:41:16.000+0000", "updated": "2014-12-11T23:41:16.000+0000" }, { "id": "336259", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello all,\r\n\r\nAfter a bit of research this change to the init method was not expected. Rather than document the new behavior we are recommending that the previous behavior be restored. Moving to TIMOB for consideration for 3.5.0 SDK.\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-12T21:59:53.000+0000", "updated": "2014-12-12T21:59:53.000+0000" }, { "id": "336272", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator-modules/com.appcelerator.apm/pull/11\r\n\r\nBuilt module available here: https://github.com/appcelerator-modules/com.appcelerator.apm/releases/tag/1.1.1", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-12T23:19:26.000+0000", "updated": "2014-12-12T23:25:43.000+0000" }, { "id": "338255", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nTitanium SDK 3.5.0.v20150106224118\r\nStudio 3.4.1.201410281743 \r\nXcode 6.1.1\r\n\r\nOn: \r\niPad mini, iOS 8.1\r\niPhone 6, iOS 8.2b3\r\niPhone 4S Sim, iOS 8.1", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-07T22:04:17.000+0000", "updated": "2015-01-07T22:04:17.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }