{ "id": "169721", "key": "MOD-2357", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "19936", "name": "Release 6.3.0", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-29T13:12:08.000+0000", "created": "2017-09-07T14:09:49.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "consider-6.2.3" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-06T17:49:22.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": "13700", "name": "Map" } ], "description": "When opening a map view closing the window with the map view can cause crashes. This was introduced in 2.9 version of ti.map. I have tested version 2.8 of ti.map and have been unable to recreate the issue. I believe it is in one of the following commits:\r\n\r\nhttps://github.com/appcelerator-modules/ti.map/commit/2eacf35689d0ef974f53571ecfb6036b5d249dc9#diff-9e304d4e8df1b74cfa009913198428ab\r\nhttps://github.com/appcelerator-modules/ti.map/commit/428abe60efba08b316280fcc029ef9fd93d35be7#diff-9e304d4e8df1b74cfa009913198428ab\r\n\r\nSteps to reproduce:\r\n* Create a window with a button, on button click open a window in a navigation flow with a map\r\n* Populate the map with pins\r\n* Select pins and deselect them by clicking on map\r\n* Navigate back closing the window\r\n* If no crash occurs, repeat a few times.", "attachment": [ { "id": "63218", "filename": "WAPlanfinder_2017-09-06-100946_USD11JCEASERMB1.crash", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-07T14:03:02.000+0000", "size": 105474, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: ti.map module crashes application when closing window", "creator": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "427685", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there, the issue looks valid! Can you provide a test-case so we can speed-up the fix? I feel that the first link ([this line|https://github.com/appcelerator-modules/ti.map/commit/2eacf35689d0ef974f53571ecfb6036b5d249dc9#diff-20426eee9101f1525a7d167e3f5ae8e3R37]) is the issue, because it was released already and then crashes. We will provide a fix tomorrow or early next week, thanks for reporting this!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-07T15:18:04.000+0000", "updated": "2017-09-07T15:18:04.000+0000" }, { "id": "427689", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Do you want me to create a sample project?", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-07T15:55:33.000+0000", "updated": "2017-09-07T15:55:33.000+0000" }, { "id": "427711", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The one I created (navigation-window, having a window with a map, opening a window with a map, closing it again) does actually not reproduce it:\r\n{code:js}\r\nvar MapModule = require('ti.map');\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"white\",\r\n title: 'Window 1'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Trigger'\r\n});\r\n\r\nwin.add(btn);\r\n\r\nvar nav = Ti.UI.iOS.createNavigationWindow({\r\n window: win\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n var win2 = Ti.UI.createWindow({\r\n title: 'Window 2'\r\n });\r\n \r\n var pin1 = MapModule.createAnnotation({ \r\n latitude: 37.390749,\r\n longitude: -122.081651,\r\n title: \"Title1 \",\r\n subtitle: 'Mountain View, CA',\r\n pincolor: MapModule.ANNOTATION_RED,\r\n }); \r\n \r\n var mapview = MapModule.createView({ \r\n region: {\r\n latitude: 37.390749,\r\n longitude: -122.081651,\r\n },\r\n annotations: [pin1]\r\n }); \r\n\r\n win2.add(mapview);\r\n nav.openWindow(win2);\r\n})\r\n\r\nnav.open();\r\n{code}\r\nSo an additional one would be awesome. Can you also confirm that this happens with the latest one (2.12.1) as well? We're getting there, thank you!\r\n\r\n*EDIT*: I am now able to reproduce it and working on it!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-08T10:00:25.000+0000", "updated": "2017-09-08T18:57:09.000+0000" }, { "id": "427724", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Great, thank you!", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-08T19:00:16.000+0000", "updated": "2017-09-08T19:00:16.000+0000" }, { "id": "427726", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator-modules/ti.map/pull/211\r\nTest-case: See above!\r\n\r\nI also fixed some other small issues and attached a packaged version of the module to the PR.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-08T19:11:19.000+0000", "updated": "2017-09-08T19:24:55.000+0000" }, { "id": "427729", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this module production ready?", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-08T19:26:23.000+0000", "updated": "2017-09-08T19:26:23.000+0000" }, { "id": "427730", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I still see a low frequence of crashes, even with the latest fix, so I need to dive in a bit more into this. More on Monday then. \r\n\r\n*EDIT*: Fixed those as well - I basically moved to whole project to ARC to fix all possible issues related to memory-counting / releasing. Please try [this version|https://github.com/appcelerator-modules/ti.map/files/1288963/ti.map-iphone-2.12.2.zip]. \r\n\r\nIt will be code-reviewed and tested by the staff next and be included in the SDK 7.0.0. But you can use it already or download it from Github as the release-page will also be updated once the review is done. Thanks again for reporting!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-08T19:28:07.000+0000", "updated": "2017-09-08T19:53:10.000+0000" }, { "id": "427803", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jceaser] Ping!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-12T15:48:19.000+0000", "updated": "2017-09-12T15:48:19.000+0000" }, { "id": "428030", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This looks to be working with no issues. Thanks!", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-18T17:25:00.000+0000", "updated": "2017-09-18T17:25:00.000+0000" }, { "id": "428568", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jceaser] Are you still running good with this fix? Then we may consider taking it before 7.0.0 already!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-28T12:56:49.000+0000", "updated": "2017-09-28T12:56:49.000+0000" }, { "id": "428570", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I believe so I haven't seen any issues.", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-28T13:38:07.000+0000", "updated": "2017-09-28T13:38:07.000+0000" }, { "id": "440138", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:49:22.000+0000", "updated": "2018-08-06T17:49:22.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }