Eclipse ADT App stürzt wegen zu wenig Speicher ab (Denk ich) log.datei mit dabei HILFE!!

  • Hallo immer wenn ich meine App starte mit emulator kommt der dateifehler in der log cat:
    ich weis da gar nicht was da jetzt der springende punkt ist was alles zum abstürzen bringt könnt ihr mir weiterhelfen?




    03-18 14:39:29.396: D/skia(1337): --- allocation failed for scaled bitmap
    03-18 14:39:29.426: D/AndroidRuntime(1337): Shutting down VM
    03-18 14:39:29.426: W/dalvikvm(1337): threadid=1: thread exiting with uncaught exception (group=0xb1a63ba8)
    03-18 14:39:29.646: D/dalvikvm(1337): GC_FOR_ALLOC freed 28911K, 45% free 36554K/65536K, paused 80ms, total 89ms
    03-18 14:39:29.666: E/AndroidRuntime(1337): FATAL EXCEPTION: main
    03-18 14:39:29.666: E/AndroidRuntime(1337): Process: com.schule.hakhas, PID: 1337
    03-18 14:39:29.666: E/AndroidRuntime(1337): android.view.InflateException: Binary XML file line #332: Error inflating class <unknown>
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.LayoutInflater.createView(LayoutInflater.java:620)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:669)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:694)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at com.schule.hakhas.TestListView.onCreateView(TestListView.java:32)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.support.v4.app.Fragment.performCreateView(Fragment.java:1500)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:927)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1467)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:472)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:141)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.support.v4.view.ViewPager.populate(ViewPager.java:1068)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.support.v4.view.ViewPager.populate(ViewPager.java:914)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1436)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.View.measure(View.java:16497)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.View.measure(View.java:16497)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:327)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.View.measure(View.java:16497)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5125)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2291)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.View.measure(View.java:16497)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1916)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1113)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1295)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5670)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.Choreographer.doCallbacks(Choreographer.java:574)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.Choreographer.doFrame(Choreographer.java:544)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.os.Handler.handleCallback(Handler.java:733)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.os.Handler.dispatchMessage(Handler.java:95)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.os.Looper.loop(Looper.java:136)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.app.ActivityThread.main(ActivityThread.java:5017)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at java.lang.reflect.Method.invokeNative(Native Method)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at java.lang.reflect.Method.invoke(Method.java:515)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at dalvik.system.NativeStart.main(Native Method)
    03-18 14:39:29.666: E/AndroidRuntime(1337): Caused by: java.lang.reflect.InvocationTargetException
    03-18 14:39:29.666: E/AndroidRuntime(1337): at java.lang.reflect.Constructor.constructNative(Native Method)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.view.LayoutInflater.createView(LayoutInflater.java:594)
    03-18 14:39:29.666: E/AndroidRuntime(1337): ... 47 more
    03-18 14:39:29.666: E/AndroidRuntime(1337): Caused by: java.lang.OutOfMemoryError
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.graphics.drawable.Drawable.cr



    Hier der Code der Main Activity:




    Und Hier der TestListView:




    und hier der tabitem.xml file:




    Falls ihr noch irgendwas braucht einfach sagen !
    Danke im vorraus

  • Hallo,


    hm, so ganz genau sagen kann ich auch nicht was die Ursache ist.


    Der folgende Schnipsel aus dem Stacktrace:


    Caused by: java.lang.OutOfMemoryError
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:587)
    03-18 14:39:29.666: E/AndroidRuntime(1337): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:422)


    lässt vermuten dass eine deiner Bitmaps sehr groß oder aber kaputt ist. Hier kann ich nur vermuten das es eines der Icons ist die du in tableitem.xml einbindest.


    MfG
    Jirka

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!