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. What version of Android to use when programming basic apps?

I also had seen that pie chart and information, and loved it.  Unfortunately, 
I notice that it's data from the turn of the year (week ending 4-Jan-2010).  
Does anyone know if Market folks generate this data more regularly, and if 
there's any web site we could look at to see it?

  I'd love to know what people are using this month, rather than 4+ months ago.

                             - Chris




-- 

2. Problem Observed with gestureoverlay method

Hi,

I am using gestureoverlay metod to detect gesture in my application.I
have a view group in which i have multiple text views embedded into
it.I have set the onlongclicklistener for the individual views but
observed that when I set gesture listener through
gestures.addOnGesturePerformedListener(this) control is not coming to
the onlongclick() function(when i long click on the view).When i
disable the gestures.addOnGesturePerformedListener(this) control comes
to onlongclick(). What could be the problem?


Thanks,
Shekhar

-- 

3. Available data from an InputStream from URLConnection?

4. How to enable klogd / syslogd for debuggin

5. iPhone 4.0

6. How WebView render the webpage

7. GeoFix inaccuracy