October, 2014
now browsing by month
Frequent “LL stopped working” since I moved from Nexus 4 to OnePlus One due to OutOfMemory exceptions.
Generally LL is running stable, memory usage about 160MB. But once (you know my current WIP template) some animations through script are triggered, memory usage jumps fast up to 200MB, which seems to be a critical level (despite 3GB RAM) at which LL starts to struggle. Suddenly LL stops responding. Sometimes after leaving it alone for a few minutes LL settles down and is working again (though it seems LL was somehow restarted). But mostly after a 1 or 2 minutes I get the “stopped working” message.
I know, Pierre Hébert , you explained the higher memory usage resulting from that higher resolution. But still I don’t understand why it crashes It’s driving me crazy. All I do is moving some (4 to 5) panels containing a widget from point A to point B. Why is this causing memory usage to go up that fast?
How I animate:
I determine a list/array of items (by getById) to be moved. Animation is done through a function which calls itself about 16 times (animation steps) through setTimeout. For each Item setPosition is called. That’s it. I compared that way to how others do animations, seems similar.
I’ll send you a logcat, here are on of the (to me) mysterious allocation faults. Free bytes seem enough for allocation. Is it due to fragmented memory?
E/art ( 5132): Throwing OutOfMemoryError “Failed to allocate a 42252 byte allocation with 1651160 free bytes”
E/art ( 5132): Throwing OutOfMemoryError “Failed to allocate a 524 byte allocation with 1612752 free bytes; failed due to fragmentation (largest possible contiguous allocation 65104 bytes)”
E/art ( 5132): Throwing OutOfMemoryError “Failed to allocate a 64 byte allocation with 1612752 free bytes; failed due to fragmentation (largest possible contiguous allocation 65104 bytes)” (recursive case)
W/System.err( 5132): java.lang.OutOfMemoryError: Failed to allocate a 1200828 byte allocation with 2277304 free bytes
W/System.err( 5132): at android.graphics.Bitmap.nativeCreateFromParcel(Native Method)
W/System.err( 5132): at android.graphics.Bitmap.access$000(Bitmap.java:29)
W/System.err( 5132): at android.graphics.Bitmap$1.createFromParcel(Bitmap.java:1459)
W/System.err( 5132): at android.graphics.Bitmap$1.createFromParcel(Bitmap.java:1451)
W/System.err( 5132): at android.widget.RemoteViews$BitmapCache.
W/System.err( 5132): at android.widget.RemoteViews.
W/System.err( 5132): at android.widget.RemoteViews.
W/System.err( 5132): at android.widget.RemoteViews$2.createFromParcel(RemoteViews.java:2536)
W/System.err( 5132): at android.widget.RemoteViews$2.createFromParcel(RemoteViews.java:2534)
W/System.err( 5132): at com.android.internal.appwidget.IAppWidgetService$Stub$Proxy.getAppWidgetViews(IAppWidgetService.java:561)
W/System.err( 5132): at android.appwidget.AppWidgetHost.createView(AppWidgetHost.java:347)
W/System.err( 5132): at net.pierrox.lightning_launcher.b.bc.a(Unknown Source)
W/System.err( 5132): at net.pierrox.lightning_launcher.views.ItemLayout.u(Unknown Source)
W/System.err( 5132): at net.pierrox.lightning_launcher.views.ItemLayout.a(Unknown Source)
W/System.err( 5132): at net.pierrox.lightning_launcher.b.n.a(Unknown Source)
W/System.err( 5132): at net.pierrox.lightning_launcher.views.ItemLayout.c(Unknown Source)
W/System.err( 5132): at net.pierrox.lightning_launcher.b.ab.j(Unknown Source)
W/System.err( 5132): at net.pierrox.lightning_launcher.c.a.o.commit(Unknown Source)
]]>I want an screen indicator made of picture.But I am not good at Java,so someone make script of that function.
Could you help me?
]]>








D5 Creation