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. Intercepting Calls

Hi,

I have a question. Is there any support in Android's SDK for
intercepting calls? for example, if I wanted to do something
interesting when they call a particular number...

Thank you
Sheida.

--~--~---------~--~----~------------~-------~--~----~

2. G1 download stats

Yesterday AndAppStore.com saw a doubling of direct-to-phone downloads 
from G1s' which means we are seeing more than one in three downloads are 
being done directly to the users G1.

So if you're only making .zips available, or you aren't using the right 
MIME type, it might be worth updating your downloads.

Al.
http://andappstore.com/

--~--~---------~--~----~------------~-------~--~----~

3. Help for Android Application

4. Emulator clock app are not the same time with the display on top bar

5. how to get source code

6. Suggestion for building a solid IM client

7. SIP for Android.