{ "id": "104191", "key": "TIMOB-11719", "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": "15396", "description": "2013 Sprint 07 Core", "name": "2013 Sprint 07 Core", "archived": true, "released": true, "releaseDate": "2013-04-08" }, { "id": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-03-26T02:58:44.000+0000", "created": "2012-10-31T07:44:33.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "triage" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T21:37:23.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": "*Problem description*\r\nWhen pressing the button in the code, the app crashes and closes. This is on iOS only. It works fine on Android.\r\n\r\n*Test case*\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\ttitle:\"Cyclic Test\"\r\n})\r\nvar button = Ti.UI.createButton({\r\n\ttitle:\"Fire event\"\r\n});\r\n\r\nbutton.addEventListener(\"click\",function(){\r\n\tvar cyclic = {\r\n\t\tb: {\r\n\t\t\ta:\"A\"\r\n\t\t}\r\n\t}\r\n\tcyclic.b.parent = cyclic\r\n\tTi.App.fireEvent(\"cyclic\",cyclic)\r\n})\r\n\r\nwin.add(button)\r\nwin.open()\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: App crashes when firing an Event with cyclic data", "creator": { "name": "glutamat", "key": "glutamat", "displayName": "Moritz Roessler", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "glutamat", "key": "glutamat", "displayName": "Moritz Roessler", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS X 10.6.8 / 10.8.2\r\nTitanium Mobile Sdk 2.1.3", "comment": { "comments": [ { "id": "226793", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed iOS 5.1 TiSDK 2.1.3 GA, 3.0.0 CI. Not reproducible on Android 2.3.4 device. Did you try this on Android and/or iOS?", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-09T00:02:54.000+0000", "updated": "2012-11-09T00:02:54.000+0000" }, { "id": "226853", "author": { "name": "glutamat", "key": "glutamat", "displayName": "Moritz Roessler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried this only on Ios devices ", "updateAuthor": { "name": "glutamat", "key": "glutamat", "displayName": "Moritz Roessler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-09T12:38:00.000+0000", "updated": "2012-11-09T12:38:00.000+0000" }, { "id": "226977", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Cyclic structures are not JSON serializable and \"fireEvent\" does serialization of argument (on iOS at least :) ).\r\n\r\n\r\nNot sure this bug is valid.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-11-12T10:52:28.000+0000", "updated": "2012-11-12T10:52:28.000+0000" }, { "id": "244070", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The cyclic data in parameters is not supported on both platforms.\r\nThe following code crashes on iOS and Android.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n title:\"Cyclic Test\"\r\n})\r\nvar button = Ti.UI.createButton({\r\n title:\"Fire event\"\r\n});\r\n \r\nbutton.addEventListener(\"click\",function(){\r\n var cyclic = {\r\n b: {\r\n a:\"A\"\r\n }\r\n }\r\n cyclic.b.parent = cyclic;\r\n Ti.App.fireSystemEvent(Ti.App.EVENT_ACCESSIBILITY_ANNOUNCEMENT,cyclic)\r\n})\r\n \r\nwin.add(button)\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T02:58:44.000+0000", "updated": "2013-03-26T02:58:44.000+0000" }, { "id": "415021", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:37:23.000+0000", "updated": "2017-03-22T21:37:23.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }