Project: titanium
Issue TIMOB-19102: iOS: Map Crashes with SIGSEGV if you add a vector to a map with no mapType set
The following example crashes when you comment out the {{mapType}} line: {code:javascript} var win = Ti.UI.createWindow(); var Map = require('ti.map'); var coords = {latitude: 37.3689, longitude: -122.0353}; var radius = 5000; var map = Map.createView({ // mapType: Map.NORMAL_TYPE, region: {latitude: 37.3689, longitude: -122.0353, latitudeDelta: 1, longitudeDelta: 1 }, }); var circle = Map.createCircle({ center: coords, radius: radius }); var polygon = Map.createPolygon({	points: [{latitude: 36.3689, longitude: -122.0353},{latitude: 35.3689, longitude: -102.0353},{latitude: 37.3639, longitude: -122.0348}],	strokeColor: "#f00",	strokeWidth: 4 }); var polyline = Map.createPolyline({	points: [{latitude: 37.3689, longitude: -122.0353},{latitude: 35.3689, longitude: -102.0353},{latitude: 37.3639, longitude: -122.0348}],	strokeColor: "#ff0",	strokeWidth: 4 }); win.add(map); map.addCircle(circle); map.addPolygon(polygon); map.addPolyline(polyline); setTimeout(function() {	map.removeCircle(circle);	map.removePolygon(polygon);	map.removePolyline(polyline); }, 5000); win.open(); {code} h2. Crash log {code} Incident Identifier: 63DE9F1F-B83C-4E65-BF83-40EEA8773835 CrashReporter Key: b6af6b8a3efef2365d74f999c048a38dbc0058e7 Hardware Model: iPhone7,1 Process: LiveViewer [634] Path: /private/var/mobile/Containers/Bundle/Application/749218E6-AB4C-486E-B207-58C54D0B784B/LiveViewer.app/LiveViewer Identifier: com.appcelerator.liveviewer Version: 1.0.0.3 (1.0.0) Code Type: ARM-64 (Native) Parent Process: launchd [1] Date/Time: 2015-06-29 16:52:39.131 +0200 Launch Time: 2015-06-29 16:52:36.014 +0200 OS Version: iOS 8.3 (12F70) Report Version: 105 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000 Triggered by Thread: 0 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 CoreFoundation	0x00000001863f0800 CFDictionaryAddValue + 64 1 LiveViewer	0x00000001005265ec 0x100094000 + 4793836 2 LiveViewer	0x00000001005265ec 0x100094000 + 4793836 3 LiveViewer	0x00000001005298e8 0x100094000 + 4806888 4 LiveViewer	0x00000001000c2cbc 0x100094000 + 191676 5 LiveViewer	0x00000001000c2c54 0x100094000 + 191572 6 LiveViewer	0x00000001001cf040 0x100094000 + 1290304 7 LiveViewer	0x000000010013a588 0x100094000 + 681352 8 LiveViewer	0x000000010013a860 0x100094000 + 682080 9 libdispatch.dylib	0x000000019838d990 _dispatch_call_block_and_release + 20 10 libdispatch.dylib	0x000000019838d950 _dispatch_client_callout + 12 11 libdispatch.dylib	0x0000000198392208 _dispatch_main_queue_callback_4CF + 1604 12 CoreFoundation	0x00000001864c77f4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8 13 CoreFoundation	0x00000001864c589c __CFRunLoopRun + 1488 14 CoreFoundation	0x00000001863f12d0 CFRunLoopRunSpecific + 392 15 GraphicsServices	0x000000018fc076f8 GSEventRunModal + 164 16 UIKit	0x000000018afb6fa8 UIApplicationMain + 1484 17 LiveViewer	0x0000000100099a34 0x100094000 + 23092 18 libdyld.dylib	0x00000001983baa04 start + 0 Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread 1: 0 libsystem_kernel.dylib	0x00000001984b8c24 kevent64 + 8 1 libdispatch.dylib	0x000000019839de6c _dispatch_mgr_invoke + 272 2 libdispatch.dylib	0x000000019838f998 _dispatch_mgr_thread + 48 Thread 2: 0 libsystem_kernel.dylib	0x00000001984d3c78 __workq_kernreturn + 8 1 libsystem_pthread.dylib	0x000000019856d2d8 _pthread_wqthread + 988 2 libsystem_pthread.dylib	0x000000019856ceec start_wqthread + 0 Thread 3: 0 libsystem_kernel.dylib	0x00000001984d3c78 __workq_kernreturn + 8 1 libsystem_pthread.dylib	0x000000019856d2d8 _pthread_wqthread + 988 2 libsystem_pthread.dylib	0x000000019856ceec start_wqthread + 0 Thread 4: 0 libsystem_kernel.dylib	0x00000001984d3c78 __workq_kernreturn + 8 1 libsystem_pthread.dylib	0x000000019856d2d8 _pthread_wqthread + 988 2 libsystem_pthread.dylib	0x000000019856ceec start_wqthread + 0 Thread 5: 0 libsystem_kernel.dylib	0x00000001984d3c78 __workq_kernreturn + 8 1 libsystem_pthread.dylib	0x000000019856d2d8 _pthread_wqthread + 988 2 libsystem_pthread.dylib	0x000000019856ceec start_wqthread + 0 Thread 6: 0 libsystem_kernel.dylib	0x00000001984d3c78 __workq_kernreturn + 8 1 libsystem_pthread.dylib	0x000000019856d2d8 _pthread_wqthread + 988 2 libsystem_pthread.dylib	0x000000019856ceec start_wqthread + 0 Thread 7 name: KrollContext Thread 7: 0 libsystem_kernel.dylib	0x00000001984b8e60 semaphore_timedwait_trap + 8 1 libdispatch.dylib	0x000000019839bee4 _dispatch_semaphore_wait_slow + 164 2 LiveViewer	0x000000010013a284 0x100094000 + 680580 3 LiveViewer	0x00000001001ce45c 0x100094000 + 1287260 4 CoreFoundation	0x00000001865160fc __invoking___ + 140 5 CoreFoundation	0x00000001864122f8 -[NSInvocation invoke] + 292 6 LiveViewer	0x00000001000b39c4 0x100094000 + 129476 7 LiveViewer	0x00000001000b292c 0x100094000 + 125228 8 LiveViewer	0x00000001002f477c 0x100094000 + 2492284 9 LiveViewer	0x00000001003904b8 0x100094000 + 3130552 10 LiveViewer	0x00000001003963f4 0x100094000 + 3154932 11 LiveViewer	0x0000000100396598 0x100094000 + 3155352 12 LiveViewer	0x00000001003963fc 0x100094000 + 3154940 13 LiveViewer	0x00000001003963fc 0x100094000 + 3154940 14 LiveViewer	0x0000000100396598 0x100094000 + 3155352 15 LiveViewer	0x00000001003963fc 0x100094000 + 3154940 16 LiveViewer	0x00000001003963fc 0x100094000 + 3154940 17 LiveViewer	0x00000001003963fc 0x100094000 + 3154940 18 LiveViewer	0x00000001003963fc 0x100094000 + 3154940 19 LiveViewer	0x00000001003910d4 0x100094000 + 3133652 Thread 8 name: JavaScriptCore::BlockFree Thread 8: 0 libsystem_kernel.dylib	0x00000001984d3078 __psynch_cvwait + 8 1 libsystem_pthread.dylib	0x000000019856ef28 _pthread_cond_wait + 620 2 LiveViewer	0x00000001004b8218 0x100094000 + 4342296 3 LiveViewer	0x00000001002445b4 0x100094000 + 1770932 4 LiveViewer	0x000000010024463c 0x100094000 + 1771068 5 LiveViewer	0x00000001004b7594 0x100094000 + 4339092 6 libsystem_pthread.dylib	0x000000019856fdc4 _pthread_body + 160 7 libsystem_pthread.dylib	0x000000019856fd20 _pthread_start + 156 8 libsystem_pthread.dylib	0x000000019856cef4 thread_start + 0 Thread 9 name: JavaScriptCore::Marking Thread 9: 0 libsystem_kernel.dylib	0x00000001984d3078 __psynch_cvwait + 8 1 libsystem_pthread.dylib	0x000000019856ef28 _pthread_cond_wait + 620 2 LiveViewer	0x0000000100297d04 0x100094000 + 2112772 3 LiveViewer	0x0000000100297da0 0x100094000 + 2112928 4 LiveViewer	0x00000001004b7594 0x100094000 + 4339092 5 libsystem_pthread.dylib	0x000000019856fdc4 _pthread_body + 160 6 libsystem_pthread.dylib	0x000000019856fd20 _pthread_start + 156 7 libsystem_pthread.dylib	0x000000019856cef4 thread_start + 0 Thread 10 name: com.apple.coremedia.player.async Thread 10: 0 libsystem_kernel.dylib	0x00000001984b8e48 semaphore_wait_trap + 8 1 libdispatch.dylib	0x000000019839bf3c _dispatch_semaphore_wait_slow + 252 2 MediaToolbox	0x00000001889d8b48 fpa_AsyncMovieControlThread + 1952 3 CoreMedia	0x0000000186d2b9ac figThreadMain + 244 4 libsystem_pthread.dylib	0x000000019856fdc4 _pthread_body + 160 5 libsystem_pthread.dylib	0x000000019856fd20 _pthread_start + 156 6 libsystem_pthread.dylib	0x000000019856cef4 thread_start + 0 Thread 11: 0 libsystem_kernel.dylib	0x00000001984d3c78 __workq_kernreturn + 8 1 libsystem_pthread.dylib	0x000000019856d2d8 _pthread_wqthread + 988 2 libsystem_pthread.dylib	0x000000019856ceec start_wqthread + 0 Thread 12 name: com.apple.NSURLConnectionLoader Thread 12: 0 libsystem_kernel.dylib	0x00000001984b8e0c mach_msg_trap + 8 1 libsystem_kernel.dylib	0x00000001984b8c84 mach_msg + 68 2 CoreFoundation	0x00000001864c7720 __CFRunLoopServiceMachPort + 196 3 CoreFoundation	0x00000001864c5674 __CFRunLoopRun + 936 4 CoreFoundation	0x00000001863f12d0 CFRunLoopRunSpecific + 392 5 CFNetwork	0x0000000185ed2890 +[NSURLConnection(Loader) _resourceLoadLoop:] + 436 6 Foundation	0x0000000187411db4 __NSThread__main__ + 1068 7 libsystem_pthread.dylib	0x000000019856fdc4 _pthread_body + 160 8 libsystem_pthread.dylib	0x000000019856fd20 _pthread_start + 156 9 libsystem_pthread.dylib	0x000000019856cef4 thread_start + 0 Thread 13 name: com.apple.CFSocket.private Thread 13: 0 libsystem_kernel.dylib	0x00000001984d3498 __select + 8 1 CoreFoundation	0x00000001864cd124 __CFSocketManager + 668 2 libsystem_pthread.dylib	0x000000019856fdc4 _pthread_body + 160 3 libsystem_pthread.dylib	0x000000019856fd20 _pthread_start + 156 4 libsystem_pthread.dylib	0x000000019856cef4 thread_start + 0 Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000170099780 x2: 0x000000017011dbe0 x3: 0x000000016fd6a188 x4: 0x0000000000000010 x5: 0x0000000000000001 x6: 0x0000000000000000 x7: 0x0000000000000160 x8: 0xffffffffffffffff x9: 0x00000000007c16c0 x10: 0x00000000007c1601 x11: 0x0000000000607900 x12: 0x000000000000001a x13: 0x0000000000000000 x14: 0x4d67c2779bfda2d4 x15: 0x00000000000000c8 x16: 0x00000001863f07c0 x17: 0x0000000100522528 x18: 0x0000000000000000 x19: 0x0000000170099780 x20: 0x0000000000000000 x21: 0x000000017011dbe0 x22: 0x00000001989da770 x23: 0x000000010076e82a x24: 0x0000000000000001 x25: 0x0000000000000002 x26: 0x0000000000000000 x27: 0x0000000000000378 x28: 0x0000000000000001 fp: 0x000000016fd69cc0 lr: 0x00000001005265f0 sp: 0x000000016fd69c80 pc: 0x00000001863f0800 cpsr: 0x60000000 Binary Images: 0x100094000 - 0x10091bfff LiveViewer arm64 <06823ad3f0023308824433207c63be12> /var/mobile/Containers/Bundle/Application/749218E6-AB4C-486E-B207-58C54D0B784B/LiveViewer.app/LiveViewer 0x120088000 - 0x1200affff dyld arm64 <75c68bbe28b13fcd91014f15139742dc> /usr/lib/dyld 0x184cbc000 - 0x184e50fff AVFoundation arm64 /System/Library/Frameworks/AVFoundation.framework/AVFoundation 0x184e54000 - 0x184eb8fff libAVFAudio.dylib arm64 /System/Library/Frameworks/AVFoundation.framework/libAVFAudio.dylib 0x184ebc000 - 0x184efbfff AVKit arm64 <662188dbb9233944bbffc40c217bba7f> /System/Library/Frameworks/AVKit.framework/AVKit 0x184efc000 - 0x184efcfff Accelerate arm64 /System/Library/Frameworks/Accelerate.framework/Accelerate 0x184f14000 - 0x185133fff vImage arm64 <74eb7b77dbcd321db86e784be9353a08> /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/vImage 0x185134000 - 0x1851dbfff libBLAS.dylib arm64 <56e8b79c2c03379dad45fe2ea1a4052f> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib 0x1851dc000 - 0x185556fff libLAPACK.dylib arm64 /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib 0x185558000 - 0x18556dfff libLinearAlgebra.dylib arm64 <9307063a5e1833abbb857a9ec4c5369e> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLinearAlgebra.dylib 0x185570000 - 0x1855d8fff libvDSP.dylib arm64 /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib 0x1855dc000 - 0x1855fffff libvMisc.dylib arm64 <92a0dd635be43dfe8c128c888ef37c0e> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvMisc.dylib 0x185600000 - 0x185600fff vecLib arm64 <9248f57f1d8430219a810aa93254f157> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib 0x185604000 - 0x185633fff Accounts arm64 <4199851056d4376aa4d8668b83c85454> /System/Library/Frameworks/Accounts.framework/Accounts 0x185634000 - 0x185634fff AdSupport arm64 /System/Library/Frameworks/AdSupport.framework/AdSupport 0x185638000 - 0x1856b6fff AddressBook arm64 <73735c2a294139e5b99ada613fc861ea> /System/Library/Frameworks/AddressBook.framework/AddressBook 0x1856b8000 - 0x18580bfff AddressBookUI arm64 <860bc29210ba3d7c80dc83a83388e31c> /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI 0x1859d4000 - 0x185c94fff AudioToolbox arm64 <760c2dc59fa13660a769cc1b052d41e6> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox 0x185e34000 - 0x186047fff CFNetwork arm64 /System/Library/Frameworks/CFNetwork.framework/CFNetwork 0x186048000 - 0x1860e4fff CloudKit arm64 /System/Library/Frameworks/CloudKit.framework/CloudKit 0x1860e8000 - 0x18614dfff CoreAudio arm64 /System/Library/Frameworks/CoreAudio.framework/CoreAudio 0x186174000 - 0x186195fff CoreBluetooth arm64 /System/Library/Frameworks/CoreBluetooth.framework/CoreBluetooth 0x186198000 - 0x1863e4fff CoreData arm64 /System/Library/Frameworks/CoreData.framework/CoreData 0x1863e8000 - 0x186746fff CoreFoundation arm64 <6548b13bef1f3f958d96266f7c4c44e0> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation 0x186748000 - 0x1868aafff CoreGraphics arm64 <92162d42d08d357ab66302a38d724828> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics 0x186900000 - 0x186902fff libCGXType.A.dylib arm64 <8f40b7d9b97b344f9c7a5a0b79bdc2b7> /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGXType.A.dylib 0x186904000 - 0x18690ffff libCMSBuiltin.A.dylib arm64 /System/Library/Frameworks/CoreGraphics.framework/Resources/libCMSBuiltin.A.dylib 0x186b04000 - 0x186b22fff libRIP.A.dylib arm64 <975284709e51353690ec8a651b43c1db> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib 0x186b24000 - 0x186c56fff CoreImage arm64 /System/Library/Frameworks/CoreImage.framework/CoreImage 0x186c58000 - 0x186cb6fff CoreLocation arm64 /System/Library/Frameworks/CoreLocation.framework/CoreLocation 0x186cf0000 - 0x186db3fff CoreMedia arm64 <403a9798401c3b70a207e0e236454c0d> /System/Library/Frameworks/CoreMedia.framework/CoreMedia 0x186db4000 - 0x186ea2fff CoreMotion arm64 <61338e072f2a385ab4e315975f23eea2> /System/Library/Frameworks/CoreMotion.framework/CoreMotion 0x186ea4000 - 0x186f15fff CoreTelephony arm64 <450440ee68593b8e9c951cdf838264f3> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony 0x186f18000 - 0x187020fff CoreText arm64 <4a9633cee0393585a98fcf07410e0828> /System/Library/Frameworks/CoreText.framework/CoreText 0x187024000 - 0x187041fff CoreVideo arm64 <217e5b69f6d03f8893f01de3e40915a8> /System/Library/Frameworks/CoreVideo.framework/CoreVideo 0x187044000 - 0x187168fff EventKit arm64 /System/Library/Frameworks/EventKit.framework/EventKit 0x18716c000 - 0x187305fff EventKitUI arm64 <235437546f2c3b93890a21b02cf94dd5> /System/Library/Frameworks/EventKitUI.framework/EventKitUI 0x18731c000 - 0x187574fff Foundation arm64 <509b484fb7b634b19673d50296d8278f> /System/Library/Frameworks/Foundation.framework/Foundation 0x1875a8000 - 0x1875d1fff GSS arm64 <3dae218853563b1a985b80d6a353bad8> /System/Library/Frameworks/GSS.framework/GSS 0x1876bc000 - 0x187727fff IOKit arm64 <311bed1f2b893195b8c0564d8925bfa2> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x187728000 - 0x1879cbfff ImageIO arm64 <7d3c81746f2c3f1488b3efc633d21633> /System/Library/Frameworks/ImageIO.framework/ImageIO 0x1879cc000 - 0x187e6dfff JavaScriptCore arm64 <1ad0ed311f3e3897bac70f3388fc05be> /System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore 0x18868c000 - 0x1887a5fff MapKit arm64 <0bb8a0be8c883fcc84d0453858c8e083> /System/Library/Frameworks/MapKit.framework/MapKit 0x1887a8000 - 0x1887aefff MediaAccessibility arm64 <4e3e82a2b09a38fcbf01843f97d5e604> /System/Library/Frameworks/MediaAccessibility.framework/MediaAccessibility 0x1887b0000 - 0x1889d3fff MediaPlayer arm64 /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer 0x1889d4000 - 0x188df2fff MediaToolbox arm64 /System/Library/Frameworks/MediaToolbox.framework/MediaToolbox 0x188df4000 - 0x188ec8fff MessageUI arm64 <000bbe6f4a8c32bda9c8ea674a7f200d> /System/Library/Frameworks/MessageUI.framework/MessageUI 0x188ecc000 - 0x188f44fff Metal arm64 /System/Library/Frameworks/Metal.framework/Metal 0x188f48000 - 0x188ff9fff MobileCoreServices arm64 /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices 0x18a274000 - 0x18a27efff OpenGLES arm64 <8824bb82d43937a9b0aa3870ece35772> /System/Library/Frameworks/OpenGLES.framework/OpenGLES 0x18a284000 - 0x18a285fff libCVMSPluginSupport.dylib arm64 <34760639fb2331dcaa229ba0e418c1af> /System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib 0x18a288000 - 0x18a28bfff libCoreFSCache.dylib arm64 /System/Library/Frameworks/OpenGLES.framework/libCoreFSCache.dylib 0x18a28c000 - 0x18a290fff libCoreVMClient.dylib arm64 <30969b8fde9f36c4a6a0293c03e74e5f> /System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib 0x18a294000 - 0x18a29efff libGFXShared.dylib arm64 <5942ea8060c63e86b3ffbfb76b061276> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib 0x18a2a0000 - 0x18a2ebfff libGLImage.dylib arm64 <3e46a6b44be93e5689e4851c76b2db04> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib 0x18a888000 - 0x18aa1afff QuartzCore arm64 /System/Library/Frameworks/QuartzCore.framework/QuartzCore 0x18aa1c000 - 0x18aa68fff QuickLook arm64 /System/Library/Frameworks/QuickLook.framework/QuickLook 0x18aca0000 - 0x18acf4fff Security arm64 <80b60ba1feba39afb6686e342398cce1> /System/Library/Frameworks/Security.framework/Security 0x18aeac000 - 0x18aec4fff StoreKit arm64 /System/Library/Frameworks/StoreKit.framework/StoreKit 0x18aec8000 - 0x18af3bfff SystemConfiguration arm64 <633d8a8abeaf3abda9b0401146f2b668> /System/Library/Frameworks/SystemConfiguration.framework/...
Story points: 3