{ "id": "61221", "key": "TIMOB-589", "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": "11220", "name": "Release 1.1.0", "archived": true, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:53:36.000+0000", "created": "2011-04-15T02:32:36.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:53:36.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": "{html}

Blain -

\n

I've attached the Resources directory for a simple test case. To\nreproduce:

\n

1) open app
\n2) click button on first window (opens win1)
\n3) click button on second window (opens win2)
\n4) close window
\n5) close window (back on main window)

\n

crash

\n

The attributes that seem to cause the crash are:

\n

1) having 3 windows on the stack where each window has a focus\nevent listener that makes a database function call
\n2) the database function that is called calls db.close(). If you\nremove db.close() from the database function the crash does not\noccur
\n3) each window JS file includes the same db.js file

{html}", "attachment": [ { "id": "17874", "filename": "dbcrash.zip", "author": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:32:36.000+0000", "size": 219665, "mimeType": "application/zip" } ], "flagged": false, "summary": "db.close casuses crash", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }