{ "id": "86189", "key": "TIMOB-7571", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-02-27T23:32:18.000+0000", "created": "2012-02-07T16:06:47.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:16:54.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": "Description:\r\nFor speed, we packaged our module test applications into APKs and then installed them via adb. When the applications were run on device most (but not all) failed with runtime errors produced when the tableview row was clicked. Console output:\r\n{code}\r\n\r\nE/RhinoObject( 2176): (KrollRuntimeThread) [840,3335] ReferenceError: \"detailWindow\" is not defined. (app://ui.js#1(eval)#1)\r\nE/RhinoObject( 2176): org.mozilla.javascript.EcmaError: ReferenceError: \"detailWindow\" is not defined. (app://ui.js#1(eval)#1)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3784)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3762)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3847)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1846)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java:1785)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1780)\r\nE/RhinoObject( 2176): \tat script(app://ui.js#1(eval):1)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.ScriptRuntime.evalSpecial(ScriptRuntime.java:2598)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.ScriptRuntime.callSpecial(ScriptRuntime.java:2450)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1567)\r\nE/RhinoObject( 2176): \tat script(app://ui.js:1)\r\nE/RhinoObject( 2176): \tat script(app://ui.js:2)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2520)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:300)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:129)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)\r\nE/RhinoObject( 2176): \tat org.appcelerator.kroll.runtime.rhino.js.events._c_anonymous_2(/tmp/events.js:49)\r\nE/RhinoObject( 2176): \tat org.appcelerator.kroll.runtime.rhino.js.events.call(/tmp/events.js)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)\r\nE/RhinoObject( 2176): \tat org.appcelerator.kroll.runtime.rhino.js.events._c_anonymous_3(/tmp/events.js:99)\r\nE/RhinoObject( 2176): \tat org.appcelerator.kroll.runtime.rhino.js.events.call(/tmp/events.js)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\r\nE/RhinoObject( 2176): \tat org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)\r\nE/RhinoObject( 2176): \tat org.appcelerator.kroll.runtime.rhino.js.events.call(/tmp/events.js)\r\nE/RhinoObject( 2176): \tat org.appcelerator.kroll.runtime.rhino.RhinoObject.fireEvent(RhinoObject.java:73)\r\nE/RhinoObject( 2176): \tat org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:441)\r\nE/RhinoObject( 2176): \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:602)\r\nE/RhinoObject( 2176): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:347)\r\nE/RhinoObject( 2176): \tat ti.modules.titanium.ui.TableViewProxy.handleMessage(TableViewProxy.java:578)\r\nE/RhinoObject( 2176): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/RhinoObject( 2176): \tat android.os.Looper.loop(Looper.java:132)\r\nE/RhinoObject( 2176): \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:102)\r\nE/TiJSError( 2176): (main) [14,3349] ----- Titanium Javascript Runtime Error -----\r\nE/TiJSError( 2176): (main) [0,3349] - In app://ui.js#1(eval):1,0\r\nE/TiJSError( 2176): (main) [0,3349] - Message: ReferenceError: \"detailWindow\" is not defined. (app://ui.js#1(eval)#1)\r\nE/TiJSError( 2176): (main) [1,3350] - Source: null\r\n{code}\r\n\r\nSteps to reproduce:\r\n1) Import attached project into studio\r\n2) Set Tiapp.xml to 1.8.01 or later\r\n3) package for distribution to android marketplace.\r\n4) Use adb to install APK\r\n5) Run the app\r\n6) Select \"acceptance tab\" \r\n7) Select any item in the tableview\r\n\r\nResult:\r\nRuntime error, usually relating to \"reference error, detail window is not defined\" but we have seen other things\r\n\r\nOccurs on:\r\nPackaged APKs installed to device\r\nSDK 1.8.0.1\r\nSDK 1.8.1\r\nSDK 1.8.2 (master branch)\r\nV8 and Rhino\r\n\r\nDOES NOT occur on:\r\n\"run on device\" builds \r\nSDK 1.7.5", "attachment": [ { "id": "25654", "filename": "device-2012-02-07-160605.png", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T16:06:47.000+0000", "size": 51662, "mimeType": "image/png" }, { "id": "25653", "filename": "Network.zip", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T16:06:47.000+0000", "size": 2326622, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: packaging - Rhino/v8 - Packaged app produces runtime errors, \"run on device\" version works as expected", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS: 10.7.2\r\nSDK: 1.9.0.v20120207000134\r\nTitanium Studio, build: 1.0.8.201201262211", "comment": { "comments": [ { "id": "182337", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Please also attach a _failing_ APK.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-02-07T18:29:27.000+0000", "updated": "2012-02-07T18:29:27.000+0000" }, { "id": "182338", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Allen and I looked at the test code and it is a combination of Java Script and Google Closure compiler issue. This test cases uses a variable in a string but Closure compiler does not minify it (correctly). Fixing source protection may take care of this issue but it is on borderline of being a platform bug and an application issue.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T18:38:34.000+0000", "updated": "2012-02-07T18:38:34.000+0000" }, { "id": "415654", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:16:54.000+0000", "updated": "2017-03-24T18:16:54.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }