WallpaperManager crashes when phone is unlocked

by Pedro » Wed, 30 Jun 2010 02:52:40 GMT


Sponsored Links
 Hi.

I have received error report related with my app  (a wallpaper changer) .
The app sets some wallpapers, but when user makes the screen sleep and
unlock it, the default wallpaper is shown.

It's happening on a HTC EVO.

Of course, the image I'm using can be big and can be doing things difficult
to Wallpaper Manager  (I think is very very  far from "Bitmap Size=12535KB"
that I can see in the logs)

The ask is, why only when unlocked phone?

Here are the logs:

E/dalvikvm-heap(   88): 1536000-byte external allocation too large for this
process.
E/dalvikvm(   88): Out of memory: Heap Size=10695KB, Allocated=7948KB,
Bitmap Size=12535KB
E/        (   88): VM won't let us allocate 1536000 bytes
W/WallpaperManager(   88): Can't generate current bitmap
W/WallpaperManager(   88): java.lang.OutOfMemoryError: bitmap size exceeds
VM budget
W/WallpaperManager(   88): at android.graphics.Bitmap.nativeCreate(Native
Method)
W/WallpaperManager(   88): at
android.graphics.Bitmap.createBitmap(Bitmap.java:569)
W/WallpaperManager(   88): at
android.app.WallpaperManager.generateBitmap(WallpaperManager.java:722)
W/WallpaperManager(   88): at
android.app.WallpaperManager$Globals.getCurrentWallpaperLocked(WallpaperManager.java:263)
W/WallpaperManager(   88): at
android.app.WallpaperManager$Globals.peekWallpaperBitmap(WallpaperManager.java:215)
W/WallpaperManager(   88): at
android.app.WallpaperManager.getFastDrawable(WallpaperManager.java:421)
W/WallpaperManager(   88): at
com.android.internal.service.wallpaper.ImageWallpaper$DrawableEngine.updateWallpaper(ImageWallpaper.java:163)
W/WallpaperManager(   88): at
com.android.internal.service.wallpaper.ImageWallpaper$DrawableEngine$WallpaperObserver.onReceive(ImageWallpaper.java:70)
W/WallpaperManager(   88): at
android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run(ActivityThread.java:760)
W/WallpaperManager(   88): at
android.os.Handler.handleCallback(Handler.java:587)
W/WallpaperManager(   88): at
android.os.Handler.dispatchMessage(Handler.java:92)
W/WallpaperManager(   88): at android.os.Looper.loop(Looper.java:123)
W/WallpaperManager(   88): at
com.android.server.ServerThread.run(SystemServer.java:512)
D/skia    (   88): -------------- inform VM we've allocated 3072000 bytes in
native space
D/skia    (   88): -------------- inform VM we're releasing 3072000 bytes
which we couldn't allocate in native
D/dalvikvm(   88): GC freed 1018 objects / 65504 bytes in 169ms
D/dalvikvm(  198): GC freed 52 objects / 2088 bytes in 945ms
V/MediaProvider(  294): we got work to do for checkThumbnail:
/sdcard/DCIM/USER_PHOTO.jpg, there are still 0 tasks left in queue
V/MediaStore(  257): We probably run out of space, so create the thumbnail
in memory.


Thanks.

--



Other Threads

1. Problem with Maps on android 1.5(HTC hero)

Hi,
I want to implement application with map

So my application works on emulator, but it doesn't work on real
device - HTC Hero
The application works on Dev Phone 1 and Nexus one

I tried to run Mapdemo Application form samles but it crashed too.

Can you help me?
Maybe someone had same problem.

03-04 10:59:06.424: WARN/dalvikvm(867): Exception Ljava/lang/
RuntimeException; thrown during Lcom/google/android/maps/
MapActivity;.<clinit>
03-04 10:59:06.424: WARN/dalvikvm(867): Class init failed in
newInstance call (Lcom/example/android/apis/view/MapViewCompassDemo;)
03-04 10:59:06.424: DEBUG/AndroidRuntime(867): Shutting down VM
03-04 10:59:06.424: WARN/dalvikvm(867): threadid=3: thread exiting
with uncaught exception (group=0x40013140)
03-04 10:59:06.424: ERROR/AndroidRuntime(867): Uncaught handler:
thread main exiting due to uncaught exception
03-04 10:59:06.434: ERROR/AndroidRuntime(867):
java.lang.ExceptionInInitializerError
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
java.lang.Class.newInstanceImpl(Native Method)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
java.lang.Class.newInstance(Class.java:1472)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
android.app.Instrumentation.newActivity(Instrumentation.java:1100)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2186)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
android.os.Handler.dispatchMessage(Handler.java:99)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
android.os.Looper.loop(Looper.java:123)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
java.lang.reflect.Method.invokeNative(Native Method)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
java.lang.reflect.Method.invoke(Method.java:521)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:782)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
dalvik.system.NativeStart.main(Native Method)
03-04 10:59:06.434: ERROR/AndroidRuntime(867): Caused by:
java.lang.RuntimeException: stub
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     at
com.google.android.maps.MapActivity.<clinit>(Unknown Source)
03-04 10:59:06.434: ERROR/AndroidRuntime(867):     ... 15 more

-- 

2. Anti-virus, anti-malware scanner and monitor device file system access.

Hi,
We are going to create anti-virus, anti-malware scanner and monitor
which needs to access the whole Android device file system. (At least
monitor needs to run as a root). Is there any way to get this access
without device jailbreaking? May be by cooperating with Google or
manufacturer?

Thank you.
Sergey.

-- 

3. Testing of Customized Android SDK

4. Does Donut support WPA2-EA

5. Always permission denial when trying to read Email Account

6. Intercepting incoming messages and performing some processing

7. Can't access layout views from inside parent view