On Wed, Sep 1, 2010 at 8:34 AM, Sripati <[email protected]> wrote:

> Sometimes getting 1) ConcurrentModificationException
>


> 09-01 10:38:38.466: ERROR/AndroidRuntime(1840):

java.util.ConcurrentModificationException

09-01 10:38:38.466: ERROR/AndroidRuntime(1840): at java.util.ArrayList

$ArrayListIterator.next(ArrayList.java:573)

09-01 10:38:38.466: ERROR/AndroidRuntime(1840): at

com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:44)

09-01 10:38:38.466: ERROR/AndroidRuntime(1840): at

com.google.android.maps.MapView.onDraw(MapView.java:494)

09-01 10:38:38.466: ERROR/AndroidRuntime(1840): at

android.view.View.draw(View.java:6740)


You're trying to modify the contents of an ArrayList concurrently ... don't
do that. Synchronize the access to the list. Somewhere you have a thread
that is trying to update the list at the same time the draw method is
iterating over the items.


> sometimes getting 2) OutOfMemoryError.
>


> 09-01 17:58:35.585: ERROR/AndroidRuntime(352): Uncaught handler:
> thread main exiting due to uncaught exception
> 09-01 17:58:35.614: ERROR/AndroidRuntime(352):
> java.lang.OutOfMemoryError: bitmap size exceeds VM budget
> 09-01 17:58:35.614: ERROR/AndroidRuntime(352):     at
> android.graphics.Bitmap.nativeCreate(Native Method)
> 09-01 17:58:35.614: ERROR/AndroidRuntime(352):     at
> android.graphics.Bitmap.createBitmap(Bitmap.java:468)
> 09-01 17:58:35.614: ERROR/AndroidRuntime(352):     at
> com.google.android.maps.ZoomHelper.createSnapshot(ZoomHelper.java:305)
> 09-01 17:58:35.614: ERROR/AndroidRuntime(352):     at
> com.google.android.maps.ZoomHelper.doZoom(ZoomHelper.java:137)
> 09-01 17:58:35.614: ERROR/AndroidRuntime(352):     at
> com.google.android.maps.ZoomHelper.doZoom(ZoomHelper.java:126)
> 09-01 17:58:35.614: ERROR/AndroidRuntime(352):     at
> com.google.android.maps.MapView.doZoom(MapView.java:1459)
> 09-01 17:58:35.614: ERROR/AndroidRuntime(352):     at
> com.google.android.maps.MapView.doZoom(MapView.java:1468)
> 09-01 17:58:35.614: ERROR/AndroidRuntime(352):     at
> com.google.android.maps.MapView$5.onZoom(MapView.java:1423)
> 09-01 17:58:35.614: ERROR/AndroidRuntime(352):     at
> android.widget.ZoomButtonsController
> $4.onClick(ZoomButtonsController.java:274)
>

You're running out of memory trying to create a bitmap. Looks like this is
in the bowels of the maps library and is not surprising - it's horribly
buggy. Not sure what you can do about that one. If you can reproduce the
issue reliably, submit a bug report.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to