载入超大效果图导致内存不足(GC/ANR)



06-30 11:42:56.624: D/dalvikvm(16264): GC_CONCURRENT freed 1982K, 7% free 45372K/48775K, paused 1ms+3ms, total 50ms

06-30 11:42:57.469: D/DeviceTrackActivity(16264): onPause()

06-30 11:42:57.994: D/dalvikvm(16264): GC_CONCURRENT freed 1965K, 7% free 45380K/48775K, paused 8ms+13ms, total 92ms

06-30 11:42:59.194: D/dalvikvm(16264): GC_CONCURRENT freed 1893K, 7% free 45465K/48775K, paused 1ms+14ms, total 53ms

06-30 11:43:00.229: D/dalvikvm(16264): GC_FOR_ALLOC freed 190K, 7% free 45430K/48775K, paused 60ms, total 60ms

06-30 11:43:00.244: I/dalvikvm-heap(16264): Grow heap (frag case) to 53.290MB for 8294416-byte allocation

06-30 11:43:00.299: D/dalvikvm(16264): GC_CONCURRENT freed <1K, 6% free 53530K/56903K, paused 12ms+4ms, total 54ms

06-30 11:43:00.414: D/dalvikvm(16264): GC_FOR_ALLOC freed 0K, 6% free 53530K/56903K, paused 38ms, total 38ms

06-30 11:43:00.414: I/dalvikvm-heap(16264): Forcing collection of SoftReferences for 33177616-byte allocation

06-30 11:43:00.454: D/dalvikvm(16264): GC_BEFORE_OOM freed 11K, 6% free 53518K/56903K, paused 41ms, total 41ms

06-30 11:43:00.454: E/dalvikvm-heap(16264):Out of memory
on a 33177616-byte allocation.

06-30 11:43:00.454: I/dalvikvm(16264):"main"
prio=5 tid=1 RUNNABLE

06-30 11:43:00.454: I/dalvikvm(16264):   | group="main" sCount=0 dsCount=0obj=0x41cfc508 self=0x41cec9a8

06-30 11:43:00.454: I/dalvikvm(16264):   | sysTid=16264 nice=0sched=0/0
cgrp=apps handle=1074929456

06-30 11:43:00.454: I/dalvikvm(16264):   |schedstat=( 6084304503 1363714027 10607 )
utm=524 stm=84 core=3

06-30 11:43:00.454: I/dalvikvm(16264):   at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)

06-30 11:43:00.459: I/dalvikvm(16264):   at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:623)

06-30 11:43:00.459: I/dalvikvm(16264):   at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:476)

06-30 11:43:00.459: I/dalvikvm(16264):   at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:781)

06-30 11:43:00.459: I/dalvikvm(16264):   at android.content.res.Resources$Injector.createFromResourceStream(Resources.java:83)

06-30 11:43:00.459: I/dalvikvm(16264):   at android.content.res.Resources.loadDrawable(Resources.java:1963)

06-30 11:43:00.459: I/dalvikvm(16264):   at android.content.res.MiuiResources.loadDrawable(MiuiResources.java:317)

06-30 11:43:00.459: I/dalvikvm(16264):   atandroid.content.res.TypedArray.getDrawable(TypedArray.java:601)

06-30 11:43:00.464: I/dalvikvm(16264):   at android.view.View.<init>(View.java:3436)

06-30 11:43:00.464: I/dalvikvm(16264):   at android.view.View.<init>(View.java:3371)

06-30 11:43:00.464: I/dalvikvm(16264):   at android.view.ViewGroup.<init>(ViewGroup.java:426)

06-30 11:43:00.469: I/dalvikvm(16264):   at android.widget.RelativeLayout.<init>(RelativeLayout.java:184)

06-30 11:43:00.469: I/dalvikvm(16264):   at java.lang.reflect.Constructor.constructNative(Native Method)

06-30 11:43:00.469: I/dalvikvm(16264):   at java.lang.reflect.Constructor.newInstance(Constructor.java:417)

06-30 11:43:00.469: I/dalvikvm(16264):   at android.view.LayoutInflater.createView(LayoutInflater.java:587)

06-30 11:43:00.479: I/dalvikvm(16264):   at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)

06-30 11:43:00.479: I/dalvikvm(16264):   at com.android.internal.policy.impl.MiuiPhoneLayoutInflater.onCreateView(MiuiPhoneLayoutInflater.java:44)

06-30 11:43:00.479: I/dalvikvm(16264):   at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)

06-30 11:43:00.479: I/dalvikvm(16264):   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)

06-30 11:43:00.479: I/dalvikvm(16264):   at android.view.LayoutInflater.inflate(LayoutInflater.java:466)

06-30 11:43:00.479: I/dalvikvm(16264):   at android.view.LayoutInflater.inflate(LayoutInflater.java:396)

06-30 11:43:00.479: I/dalvikvm(16264):   at android.view.LayoutInflater.inflate(LayoutInflater.java:352)

06-30 11:43:00.479: I/dalvikvm(16264):   at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:306)

06-30 11:43:00.479: I/dalvikvm(16264):   at android.app.Activity.setContentView(Activity.java:1916)

06-30 11:43:00.484: I/dalvikvm(16264):   at com.jason.safeGod.activities.DeviceLocationHistoryActivity.onCreate(DeviceLocationHistoryActivity.java:13)

06-30 11:43:00.484: I/dalvikvm(16264):   at android.app.Activity.performCreate(Activity.java:5184)

06-30 11:43:00.484: I/dalvikvm(16264):   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1083)

06-30 11:43:00.484: I/dalvikvm(16264):   at com.lbe.security.service.core.client.b.x.callActivityOnCreate((null):-1)

06-30 11:43:00.484: I/dalvikvm(16264):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2064)

06-30 11:43:00.484: I/dalvikvm(16264):   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2125)

06-30 11:43:00.484: I/dalvikvm(16264):   at android.app.ActivityThread.access$600(ActivityThread.java:140)

06-30 11:43:00.484: I/dalvikvm(16264):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227)

06-30 11:43:00.484: I/dalvikvm(16264):   at android.os.Handler.dispatchMessage(Handler.java:99)

06-30 11:43:00.484: I/dalvikvm(16264):   at android.os.Looper.loop(Looper.java:137)

06-30 11:43:00.484: I/dalvikvm(16264):   at android.app.ActivityThread.main(ActivityThread.java:4898)

06-30 11:43:00.484: I/dalvikvm(16264):   at java.lang.reflect.Method.invokeNative(Native Method)

06-30 11:43:00.484: I/dalvikvm(16264):   at java.lang.reflect.Method.invoke(Method.java:511)

06-30 11:43:00.484: I/dalvikvm(16264):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)

06-30 11:43:00.484: I/dalvikvm(16264):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)

06-30 11:43:00.484: I/dalvikvm(16264):   at dalvik.system.NativeStart.main(Native Method)

06-30 11:43:00.489: A/libc(16264):Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 16264 (m.jason.safeGod)

06-30 11:43:09.629: E/Trace(18771): error opening trace file: No such file or directory (2)

06-30 11:43:09.714: D/dalvikvm(18771): GC_CONCURRENT freed 260K, 14% free 8542K/9863K, paused 12ms+2ms, total 28ms

06-30 11:43:09.794: D/dalvikvm(18771): Trying to loadlib /data/data/com.jason.safeGod/lib/libBaiduMapSDK_v2_3_1.so 0x4263c6c0

06-30 11:43:09.804: D/dalvikvm(18771): Added sharedlib /data/data/com.jason.safeGod/lib/libBaiduMapSDK_v2_3_1.so 0x4263c6c0

06-30 11:43:09.879: D/AppCommonMemCache(18771):commonmemcache
addr: 1518053684

06-30 11:43:09.949: I/auth info(18771):ak:  SML2xfotwkZDfKPmUjPdFfev

06-30 11:43:09.949: I/auth info(18771):mcode:  3E:45:98:88:5F:74:4A:B0:FC:3A:4B:B0:2A:96:11:A2:72:DC:AC:D2;com.jason.safeGod

06-30 11:43:09.954: D/DemoApplication(18771): SecretCode = 51354085498451404191524157594581418255

06-30 11:43:10.004: D/dalvikvm(18771): GC_CONCURRENT freed 305K, 14% free 8666K/10055K, paused 3ms+2ms, total 22ms

06-30 11:43:10.004: D/dalvikvm(18771): WAIT_FOR_CONCURRENT_GC blocked 9ms

06-30 11:43:10.029: D/dalvikvm(18771): GC_FOR_ALLOC freed 1K, 14% free 8665K/10055K, paused 23ms, total 23ms

06-30 11:43:10.034: I/dalvikvm-heap(18771): Grow heap (frag case) to 12.249MB for 2908176-byte allocation

06-30 11:43:10.049: D/dalvikvm(18771): GC_FOR_ALLOC freed 9K, 12% free 11495K/12935K, paused 13ms, total 13ms

06-30 11:43:10.064: D/dalvikvm(18771): GC_CONCURRENT freed 50K, 12% free 11500K/12935K, paused 2ms+2ms, total 17ms

06-30 11:43:10.184: D/dalvikvm(18771): GC_FOR_ALLOC freed 105K, 11% free 12113K/13511K, paused 10ms, total 10ms

06-30 11:43:10.219: D/dalvikvm(18771): GC_FOR_ALLOC freed 168K, 11% free 12338K/13767K, paused 10ms, total 10ms

06-30 11:43:10.219: I/dalvikvm-heap(18771): Grow heap (frag case) to 15.535MB for 2592016-byte allocation

06-30 11:43:10.244: D/dalvikvm(18771): GC_CONCURRENT freed 1K, 9% free 14868K/16327K, paused 11ms+1ms, total 21ms

06-30 11:43:10.309: D/dalvikvm(18771): GC_FOR_ALLOC freed 2532K, 23% free 13868K/17927K, paused 12ms, total 12ms

06-30 11:43:10.354: D/dalvikvm(18771): GC_CONCURRENT freed 1403K, 21% free 14248K/17927K, paused 1ms+12ms, total 23ms

06-30 11:43:10.354: D/AbsListView(18771): Get MotionRecognitionManager

浅谈ANR怎样分析解决ANR

【BUG】&quot;main&quot; prio=5 tid=1 RUNNABLE的更多相关文章

  1. 【BUG】12小时制和24小时制获取当天零点问题

    [BUG]12小时制和24小时制获取当天零点问题 最近在写定时服务的时候,要获取当天的零点这个时间,但是是这样获取的 DateTime dt = DateTime.Parse(DateTime.Now ...

  2. 文件监控性能问题【BUG】

    文件监控性能问题[BUG] 背景:JAVA写了一个文件夹目录监控的程序,使用的是org.apache.commons.io.monitor 包,项目稳定运行了一个月,现场反馈,文件夹数据处理越来越慢, ...

  3. 【bug】vue-cli 3.0报错的解决办法

    先上bug图片 bug说明:初装vue_cli3.0写了个组件,运行错误,显示如图, 代码提示:[Vue warn]: You are using the runtime-only build of ...

  4. 【转】 深入main函数中的参数argc,argv的使用详解

    C/C++语言中的main函数,经常带有参数argc,argv,如下: 复制代码 代码如下: int main(int argc, char** argv) 这两个参数的作用是什么呢?argc 是指命 ...

  5. 【bug】“Mat map” opencv全局变量不明确

    Mat map= Mat::zeros(WIN_WIDTH, WIN_HIGH, CV_8UC3);//全局变量 int main() { map.setTo(); } Error map 不明确 s ...

  6. 【BUG】Kewastunpackstats(): Bad Magic 1 (0x。。。。, 0)

    Kewastunpackstats(): Bad Magic 1 (0x1108f7b87, 0) In Alert Logfile After Upgrading to 11.2.0.1 Appli ...

  7. 【操作系统】:Main features of the X86-64

    The combination of the new hardware supplied by Intel and AMD ,and the new versions of GCC targeting ...

  8. Exception in thread &quot;main&quot; java.lang.IllegalArgumentException

    1.错误叙述性说明 Exception in thread "main" java.lang.IllegalArgumentException: Cannot format giv ...

  9. 【BUG】websphere找不到类或jar包冲突

    来自:http://liuwei1578.blog.163.com/blog/static/49580364200991572642653/ Jar包冲突问题是在大型Java软件开发中经常遇到的问题, ...

随机推荐

  1. 图解时间复杂度O(n)

    画一个16个格子.大O表示计算的操作数. 算法1 需要16步. 算法2 算法1的时间复杂度为O(n) 算法2的时间复杂度为O(logn) n为元素个数16 O中的内容为操作的次数 5种常用的时间复杂度

  2. POJ 3277 线段树+扫描线

    题意: 思路: 线段树求矩形面积的并...同 POJ 1151 //By SiriusRen #include <cstdio> #include <algorithm> us ...

  3. 使用goroutine+channel和java多线程+queue队列的方式开发各有什么优缺点?

    我感觉很多项目使用java或者c的多线程库+线程安全的queue数据结构基本上可以实现goroutine+channel开发能达到的需求,所以请问一下为什么说golang更适合并发服务端的开发呢?使用 ...

  4. javascript常用收集一下

    事件源对象 event.srcElement.tagName event.srcElement.type 捕获释放 event.srcElement.setCapture(); event.srcEl ...

  5. MFC的学习路线

    首先,MFC是比较难的!比C#和VB要难得多.MFC是基于C++的.首先C++必须熟悉.MFC主要是学习里面的控件的使用. 建议学习路线: 1. 易语言中文编程从入门到精通: https://deta ...

  6. CF37E Trial for Chief(最短路)

    题意 题意是给你一张 NMNMNM 的图,每个点有黑色和白色,初始全为白色,每次可以把一个相同颜色的连续区域染色,求最少的染色次数:(n,m<=50) 题解 转化为最短路.对于每一个点与它相邻的 ...

  7. 苹果下一代iPhone曝光

    3月23日消息,据9TO5Mac报道,苹果下一代iPhone(以下暂命名为iPhone 11)可能会提供像三星Galaxy S10的PowerShare功能,能为Apple Watch和AirPods ...

  8. Unity 获得视频的某一帧,生成缩略图

    Unity 并无直接获取视频某一帧图像的API,所以想要生成缩略图就要自己写方法了, 图片和视频都可以用这种方式生成缩略图,另,转载请标明出处,谢谢. using System.Collections ...

  9. 【BZOJ 1051】[HAOI2006]受欢迎的牛

    [链接] 我是链接,点我呀:) [题意] 在这里输入题意 [题解] Tarjan算法强连通缩点 . 最后出度为0的点. 如果只有一个. 那么这个"大点"所包含的点的个数就是答案了. ...

  10. LiquiBase预判断

    预判断解决的问题:运行liquibase之前,DB中已经存在一个table,所以需要加上预判断: 完整的一个例子: <?xml version="1.0" encoding= ...