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. Android Preferences

Hi

What is the difference between Preference.OnPreferenceChangeListener
and Preference.OnPreferenceClickListener?

Abhinav

-- 

2. How to get child Activity?

Hi there!

I have a main Activity and I'm starting a child activity with
startActivity(intent).
I want to get the Activity Object created for the child. How can I do
it?

Thanks.

-- 

3. Set Image resource as package path in XML for runtime images

4. problems with custom listview adapter getView() method

5. Accessing protected fields from View subclass

6. (mohon bantuannya) Torrent untuk android

7. ArrayIndexOutOfBoundException while reading the file