one more point I missed: I get this very often when I change the orientation and switch the activities quickly.
On Jan 20, 4:11 pm, Iroid <irfan.f.k...@gmail.com> wrote: > Hello Everyone, > This is another Android programming puzzle I am > having hard time to solve. > > I am getting Out of Memory Exception though I see > more then 2 MB available memory for the application. > > I do not what is going wrong.. > > Could anyone please help me? > > Here are the logs and anr traces ( sorry for long message): > LOGS: > > E/AndroidRuntime( 4178): java.lang.RuntimeException: Unable to start > activity ComponentInfo{com.android.mol/com.android.mol.ListActivity}: > android.view.InflateException: Binary XML file line #16: Error > inflating class <unknown> > > E/AndroidRuntime( 4178): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java: > 2454) > > E/AndroidRuntime( 4178): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: > 2470) > > E/AndroidRuntime( 4178): at android.app.ActivityThread.access$2200 > (ActivityThread.java:119) > > E/AndroidRuntime( 4178): at android.app.ActivityThread$H.handleMessage > (ActivityThread.java:1821) > > E/AndroidRuntime( 4178): at android.os.Handler.dispatchMessage > (Handler.java:99) > > E/AndroidRuntime( 4178): at android.os.Looper.loop(Looper.java:123) > > E/AndroidRuntime( 4178): at android.app.ActivityThread.main > (ActivityThread.java:4310) > > E/AndroidRuntime( 4178): at java.lang.reflect.Method.invokeNative > (Native Method) > > E/AndroidRuntime( 4178): at java.lang.reflect.Method.invoke > (Method.java:521) > > E/AndroidRuntime( 4178): at com.android.internal.os.ZygoteInit > $MethodAndArgsCaller.run(ZygoteInit.java:860) > > E/AndroidRuntime( 4178): at com.android.internal.os.ZygoteInit.main > (ZygoteInit.java:618) > > E/AndroidRuntime( 4178): at dalvik.system.NativeStart.main(Native > Method) > > E/AndroidRuntime( 4178): Caused by: android.view.InflateException: > Binary XML file line #16: Error inflating class <unknown> > > E/AndroidRuntime( 4178): at android.view.LayoutInflater.createView > (LayoutInflater.java:513) > > E/AndroidRuntime( 4178): at > com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView > (PhoneLayoutInflater.java:56) > > E/AndroidRuntime( 4178): at > android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) > > E/AndroidRuntime( 4178): at android.view.LayoutInflater.rInflate > (LayoutInflater.java:618) > > E/AndroidRuntime( 4178): at android.view.LayoutInflater.inflate > (LayoutInflater.java:407) > > E/AndroidRuntime( 4178): at android.view.LayoutInflater.inflate > (LayoutInflater.java:320) > > E/AndroidRuntime( 4178): at android.view.LayoutInflater.inflate > (LayoutInflater.java:276) > > E/AndroidRuntime( 4178): at > com.android.internal.policy.impl.PhoneWindow.setContentView > (PhoneWindow.java:198) > > E/AndroidRuntime( 4178): at android.app.Activity.setContentView > (Activity.java:1622) > > E/AndroidRuntime( 4178): at com.android.mol.ListActivity.onCreate > (ListActivity.java:150) > > E/AndroidRuntime( 4178): at ListActivity.onCreate(ListActivity.java: > 40) > > E/AndroidRuntime( 4178): at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: > 1047) > > E/AndroidRuntime( 4178): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java: > 2417) > > E/AndroidRuntime( 4178): ... 11 more > > E/AndroidRuntime( 4178): Caused by: > java.lang.reflect.InvocationTargetException > > E/AndroidRuntime( 4178): at android.widget.ListView.<init> > (ListView.java:148) > > E/AndroidRuntime( 4178): at > java.lang.reflect.Constructor.constructNative(Native Method) > > E/AndroidRuntime( 4178): at java.lang.reflect.Constructor.newInstance > (Constructor.java:446) > > E/AndroidRuntime( 4178): at android.view.LayoutInflater.createView > (LayoutInflater.java:500) > > E/AndroidRuntime( 4178): ... 23 more > > E/AndroidRuntime( 4178): Caused by: java.lang.OutOfMemoryError: bitmap > size exceeds VM budget > > E/AndroidRuntime( 4178): at > android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) > > E/AndroidRuntime( 4178): at > android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:447) > > E/AndroidRuntime( 4178): at > android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java: > 323) > > E/AndroidRuntime( 4178): at > android.graphics.drawable.Drawable.createFromResourceStream > (Drawable.java:697) > > E/AndroidRuntime( 4178): at android.content.res.Resources.loadDrawable > (Resources.java:1705) > > E/AndroidRuntime( 4178): at android.content.res.TypedArray.getDrawable > (TypedArray.java:548) > > E/AndroidRuntime( 4178): at android.widget.AbsListView.<init> > (AbsListView.java:514) > > E/AndroidRuntime( 4178): at android.widget.ListView.<init> > (ListView.java:152) > > E/AndroidRuntime( 4178): ... 27 more > > I/Process ( 53): Sending signal. PID: 4178 SIG: 3 > > TRACES: > > DALVIK THREADS: > "main" prio=5 tid=3 NATIVE > | group="main" sCount=1 dsCount=0 s=N obj=0x4001b268 self=0xbd00 > | sysTid=4178 nice=0 sched=0/0 cgrp=unknown handle=-1344001384 > at android.os.BinderProxy.transact(Native Method) > at android.app.ActivityManagerProxy.handleApplicationError > (ActivityManagerNative.java:2358) > at com.android.internal.os.RuntimeInit.crash(RuntimeInit.java:339) > at com.android.internal.os.RuntimeInit > $UncaughtHandler.uncaughtException(RuntimeInit.java:76) > at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:887) > at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:884) > at dalvik.system.NativeStart.main(Native Method) > > "refqueuewor...@org.apache.http.impl.conn.tsccm.connpoolbyroute@450a7be8" > daemon prio=5 tid=15 WAIT > | group="main" sCount=1 dsCount=0 s=N obj=0x450a9f98 self=0x3c0be8 > | sysTid=4415 nice=0 sched=0/0 cgrp=unknown handle=5014024 > at java.lang.Object.wait(Native Method) > - waiting on <0x3ad3e8> (a java.lang.ref.ReferenceQueue) > at java.lang.Object.wait(Object.java:326) > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:107) > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:80) > at org.apache.http.impl.conn.tsccm.RefQueueWorker.run > (RefQueueWorker.java:102) > at java.lang.Thread.run(Thread.java:1096) > > "Binder Thread #3" prio=5 tid=31 NATIVE > | group="main" sCount=1 dsCount=0 s=N obj=0x44e01fa0 self=0x435e30 > | sysTid=4378 nice=0 sched=0/0 cgrp=unknown handle=4244112 > at dalvik.system.NativeStart.run(Native Method) > > "Timer-0" prio=5 tid=19 WAIT > | group="main" sCount=1 dsCount=0 s=N obj=0x44e13c98 self=0x1278a0 > | sysTid=4338 nice=0 sched=0/0 cgrp=unknown handle=1299912 > at java.lang.Object.wait(Native Method) > - waiting on <0x13ca98> (a java.util.Timer$TimerImpl) > at java.lang.Object.wait(Object.java:288) > at java.util.Timer$TimerImpl.run(Timer.java:219) > > "Binder Thread #2" prio=5 tid=13 NATIVE > | group="main" sCount=1 dsCount=0 s=N obj=0x44db6ba8 self=0x140638 > | sysTid=4183 nice=0 sched=0/0 cgrp=unknown handle=1213720 > at dalvik.system.NativeStart.run(Native Method) > > "Binder Thread #1" prio=5 tid=11 NATIVE > | group="main" sCount=1 dsCount=0 s=N obj=0x44db5b78 self=0x140b80 > | sysTid=4182 nice=0 sched=0/0 cgrp=unknown handle=1313600 > at dalvik.system.NativeStart.run(Native Method) > > "JDWP" daemon prio=5 tid=9 VMWAIT > | group="system" sCount=1 dsCount=0 s=N obj=0x44db42a0 self=0x1408a8 > | sysTid=4181 nice=0 sched=0/0 cgrp=unknown handle=1312872 > at dalvik.system.NativeStart.run(Native Method) > > "Signal Catcher" daemon prio=5 tid=7 RUNNABLE > | group="system" sCount=0 dsCount=0 s=N obj=0x44db41e8 self=0x141be8 > | sysTid=4180 nice=0 sched=0/0 cgrp=unknown handle=1315568 > at dalvik.system.NativeStart.run(Native Method) > > "HeapWorker" daemon prio=5 tid=5 VMWAIT > | group="system" sCount=1 dsCount=0 s=N obj=0x435d3bb8 self=0x141178 > | sysTid=4179 nice=0 sched=0/0 cgrp=unknown handle=1315128 > at dalvik.system.NativeStart.run(Native Method)
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en