{ "id": "123207", "key": "AC-2107", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-01-06T19:00:46.000+0000", "created": "2013-12-04T13:11:01.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:04.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": [], "description": "h3. Steps to Reproduce\r\nThe application was already working with IOS 6 and Titanium SDK 2.1.3 while we have update the application for Titanium SDK 3.1.3 and IOS 7. The application is working ok with IOS 7 while getting crash with IOS 6.\r\n\r\nThese instructions are throwing exception:\r\n\r\nmapview.set(region);\r\nanimate:true,\r\nregionFit:true\r\n\r\n\r\nh3. Actual Result\r\n[ERROR] : The application has crashed with an uncaught exception 'NSInvalidArgumentException'.\r\n[ERROR] : Reason:\r\n[ERROR] : Invalid Region \r\n[ERROR] : Stack trace:\r\n[ERROR] : 0 CoreFoundation 0x038d7012 __exceptionPreprocess + 178\r\n[ERROR] : 1 libobjc.A.dylib 0x03398e7e objc_exception_throw + 44\r\n[ERROR] : 2 CoreFoundation 0x0395ffb1 -[NSException raise] + 17\r\n[ERROR] : 3 MapKit 0x023a50cd -[MKMapView setRegion:animated:] + 709\r\n[ERROR] : 4 Derby Bus 0x0011bff7 -[TiMapView render] + 1383\r\n[ERROR] : 5 Derby Bus 0x0011c8f6 -[TiMapView frameSizeChanged:bounds:] + 294\r\n[ERROR] : 6 Derby Bus 0x000960b6 -[TiUIView checkBounds] + 806\r\n[ERROR] : 7 Derby Bus 0x000961b7 -[TiUIView setBounds:] + 119\r\n[ERROR] : 8 Derby Bus 0x0011c7b5 -[TiMapView setBounds:] + 453\r\n[ERROR] : 9 Derby Bus 0x00078d80 -[TiViewProxy relayout] + 2016\r\n[ERROR] : 10 Derby Bus 0x0007c990 -[TiViewProxy layoutChild:optimize:withMeasuredBounds:] + 1472\r\n[ERROR] : 11 Derby Bus 0x0007cc70 -[TiViewProxy layoutChildren:] + 656\r\n[ERROR] : 12 Derby Bus 0x00077886 -[TiViewProxy refreshView:] + 710\r\n[ERROR] : 13 Derby Bus 0x000790d3 -[TiViewProxy layoutChildrenIfNeeded] + 259\r\n[ERROR] : 14 Derby Bus 0x001fd017 +[TiLayoutQueue layoutProxy:] + 87\r\n[ERROR] : 15 Derby Bus 0x001fcde2 performLayoutRefresh + 530\r\n[ERROR] : 16 CoreFoundation 0x03896376 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22\r\n[ERROR] : 17 CoreFoundation 0x03895e06 __CFRunLoopDoTimer + 534\r\n[ERROR] : 18 CoreFoundation 0x0387da82 __CFRunLoopRun + 1810\r\n[ERROR] : 19 CoreFoundation 0x0387cf44 CFRunLoopRunSpecific + 276\r\n[ERROR] : 20 CoreFoundation 0x0387ce1b CFRunLoopRunInMode + 123\r\n[ERROR] : 21 GraphicsServices 0x0365e7e3 GSEventRunModal + 88\r\n[ERROR] : 22 GraphicsServices 0x0365e668 GSEventRun + 104\r\n[ERROR] : 23 UIKit 0x011b565c UIApplicationMain + 1211\r\n[ERROR] : 24 Derby Bus 0x000042c8 main + 456\r\n[ERROR] : 25 Derby Bus 0x00002c15 start + 53\r\n[ERROR] : 26 ??? 0x00000001 0x0 + 1\r\n-- End simulator log ---------------------------------------------------------\r\n[ERROR] : An error occurred running the iOS Simulator\r\n[ERROR] : [DEBUG] using retina iphone retina tall ios 7\r\n[ERROR] : \r\n[ERROR] : Project failed to build after 2m 14s 113ms\r\n\r\nh3. Expected Result\r\nShould work in IOS 6 as working in IOS 7", "attachment": [ { "id": "44362", "filename": ".log", "author": { "name": "arvindjoshi", "key": "arvindjoshi", "displayName": "Arvind Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-04T13:12:36.000+0000", "size": 9908799, "mimeType": "application/octet-stream; charset=ISO-8859-1" }, { "id": "44363", "filename": "diagnostic1800571363625380034.log", "author": { "name": "arvindjoshi", "key": "arvindjoshi", "displayName": "Arvind Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-04T13:12:45.000+0000", "size": 7568, "mimeType": "application/octet-stream; charset=ISO-8859-1" } ], "flagged": false, "summary": "Map loading in IOS 6 crashing app with error 'Invalid Region'", "creator": { "name": "arvindjoshi", "key": "arvindjoshi", "displayName": "Arvind Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "arvindjoshi", "key": "arvindjoshi", "displayName": "Arvind Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio 3.1.3", "comment": { "comments": [ { "id": "282770", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello Arvind,\n\nI have been unable to reproduce your issue. I tested the sample app Kitchen Sink, as it has a map view in it, on iOS 6.1.2 and 7.0 devices. Both were able to properly display the map.\n\nI noticed that in the log that you posted that, at the bottom, it says: \"using retina iphone retina tall ios 7\".\nIs your app crashing on iOS 6.X or 7.X?\nHave you tried opening the map to another region or point?\n\nAlso, could you please attach some sample code or test cases so that I can see the issue that you are seeing?\n", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-06T00:41:55.000+0000", "updated": "2013-12-06T00:41:55.000+0000" }, { "id": "283028", "author": { "name": "arvindjoshi", "key": "arvindjoshi", "displayName": "Arvind Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi,\n\nThe issues are coming for the following statements:\n\nmapview.set(region);\nanimate:true,\nregionFit:true\n\nI have changes instructions as:\n\nanimate: false\nsetTimeout(function(){mapview.set(region);},300)\n\nThis is stopped the crashing and showing error Invalid Region. I think this should be resolve in next versions.\n\nThanks,\n\n", "updateAuthor": { "name": "arvindjoshi", "key": "arvindjoshi", "displayName": "Arvind Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-07T05:28:56.000+0000", "updated": "2013-12-07T05:28:56.000+0000" }, { "id": "286562", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nI tested this issue with the test code below. I can't reproduce this issue in Ti SDK 3.1.3GA and iOS 7.0.0. Please check my code and let me know if you have this problem. If you have different test case that reproduces the issue, please post it here. We will re-test this.\r\n\r\nh5. Test Environment:\r\nMac OS X 10.8.5\r\nIOS 7.0.0\r\nTitanium SDK: 3.1.3\r\nTitanium CLI: 3.1.2\r\n\r\n\r\nh5. Test Code\r\n{code}\r\n\r\n \r\nvar win = Ti.UI.createWindow();\r\n\r\nvar mountainView = Titanium.Map.createAnnotation({\r\n latitude:37.390749,\r\n longitude:-122.081651,\r\n title:\"Appcelerator Headquarters\",\r\n subtitle:'Mountain View, CA',\r\n pincolor:Titanium.Map.ANNOTATION_RED,\r\n animate:true,\r\n leftButton: '/images/appcelerator_small.png',\r\n myid:1 ,// Custom property to uniquely identify this annotation.\r\n rightButton: '/images/appcelerator_small.png',\r\n});\r\n\r\nvar mapview = Titanium.Map.createView({\r\n mapType: Titanium.Map.STANDARD_TYPE,\r\n region: {latitude:37.390749, longitude:-122.081651,\r\n latitudeDelta:0.04, longitudeDelta:0.04},\r\n animate:true,\r\n regionFit:true,\r\n userLocation:true,\r\n annotations:[mountainView]\r\n});\r\n\r\nwin.add(mapview);\r\n \r\n\r\nwin.open();\r\n \r\n\r\n{code}\r\n\r\nThanks ", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-03T03:44:09.000+0000", "updated": "2014-01-03T22:16:31.000+0000" }, { "id": "286795", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Glad you were able to stop the crashes. This info has been passed to engineering and should be fixed.\nPlease let us know if you experience the issue again. Thank you!", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-06T18:59:47.000+0000", "updated": "2014-01-06T18:59:47.000+0000" }, { "id": "286886", "author": { "name": "arvindjoshi", "key": "arvindjoshi", "displayName": "Arvind Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks Team,\n\nI do not experience the issues again after update the code as:\n \nanimate: false\nsetTimeout(function(){mapview.set(region);},300)\n\nThanks for the help.", "updateAuthor": { "name": "arvindjoshi", "key": "arvindjoshi", "displayName": "Arvind Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-07T05:21:54.000+0000", "updated": "2014-01-07T05:21:54.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }