{ "id": "62762", "key": "TIMOB-2130", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-04-15T03:11:21.000+0000", "created": "2011-04-15T03:11:18.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T18:19:37.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": "{html}

Hi
\nI found a huge issue on Titanium!
\nI have an app with a webview and some javascript for loading pages\non main page. I have used Ti.App.addEventListener for initialize a\nvariable for Os name on my app. but, the app get error on\nTi.App.addEventListener line and then my app couldn't run next\njavascripts and it stopped on main white page.
\nThis problem exist only on Android 2.2 device on each run expect\nfirst run!!! The app works correctly on emulator at all times!

\n

Errors for this issue on Dalvic debug monitor are:
\n10-20 09:18:09.364: ERROR/Web Console(3954): Uncaught TypeError:\nCannot read property 'App' of undefined at\nfile:///android_asset/Resources/scripts/main.js:1
\n10-20 09:18:09.371: ERROR/Web Console(3954): Uncaught TypeError:\nCannot read property 'osname' of undefined at\nfile:///android_asset/Resources/views/main.html:10

\n

But! on all runs include first run I get another errors before\nthis error:
\nERROR/TiApplication(3954): (kroll$1) [19,84] APP PROXY:\nti.modules.titanium.app.AppModule@48039a48
\nERROR/TiApplication(3954): (main) [350,865] APP PROXY:\nti.modules.titanium.app.AppModule@48003c80
\n10-20 09:18:00.121: ERROR/Web Console(3954): Uncaught\nReferenceError: TiAPI is not defined at :3

\n

I tested it by Titanium SDK 1.4.1.1 and the last version of\nsource code(1.5) on a Galaxy S mobile with I9000JXJPB(Android 2.2\nfor middle est) and I9000XXJPM(Android 2.2 for Europe).

\n

I attached a sample project and Dalvic debug Logs and emulator\ntrace log.

\n

I need a fast fix for this issue. our App is ready for publish\nbut don't work on Android 2.2 :(
\nThanks.

{html}", "attachment": [ { "id": "18110", "filename": "emulatortrace.rtf", "author": { "name": "farsad", "key": "farsad", "displayName": "Farsad", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:20.000+0000", "size": 27671, "mimeType": "text/rtf" }, { "id": "18111", "filename": "first-run-log.txt", "author": { "name": "farsad", "key": "farsad", "displayName": "Farsad", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:20.000+0000", "size": 8583, "mimeType": "text/plain" }, { "id": "18108", "filename": "resources.zip", "author": { "name": "farsad", "key": "farsad", "displayName": "Farsad", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:19.000+0000", "size": 195285, "mimeType": "application/zip" }, { "id": "18109", "filename": "second-and-next-run-log.txt", "author": { "name": "farsad", "key": "farsad", "displayName": "Farsad", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:19.000+0000", "size": 12827, "mimeType": "text/plain" } ], "flagged": false, "summary": "Ti.App is undifiend on webview at android 2.2 device", "creator": { "name": "farsad", "key": "farsad", "displayName": "Farsad", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "farsad", "key": "farsad", "displayName": "Farsad", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127576", "author": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Dupe of \nhttps://appcelerator.lighthouseapp.com/projects/32238/tickets/1374-...\n? I have a workaround posted on that bug.

{html}", "updateAuthor": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:20.000+0000", "updated": "2011-04-15T03:11:20.000+0000" }, { "id": "127577", "author": { "name": "farsad", "key": "farsad", "displayName": "Farsad", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Very Thanks Brion! :)

{html}", "updateAuthor": { "name": "farsad", "key": "farsad", "displayName": "Farsad", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:20.000+0000", "updated": "2011-04-15T03:11:20.000+0000" }, { "id": "127578", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Dupe #1374.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:11:21.000+0000", "updated": "2011-04-15T03:11:21.000+0000" }, { "id": "411222", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T18:19:37.000+0000", "updated": "2017-03-10T18:19:37.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }