+ Reply to Thread
Results 1 to 6 of 6

Thread: Application crash when zooming to GPS location

  1. #1
    Rudolf Kopriva
    Join Date
    Apr 2012
    Posts
    5
    Points
    0
    Answers Provided
    0


    0

    Default Application crash when zooming to GPS location

    When I start GPS with default auto panning and zoomin quickly several times to the GPS location, the application tries to alloc about 50MB and it crashes on iPad 1. The allocated memory request comes from: AGSGPSAccuracyCircleLayer drawInContext:. I believe it tries to draw GPS accuracy circle without scalling it (so the circle is very large). I have tried to hide the gps on zoomin or even stop gps, but it still renders the circle and crashes. It doesn't happen if I don't start gps at all. How can I avoid the memory allocation?

  2. #2
    Rudolf Kopriva
    Join Date
    Apr 2012
    Posts
    5
    Points
    0
    Answers Provided
    0


    0

    Default Re: Application crash when zooming to GPS location

    Found workaround: It was probably caused by my custom implementation of TiledLayer, because it works fine for AGSTiledMapServiceLayer. The workaround was to add AGSTiledMapServiceLayer before the custom TiledLayer. It's strange, because both layers have the same tileinfo and SRS.

  3. #3
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    883
    Points
    493
    Answers Provided
    106


    0

    Default Re: Application crash when zooming to GPS location

    It'll be interesting to know why it's crashing with your custom tiled layer. If possible, please share the sample application which demonstrates the issue.

    Regards,
    Nimesh

  4. #4
    Rudolf Kopriva
    Join Date
    Apr 2012
    Posts
    5
    Points
    0
    Answers Provided
    0


    0

    Default Re: Application crash when zooming to GPS location

    Quote Originally Posted by nrjarecha View Post
    It'll be interesting to know why it's crashing with your custom tiled layer. If possible, please share the sample application which demonstrates the issue.

    Regards,
    Nimesh
    Thank you Nimesh, you can download the sample from this link: http://dl.dropbox.com/u/37816650/Arc...erCrashing.zip
    It crashes on my new iPad. You can see the peak and malloc while profiling the simulator. See comments in the code.

  5. #5
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    883
    Points
    493
    Answers Provided
    106


    0

    Default Re: Application crash when zooming to GPS location

    The first look at your custom tiled layer says that it's incomplete. You're not setting the _units. Just set "_units = AGSUnitsMeters;" in the init method and it should stop crashing.

    Regards,
    Nimesh

  6. #6
    Rudolf Kopriva
    Join Date
    Apr 2012
    Posts
    5
    Points
    0
    Answers Provided
    0


    0

    Default Re: Application crash when zooming to GPS location

    Quote Originally Posted by nrjarecha View Post
    The first look at your custom tiled layer says that it's incomplete. You're not setting the _units. Just set "_units = AGSUnitsMeters;" in the init method and it should stop crashing.

    Regards,
    Nimesh
    It works, thank you. Excellent support.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts