Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 27830 (ple.myfragexample) -- only on Android 4.1.2 -


i using fragmentactivity in application several fragments. each of these fragments hold image , text animation. when user swipes on screen, fragment changes.

now have been working on since 10 days , have tested fragmentactivity on different devices different android versions. reason stuck on last 10 days getting crash

fatal signal 11 (sigsegv) @ 0x00000000 (code=1), thread 27830 (ple.myfragexample) 

now, error occurs when test fragmentactivity on android 4.1.2 particularly. run fine on android 2.3.3, 4.0.3, 4.0.4, 4.2 , 2.2. error log below:

08-07 14:34:13.843: d/dalvikvm(27830): gc_for_alloc freed 3845k, 14% free 35407k/40903k, paused 4ms, total 14ms 08-07 14:34:13.848: i/dalvikvm-heap(27830): grow heap (frag case) 39.590mb 3932176-byte allocation 08-07 14:34:13.878: d/dalvikvm(27830): gc_concurrent freed 3k, 5% free 39244k/40903k, paused 11ms+4ms, total 30ms 08-07 14:34:13.928: d/dalvikvm(27830): gc_for_alloc freed 0k, 5% free 39244k/40903k, paused 16ms, total 16ms 08-07 14:34:13.928: i/dalvikvm-heap(27830): forcing collection of softreferences 8847376-byte allocation 08-07 14:34:13.953: d/dalvikvm(27830): gc_before_oom freed 9k, 5% free 39235k/40903k, paused 24ms, total 24ms 08-07 14:34:13.953: e/dalvikvm-heap(27830): out of memory on 8847376-byte allocation. 08-07 14:34:13.953: i/dalvikvm(27830): "main" prio=5 tid=1 runnable 08-07 14:34:13.953: i/dalvikvm(27830):   | group="main" scount=0 dscount=0 obj=0x41ea8508 self=0x41e989c8 08-07 14:34:13.953: i/dalvikvm(27830):   | systid=27830 nice=0 sched=0/0 cgrp=apps handle=1074937648 08-07 14:34:13.953: i/dalvikvm(27830):   | schedstat=( 2591504030 1697770606 13588 ) utm=221 stm=38 core=0 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.graphics.bitmapfactory.nativedecodeasset(native method) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.graphics.bitmapfactory.decodestream(bitmapfactory.java:625) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.graphics.bitmapfactory.decoderesourcestream(bitmapfactory.java:478) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.graphics.drawable.drawable.createfromresourcestream(drawable.java:781) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.content.res.resources.loaddrawable(resources.java:1963) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.content.res.typedarray.getdrawable(typedarray.java:601) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.view.view.<init>(view.java:3449) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.widget.imageview.<init>(imageview.java:114) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.widget.imageview.<init>(imageview.java:110) 08-07 14:34:13.953: i/dalvikvm(27830):   @ java.lang.reflect.constructor.constructnative(native method) 08-07 14:34:13.953: i/dalvikvm(27830):   @ java.lang.reflect.constructor.newinstance(constructor.java:417) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.view.layoutinflater.createview(layoutinflater.java:587) 08-07 14:34:13.953: i/dalvikvm(27830):   @ com.android.internal.policy.impl.phonelayoutinflater.oncreateview(phonelayoutinflater.java:56) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.view.layoutinflater.oncreateview(layoutinflater.java:660) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:685) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.view.layoutinflater.rinflate(layoutinflater.java:746) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.view.layoutinflater.inflate(layoutinflater.java:489) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.view.layoutinflater.inflate(layoutinflater.java:396) 08-07 14:34:13.953: i/dalvikvm(27830):   @ com.example.myfragexample.pages.page6.oncreateview(page6.java:52) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.support.v4.app.fragment.performcreateview(fragment.java:1460) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.support.v4.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:911) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.support.v4.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1088) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.support.v4.app.backstackrecord.run(backstackrecord.java:682) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.support.v4.app.fragmentmanagerimpl.execpendingactions(fragmentmanager.java:1444) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.support.v4.app.fragmentmanagerimpl$1.run(fragmentmanager.java:429)  08-07 14:34:13.953: i/dalvikvm(27830):   @ android.os.handler.handlecallback(handler.java:615) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.os.handler.dispatchmessage(handler.java:92) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.os.looper.loop(looper.java:137) 08-07 14:34:13.953: i/dalvikvm(27830):   @ android.app.activitythread.main(activitythread.java:4921) 08-07 14:34:13.953: i/dalvikvm(27830):   @ java.lang.reflect.method.invokenative(native method) 08-07 14:34:13.953: i/dalvikvm(27830):   @ java.lang.reflect.method.invoke(method.java:511) 08-07 14:34:13.953: i/dalvikvm(27830):   @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1027) 08-07 14:34:13.953: i/dalvikvm(27830):   @ com.android.internal.os.zygoteinit.main(zygoteinit.java:794) 08-07 14:34:13.953: i/dalvikvm(27830):   @ dalvik.system.nativestart.main(native method) 08-07 14:34:13.953: a/libc(27830): fatal signal 11 (sigsegv) @ 0x00000000 (code=1), thread 27830 (ple.myfragexample) 

i have searched lot on internet , tried many thing this, however, working of fragments got smoother on devices other version of android, on android 4.1.2. tried use universal image loader, still crashes fatal signal 11. error log when using universal image loader below:

08-07 14:20:03.678: d/dalvikvm(27268): gc_for_alloc freed 3857k, 32% free 33002k/48455k, paused 31ms, total 34ms 08-07 14:20:03.678: i/dalvikvm-heap(27268): grow heap (frag case) 37.241mb 3932176-byte allocation 08-07 14:20:03.708: d/dalvikvm(27268): gc_for_alloc freed 5k, 24% free 36837k/48455k, paused 28ms, total 28ms 08-07 14:20:03.738: d/dalvikvm(27268): gc_concurrent freed <1k, 24% free 36837k/48455k, paused 11ms+2ms, total 30ms 08-07 14:20:03.848: d/dalvikvm(27268): gc_for_alloc freed <1k, 24% free 36837k/48455k, paused 17ms, total 17ms 08-07 14:20:03.848: i/dalvikvm-heap(27268): forcing collection of softreferences 8847376-byte allocation 08-07 14:20:03.883: d/dalvikvm(27268): gc_before_oom freed 9k, 24% free 36828k/48455k, paused 32ms, total 35ms 08-07 14:20:03.883: e/dalvikvm-heap(27268): out of memory on 8847376-byte allocation. 08-07 14:20:03.888: i/dalvikvm(27268): "pool-1-thread-1" prio=4 tid=12 runnable 08-07 14:20:03.888: i/dalvikvm(27268):   | group="main" scount=0 dscount=0 obj=0x4293af60 self=0x4f6c9470 08-07 14:20:03.888: i/dalvikvm(27268):   | systid=27283 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1098606736 08-07 14:20:03.888: i/dalvikvm(27268):   | schedstat=( 2735922613 2106917058 1146 ) utm=266 stm=7 core=0 08-07 14:20:03.888: i/dalvikvm(27268):   @ android.graphics.bitmapfactory.nativedecodeasset(native method) 08-07 14:20:03.888: i/dalvikvm(27268):   @ android.graphics.bitmapfactory.decodestream(bitmapfactory.java:625) 08-07 14:20:03.888: i/dalvikvm(27268):   @ android.graphics.bitmapfactory.decoderesourcestream(bitmapfactory.java:478) 08-07 14:20:03.888: i/dalvikvm(27268):   @ android.graphics.drawable.drawable.createfromresourcestream(drawable.java:781) 08-07 14:20:03.888: i/dalvikvm(27268):   @ android.content.res.resources.loaddrawable(resources.java:1963) 08-07 14:20:03.888: i/dalvikvm(27268):   @ android.content.res.resources.getdrawable(resources.java:672) 08-07 14:20:03.888: i/dalvikvm(27268):   @ com.nostra13.universalimageloader.core.download.baseimagedownloader.getstreamfromdrawable(baseimagedownloader.java:184) 08-07 14:20:03.888: i/dalvikvm(27268):   @ com.nostra13.universalimageloader.core.download.baseimagedownloader.getstream(baseimagedownloader.java:84) 08-07 14:20:03.888: i/dalvikvm(27268):   @ com.nostra13.universalimageloader.core.decode.baseimagedecoder.getimagestream(baseimagedecoder.java:82) 08-07 14:20:03.888: i/dalvikvm(27268):   @ com.nostra13.universalimageloader.core.decode.baseimagedecoder.decode(baseimagedecoder.java:68) 08-07 14:20:03.888: i/dalvikvm(27268):   @ com.nostra13.universalimageloader.core.loadanddisplayimagetask.decodeimage(loadanddisplayimagetask.java:284) 08-07 14:20:03.888: i/dalvikvm(27268):   @ com.nostra13.universalimageloader.core.loadanddisplayimagetask.tryloadbitmap(loadanddisplayimagetask.java:243) 08-07 14:20:03.888: i/dalvikvm(27268):   @ com.nostra13.universalimageloader.core.loadanddisplayimagetask.run(loadanddisplayimagetask.java:125) 08-07 14:20:03.888: i/dalvikvm(27268):   @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1076) 08-07 14:20:03.888: i/dalvikvm(27268):   @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:569) 08-07 14:20:03.888: i/dalvikvm(27268):   @ java.lang.thread.run(thread.java:856) 08-07 14:20:03.888: a/libc(27268): fatal signal 11 (sigsegv) @ 0x00000000 (code=1), thread 27283 (pool-1-thread-1) 

now, know there lots of questions fatal signal 11 on here too, concerned , confused getting crash only on android 4.1.2 , not on other android versions.

my issue solved now. got images re-sized graphics team. using 1280x768 resolution images got them scaled down 800x480 , crash gone. suggestions though.

also, think jelly bean (4.x) has enhanced ui , so, occupies more memory handling ui lower versions of android, , that's why not able manage handling(scaling down) larger images.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -