This is not a bug in the zoom controls, your application is just using too much memory.
On Thu, Aug 6, 2009 at 1:06 AM, smilingm<[email protected]> wrote: > > Hello, > > I wonder why I sometimes get an OutOfMemory Exception in mapView when > scrolling around on map and zooming in to the max Zoomlevel? Is this a > bug in the Zoomcontrols or MapView Lib?? > > Thanks for your help! > > Here the stacktrace: > > uncaught handler: thread main exiting due to uncaught exception > E/AndroidRuntime( 1784): java.lang.OutOfMemoryError: bitmap size > exceeds VM budget > E/AndroidRuntime( 1784): at android.graphics.Bitmap.nativeCreate > (Native Method) > E/AndroidRuntime( 1784): at android.graphics.Bitmap.createBitmap > (Bitmap.java:483) > E/AndroidRuntime( 1784): at > com.google.android.maps.ZoomHelper.createSnapshot(ZoomHelper.java:305) > E/AndroidRuntime( 1784): at com.google.android.maps.ZoomHelper.doZoom > (ZoomHelper.java:137) > E/AndroidRuntime( 1784): at com.google.android.maps.ZoomHelper.doZoom > (ZoomHelper.java:126) > E/AndroidRuntime( 1784): at com.google.android.maps.MapView.doZoom > (MapView.java:1454) > E/AndroidRuntime( 1784): at com.google.android.maps.MapView.doZoom > (MapView.java:1463) > E/AndroidRuntime( 1784): at com.google.android.maps.MapView$5.onZoom > (MapView.java:1418) > E/AndroidRuntime( 1784): at android.widget.ZoomButtonsController > $4.onClick(ZoomButtonsController.java:275) > E/AndroidRuntime( 1784): at android.view.View.performClick(View.java: > 2180) > E/AndroidRuntime( 1784): at android.view.View.onTouchEvent(View.java: > 3846) > E/AndroidRuntime( 1784): at android.widget.ZoomButton.onTouchEvent > (ZoomButton.java:62) > E/AndroidRuntime( 1784): at android.view.View.dispatchTouchEvent > (View.java:3386) > E/AndroidRuntime( 1784): at android.view.ViewGroup.dispatchTouchEvent > (ViewGroup.java:863) > E/AndroidRuntime( 1784): at > android.widget.ZoomButtonsController.onTouch > (ZoomButtonsController.java:582) > E/AndroidRuntime( 1784): at android.view.View.dispatchTouchEvent > (View.java:3382) > E/AndroidRuntime( 1784): at android.view.ViewGroup.dispatchTouchEvent > (ViewGroup.java:831) > E/AndroidRuntime( 1784): at android.view.ViewGroup.dispatchTouchEvent > (ViewGroup.java:863) > E/AndroidRuntime( 1784): at android.view.ViewGroup.dispatchTouchEvent > (ViewGroup.java:863) > E/AndroidRuntime( 1784): at android.view.ViewGroup.dispatchTouchEvent > (ViewGroup.java:863) > E/AndroidRuntime( 1784): at android.view.ViewGroup.dispatchTouchEvent > (ViewGroup.java:863) > E/AndroidRuntime( 1784): at > com.android.internal.policy.impl.PhoneWindow > $DecorView.superDispatchTouchEvent(PhoneWindow.java:1710) > E/AndroidRuntime( 1784): at > com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent > (PhoneWindow.java:1197) > E/AndroidRuntime( 1784): at android.app.Activity.dispatchTouchEvent > (Activity.java:1993) > E/AndroidRuntime( 1784): at > com.android.internal.policy.impl.PhoneWindow > $DecorView.dispatchTouchEvent(PhoneWindow.java:1694) > E/AndroidRuntime( 1784): at android.view.ViewRoot.handleMessage > (ViewRoot.java:1525) > E/AndroidRuntime( 1784): at android.os.Handler.dispatchMessage > (Handler.java:99) > E/AndroidRuntime( 1784): at android.os.Looper.loop(Looper.java:123) > E/AndroidRuntime( 1784): at android.app.ActivityThread.main > (ActivityThread.java:3952) > E/AndroidRuntime( 1784): at java.lang.reflect.Method.invokeNative > (Native Method) > E/AndroidRuntime( 1784): at java.lang.reflect.Method.invoke > (Method.java:521) > E/AndroidRuntime( 1784): at com.android.internal.os.ZygoteInit > $MethodAndArgsCaller.run(ZygoteInit.java:782) > E/AndroidRuntime( 1784): at com.android.internal.os.ZygoteInit.main > (ZygoteInit.java:540) > E/AndroidRuntime( 1784): at dalvik.system.NativeStart.main(Native > Method) > > > > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

