Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 5.1.2
    • Component/s: iOS
    • Labels:
    • Sprint:
      2015 Sprint 25 SDK

      Description

      On iOS, the following code crashes the app:

      var position = Alloy.Globals.Map.createAnnotation({
          latitude: newPosition.latitude,
          longitude: newPosition.longitude,
          title: "Position",
          subtitle: "some title",
          pincolor: Alloy.Globals.Map.ANNOTATION_GREEN
      });
      $.map.addAnnotation(position);
      

      The line that crashes it is: `pincolor: Alloy.Globals.Map.ANNOTATION_GREEN` . For some reason the GREEN annotation constant crashes.

      Here's the crash log:

      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   libobjc.A.dylib                   0x0000000112cf1d0d objc_retain + 13
      1   com.fishrulesapp.fishrules        0x000000010dc0038e -[TiMapView mapView:viewForAnnotation:] + 649 (TiMapView.m:983)
      2   com.apple.MapKit                  0x000000010e359647 -[MKMapView annotationManager:representationForAnnotation:] + 308
      3   com.apple.MapKit                  0x000000010e3c9972 -[MKAnnotationManager _addRepresentationForAnnotation:] + 355
      4   com.apple.MapKit                  0x000000010e3c913a -[MKAnnotationManager updateVisibleAnnotations] + 1551
      5   com.apple.MapKit                  0x000000010e3493be -[MKMapView _didChangeRegionMidstream:] + 232
      6   com.apple.MapKit                  0x000000010e34e000 -[MKMapView mapLayer:didChangeRegionAnimated:] + 81
      7   com.apple.VectorKit               0x000000011d5624b5 __86-[VKMapCameraController _animateToPosition:pitch:yaw:duration:timingCurve:completion:]_block_invoke349 + 37
      8   com.apple.VectorKit               0x000000011d51483e -[VKAnimation stopAnimation:] + 110
      9   com.apple.VectorKit               0x000000011d514cf0 -[VKTimedAnimation stopAnimation:] + 48
      10  com.apple.VectorKit               0x000000011d5606aa -[VKMapCameraController _animateToPosition:pitch:yaw:duration:timingCurve:completion:] + 106
      11  com.apple.VectorKit               0x000000011d560603 -[VKMapCameraController animateToMapRegion:pitch:yaw:duration:completion:] + 723
      12  com.apple.MapKit                  0x000000010e35446a -[MKMapView _goToMapRegion:duration:animated:completionHandler:] + 350
      13  com.apple.MapKit                  0x000000010e3541f9 -[MKMapView _setZoomScale:centerMapPoint:duration:animated:] + 598
      14  com.apple.MapKit                  0x000000010e35604f -[MKMapView _goToCenterCoordinate:zoomLevel:animated:] + 1577
      15  com.apple.MapKit                  0x000000010e3537ec -[MKMapView setRegion:animated:] + 402
      16  com.fishrulesapp.fishrules        0x000000010dbfb0f6 -[TiMapView render] + 550 (TiMapView.m:62)
      17  com.fishrulesapp.fishrules        0x000000010d6c546e __DoProxyDelegateChangedValuesWithProxy_block_invoke54 + 46 (TiProxy.m:92)
      18  com.fishrulesapp.fishrules        0x000000010d702dd4 __TiThreadPerformOnMainThread_block_invoke + 52 (TiBase.m:287)
      19  com.fishrulesapp.fishrules        0x000000010d70317a TiThreadProcessPendingMainThreadBlocks + 410 (TiBase.m:399)
      20  com.fishrulesapp.fishrules        0x000000010d702fd3 __TiThreadPerformOnMainThread_block_invoke216 + 35 (TiBase.m:326)
      21  libdispatch.dylib                 0x0000000116dcbd59 _dispatch_call_block_and_release + 12
      22  libdispatch.dylib                 0x0000000116de74a7 _dispatch_client_callout + 8
      23  libdispatch.dylib                 0x0000000116dd1f2d _dispatch_main_queue_callback_4CF + 714
      24  com.apple.CoreFoundation          0x000000011326cd09 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
      25  com.apple.CoreFoundation          0x000000011322e2c9 __CFRunLoopRun + 2073
      26  com.apple.CoreFoundation          0x000000011322d828 CFRunLoopRunSpecific + 488
      27  com.apple.GraphicsServices        0x0000000113fcdad2 GSEventRunModal + 161
      28  com.apple.UIKit                   0x000000010fabe610 UIApplicationMain + 171
      29  com.fishrulesapp.fishrules        0x000000010d5ec3d6 main + 310 (main.m:37)
      30  libdyld.dylib                     0x0000000116e1692d start + 1
      

      I can verify that this did not happen before 5.1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cng Chee Kiat Ng (Inactive)
                Reporter:
                rblalock Rick Blalock (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20776
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code