启动时LayoutInflater inflate 提示出错,救命啊。。。

时间:2021-10-28 22:13:13
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
MyLog.v(LOG_TAG, ">>>>> onCreateView - start");

mActivity = getActivity();

MyLog.v(LOG_TAG, ">>>>> onCreateView - inflater.inflate ");

mRootView = inflater.inflate(R.layout.file_list, container, false);

                ......
          }

一个继承于Fragment 类的View 在初始化导入Layout 时出错,错误提示,检查了很久也没找出原因

07-23 10:52:01.819: V/FileBaseView(32365): >>>>> onCreateView - start
07-23 10:52:01.819: V/FileBaseView(32365): >>>>> onCreateView - inflater.inflate 
07-23 10:52:01.866: D/dalvikvm(32365): GC_FOR_ALLOC freed 1353K, 53% free 8533K/18100K, paused 35ms, total 35ms
07-23 10:52:01.952: I/dalvikvm-heap(32365): Grow heap (frag case) to 17.272MB for 7615292-byte allocation
07-23 10:52:01.991: D/dalvikvm(32365): GC_FOR_ALLOC freed <1K, 38% free 15970K/25540K, paused 37ms, total 37ms
07-23 10:52:02.023: E/dalvikvm(32365): adjustAdaptiveCoef max=4194304, min=1048576, ut=568
07-23 10:52:02.023: D/dalvikvm(32365): GC_CONCURRENT freed 1K, 38% free 15969K/25540K, paused 2ms+2ms, total 26ms
07-23 10:52:02.023: D/dalvikvm(32365): WAIT_FOR_CONCURRENT_GC blocked 22ms
07-23 10:52:02.187: D/skia(32365): --- SkImageDecoder::Factory returned null
07-23 10:52:02.194: D/AndroidRuntime(32365): Shutting down VM
07-23 10:52:02.194: W/dalvikvm(32365): threadid=1: thread exiting with uncaught exception (group=0x418cd930)
07-23 10:52:02.476: I/ActivityManager(32365): kill activity!
07-23 10:52:02.702: D/dalvikvm(32365): GC_CONCURRENT freed 7830K, 33% free 12148K/18092K, paused 7ms+5ms, total 61ms
07-23 10:52:04.726: E/CrashHandler(32365): =====exit=====
07-23 10:52:04.726: I/Process(32365): Sending signal. PID: 32365 SIG: 9

11 个解决方案

#1


看日志好像是 奔溃了,是不是内存溢出,只有这点记录。
mRootView = inflater.inflate(R.layout.file_list, container, false);
看看file_list 里面文件是什么。可能问题在布局文件里面。

#2


在检查布局文件,关键是我在手机上,华硕平板上都是好好的,拿到三星平板gt-p5100 上就跑不起来了,郁闷啊!

#3


还有这个提示, SkImageDecoder::Factory returned null  是不是图片解码时有问题?

#4


自己顶一下!

#5


inflater在哪初始化的?出错信息贴全面。

#6


是在导入主界面的布局文件时出错的

#7


07-23 10:51:57.859: D/ImageLoader(32365): Initialize ImageLoader with configuration
07-23 10:51:57.960: D/dalvikvm(32365): GC_FOR_ALLOC freed 139K, 31% free 4292K/6152K, paused 26ms, total 26ms
07-23 10:51:57.999: I/dalvikvm-heap(32365): Grow heap (frag case) to 13.779MB for 8294416-byte allocation
07-23 10:51:58.077: D/dalvikvm(32365): GC_FOR_ALLOC freed 0K, 14% free 12392K/14256K, paused 75ms, total 75ms
07-23 10:51:58.116: D/ImageLoader(32379): Initialize ImageLoader with configuration
07-23 10:51:58.148: E/dalvikvm(32365): adjustAdaptiveCoef max=4194304, min=1048576, ut=568
07-23 10:51:58.148: D/dalvikvm(32365): GC_CONCURRENT freed 1K, 14% free 12392K/14256K, paused 2ms+3ms, total 69ms
07-23 10:51:58.577: V/GlobalConsts(32365): init ip: 10.168.168.1
07-23 10:51:58.577: V/GlobalConsts(32365): init SMB ip: 10.168.168.1
07-23 10:51:58.710: I/AppUpgradeService(32365): AppUpgradeService onStart
07-23 10:51:59.023: D/libEGL(32365): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
07-23 10:51:59.109: D/libEGL(32365): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
07-23 10:51:59.124: D/libEGL(32365): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
07-23 10:51:59.226: D/OpenGLRenderer(32365): Enabling debug mode 0
07-23 10:51:59.249: W/System.err(32365): org.apache.http.client.ClientProtocolException
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:557)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
07-23 10:51:59.249: W/System.err(32365):  at com.zsun.myclouds.activity.service.AppUpgradeService$UpgradeAppThread.run(AppUpgradeService.java:93)
07-23 10:51:59.249: W/System.err(32365): Caused by: org.apache.http.ProtocolException: The server failed to respond with a valid HTTP response
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:93)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:180)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:259)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
07-23 10:51:59.249: W/System.err(32365):  ... 3 more
07-23 10:52:01.210: D/dalvikvm(32365): GC_CONCURRENT freed 8228K, 56% free 8144K/18100K, paused 45ms+2ms, total 69ms
07-23 10:52:01.210: D/dalvikvm(32365): WAIT_FOR_CONCURRENT_GC blocked 23ms
07-23 10:52:01.249: D/dalvikvm(32365): GC_FOR_ALLOC freed 132K, 50% free 9114K/18100K, paused 24ms, total 24ms
07-23 10:52:01.273: V/TabAdapter(32365):  onDefaultPageSelected >> 1
07-23 10:52:01.273: V/TabAdapter(32365):  onPageSelected >> 1
07-23 10:52:01.655: I/Choreographer(32365): Skipped 39 frames!  The application may be doing too much work on its main thread.
07-23 10:52:01.819: V/FileBaseView(32365): >>>>> onCreateView - start
07-23 10:52:01.819: V/FileBaseView(32365): >>>>> onCreateView - inflater.inflate 
07-23 10:52:01.866: D/dalvikvm(32365): GC_FOR_ALLOC freed 1353K, 53% free 8533K/18100K, paused 35ms, total 35ms
07-23 10:52:01.952: I/dalvikvm-heap(32365): Grow heap (frag case) to 17.272MB for 7615292-byte allocation
07-23 10:52:01.991: D/dalvikvm(32365): GC_FOR_ALLOC freed <1K, 38% free 15970K/25540K, paused 37ms, total 37ms
07-23 10:52:02.023: E/dalvikvm(32365): adjustAdaptiveCoef max=4194304, min=1048576, ut=568
07-23 10:52:02.023: D/dalvikvm(32365): GC_CONCURRENT freed 1K, 38% free 15969K/25540K, paused 2ms+2ms, total 26ms
07-23 10:52:02.023: D/dalvikvm(32365): WAIT_FOR_CONCURRENT_GC blocked 22ms
07-23 10:52:02.187: D/skia(32365): --- SkImageDecoder::Factory returned null
07-23 10:52:02.194: D/AndroidRuntime(32365): Shutting down VM
07-23 10:52:02.194: W/dalvikvm(32365): threadid=1: thread exiting with uncaught exception (group=0x418cd930)
07-23 10:52:02.476: I/ActivityManager(32365): kill activity!
07-23 10:52:02.702: D/dalvikvm(32365): GC_CONCURRENT freed 7830K, 33% free 12148K/18092K, paused 7ms+5ms, total 61ms
07-23 10:52:04.726: E/CrashHandler(32365): =====exit=====
07-23 10:52:04.726: I/Process(32365): Sending signal. PID: 32365 SIG: 9

#8


还没解决,再顶!

#9


检查file_list 布局文件是否有自定义View  自定义View内是否有对较大的文件或者图片进行操作

在manifest里 application标签内加入android:largeHeap="true" 试下

#10


引用 7 楼 reval 的回复:
07-23 10:51:57.859: D/ImageLoader(32365): Initialize ImageLoader with configuration
07-23 10:51:57.960: D/dalvikvm(32365): GC_FOR_ALLOC freed 139K, 31% free 4292K/6152K, paused 26ms, total 26ms
07-23 10:51:57.999: I/dalvikvm-heap(32365): Grow heap (frag case) to 13.779MB for 8294416-byte allocation
07-23 10:51:58.077: D/dalvikvm(32365): GC_FOR_ALLOC freed 0K, 14% free 12392K/14256K, paused 75ms, total 75ms
07-23 10:51:58.116: D/ImageLoader(32379): Initialize ImageLoader with configuration
07-23 10:51:58.148: E/dalvikvm(32365): adjustAdaptiveCoef max=4194304, min=1048576, ut=568
07-23 10:51:58.148: D/dalvikvm(32365): GC_CONCURRENT freed 1K, 14% free 12392K/14256K, paused 2ms+3ms, total 69ms
07-23 10:51:58.577: V/GlobalConsts(32365): init ip: 10.168.168.1
07-23 10:51:58.577: V/GlobalConsts(32365): init SMB ip: 10.168.168.1
07-23 10:51:58.710: I/AppUpgradeService(32365): AppUpgradeService onStart
07-23 10:51:59.023: D/libEGL(32365): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
07-23 10:51:59.109: D/libEGL(32365): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
07-23 10:51:59.124: D/libEGL(32365): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
07-23 10:51:59.226: D/OpenGLRenderer(32365): Enabling debug mode 0
07-23 10:51:59.249: W/System.err(32365): org.apache.http.client.ClientProtocolException
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:557)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
07-23 10:51:59.249: W/System.err(32365):  at com.zsun.myclouds.activity.service.AppUpgradeService$UpgradeAppThread.run(AppUpgradeService.java:93)
07-23 10:51:59.249: W/System.err(32365): Caused by: org.apache.http.ProtocolException: The server failed to respond with a valid HTTP response
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:93)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:180)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:259)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
07-23 10:51:59.249: W/System.err(32365):  ... 3 more
07-23 10:52:01.210: D/dalvikvm(32365): GC_CONCURRENT freed 8228K, 56% free 8144K/18100K, paused 45ms+2ms, total 69ms
07-23 10:52:01.210: D/dalvikvm(32365): WAIT_FOR_CONCURRENT_GC blocked 23ms
07-23 10:52:01.249: D/dalvikvm(32365): GC_FOR_ALLOC freed 132K, 50% free 9114K/18100K, paused 24ms, total 24ms
07-23 10:52:01.273: V/TabAdapter(32365):  onDefaultPageSelected >> 1
07-23 10:52:01.273: V/TabAdapter(32365):  onPageSelected >> 1
07-23 10:52:01.655: I/Choreographer(32365): Skipped 39 frames!  The application may be doing too much work on its main thread.
07-23 10:52:01.819: V/FileBaseView(32365): >>>>> onCreateView - start
07-23 10:52:01.819: V/FileBaseView(32365): >>>>> onCreateView - inflater.inflate 
07-23 10:52:01.866: D/dalvikvm(32365): GC_FOR_ALLOC freed 1353K, 53% free 8533K/18100K, paused 35ms, total 35ms
07-23 10:52:01.952: I/dalvikvm-heap(32365): Grow heap (frag case) to 17.272MB for 7615292-byte allocation
07-23 10:52:01.991: D/dalvikvm(32365): GC_FOR_ALLOC freed <1K, 38% free 15970K/25540K, paused 37ms, total 37ms
07-23 10:52:02.023: E/dalvikvm(32365): adjustAdaptiveCoef max=4194304, min=1048576, ut=568
07-23 10:52:02.023: D/dalvikvm(32365): GC_CONCURRENT freed 1K, 38% free 15969K/25540K, paused 2ms+2ms, total 26ms
07-23 10:52:02.023: D/dalvikvm(32365): WAIT_FOR_CONCURRENT_GC blocked 22ms
07-23 10:52:02.187: D/skia(32365): --- SkImageDecoder::Factory returned null
07-23 10:52:02.194: D/AndroidRuntime(32365): Shutting down VM
07-23 10:52:02.194: W/dalvikvm(32365): threadid=1: thread exiting with uncaught exception (group=0x418cd930)
07-23 10:52:02.476: I/ActivityManager(32365): kill activity!
07-23 10:52:02.702: D/dalvikvm(32365): GC_CONCURRENT freed 7830K, 33% free 12148K/18092K, paused 7ms+5ms, total 61ms
07-23 10:52:04.726: E/CrashHandler(32365): =====exit=====
07-23 10:52:04.726: I/Process(32365): Sending signal. PID: 32365 SIG: 9


这个是因为在imageloader初始化时,要初始化一些设置:ImageLoaderConfiguration
ImageLoader.getInstance().init(config);
设置完后才能使用。

#11


找了好久,原来是xml 布局文件里的一个小图标引起的,换个图标就好了,狂晕。。。

还是谢谢各位了!

#1


看日志好像是 奔溃了,是不是内存溢出,只有这点记录。
mRootView = inflater.inflate(R.layout.file_list, container, false);
看看file_list 里面文件是什么。可能问题在布局文件里面。

#2


在检查布局文件,关键是我在手机上,华硕平板上都是好好的,拿到三星平板gt-p5100 上就跑不起来了,郁闷啊!

#3


还有这个提示, SkImageDecoder::Factory returned null  是不是图片解码时有问题?

#4


自己顶一下!

#5


inflater在哪初始化的?出错信息贴全面。

#6


是在导入主界面的布局文件时出错的

#7


07-23 10:51:57.859: D/ImageLoader(32365): Initialize ImageLoader with configuration
07-23 10:51:57.960: D/dalvikvm(32365): GC_FOR_ALLOC freed 139K, 31% free 4292K/6152K, paused 26ms, total 26ms
07-23 10:51:57.999: I/dalvikvm-heap(32365): Grow heap (frag case) to 13.779MB for 8294416-byte allocation
07-23 10:51:58.077: D/dalvikvm(32365): GC_FOR_ALLOC freed 0K, 14% free 12392K/14256K, paused 75ms, total 75ms
07-23 10:51:58.116: D/ImageLoader(32379): Initialize ImageLoader with configuration
07-23 10:51:58.148: E/dalvikvm(32365): adjustAdaptiveCoef max=4194304, min=1048576, ut=568
07-23 10:51:58.148: D/dalvikvm(32365): GC_CONCURRENT freed 1K, 14% free 12392K/14256K, paused 2ms+3ms, total 69ms
07-23 10:51:58.577: V/GlobalConsts(32365): init ip: 10.168.168.1
07-23 10:51:58.577: V/GlobalConsts(32365): init SMB ip: 10.168.168.1
07-23 10:51:58.710: I/AppUpgradeService(32365): AppUpgradeService onStart
07-23 10:51:59.023: D/libEGL(32365): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
07-23 10:51:59.109: D/libEGL(32365): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
07-23 10:51:59.124: D/libEGL(32365): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
07-23 10:51:59.226: D/OpenGLRenderer(32365): Enabling debug mode 0
07-23 10:51:59.249: W/System.err(32365): org.apache.http.client.ClientProtocolException
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:557)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
07-23 10:51:59.249: W/System.err(32365):  at com.zsun.myclouds.activity.service.AppUpgradeService$UpgradeAppThread.run(AppUpgradeService.java:93)
07-23 10:51:59.249: W/System.err(32365): Caused by: org.apache.http.ProtocolException: The server failed to respond with a valid HTTP response
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:93)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:180)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:259)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
07-23 10:51:59.249: W/System.err(32365):  ... 3 more
07-23 10:52:01.210: D/dalvikvm(32365): GC_CONCURRENT freed 8228K, 56% free 8144K/18100K, paused 45ms+2ms, total 69ms
07-23 10:52:01.210: D/dalvikvm(32365): WAIT_FOR_CONCURRENT_GC blocked 23ms
07-23 10:52:01.249: D/dalvikvm(32365): GC_FOR_ALLOC freed 132K, 50% free 9114K/18100K, paused 24ms, total 24ms
07-23 10:52:01.273: V/TabAdapter(32365):  onDefaultPageSelected >> 1
07-23 10:52:01.273: V/TabAdapter(32365):  onPageSelected >> 1
07-23 10:52:01.655: I/Choreographer(32365): Skipped 39 frames!  The application may be doing too much work on its main thread.
07-23 10:52:01.819: V/FileBaseView(32365): >>>>> onCreateView - start
07-23 10:52:01.819: V/FileBaseView(32365): >>>>> onCreateView - inflater.inflate 
07-23 10:52:01.866: D/dalvikvm(32365): GC_FOR_ALLOC freed 1353K, 53% free 8533K/18100K, paused 35ms, total 35ms
07-23 10:52:01.952: I/dalvikvm-heap(32365): Grow heap (frag case) to 17.272MB for 7615292-byte allocation
07-23 10:52:01.991: D/dalvikvm(32365): GC_FOR_ALLOC freed <1K, 38% free 15970K/25540K, paused 37ms, total 37ms
07-23 10:52:02.023: E/dalvikvm(32365): adjustAdaptiveCoef max=4194304, min=1048576, ut=568
07-23 10:52:02.023: D/dalvikvm(32365): GC_CONCURRENT freed 1K, 38% free 15969K/25540K, paused 2ms+2ms, total 26ms
07-23 10:52:02.023: D/dalvikvm(32365): WAIT_FOR_CONCURRENT_GC blocked 22ms
07-23 10:52:02.187: D/skia(32365): --- SkImageDecoder::Factory returned null
07-23 10:52:02.194: D/AndroidRuntime(32365): Shutting down VM
07-23 10:52:02.194: W/dalvikvm(32365): threadid=1: thread exiting with uncaught exception (group=0x418cd930)
07-23 10:52:02.476: I/ActivityManager(32365): kill activity!
07-23 10:52:02.702: D/dalvikvm(32365): GC_CONCURRENT freed 7830K, 33% free 12148K/18092K, paused 7ms+5ms, total 61ms
07-23 10:52:04.726: E/CrashHandler(32365): =====exit=====
07-23 10:52:04.726: I/Process(32365): Sending signal. PID: 32365 SIG: 9

#8


还没解决,再顶!

#9


检查file_list 布局文件是否有自定义View  自定义View内是否有对较大的文件或者图片进行操作

在manifest里 application标签内加入android:largeHeap="true" 试下

#10


引用 7 楼 reval 的回复:
07-23 10:51:57.859: D/ImageLoader(32365): Initialize ImageLoader with configuration
07-23 10:51:57.960: D/dalvikvm(32365): GC_FOR_ALLOC freed 139K, 31% free 4292K/6152K, paused 26ms, total 26ms
07-23 10:51:57.999: I/dalvikvm-heap(32365): Grow heap (frag case) to 13.779MB for 8294416-byte allocation
07-23 10:51:58.077: D/dalvikvm(32365): GC_FOR_ALLOC freed 0K, 14% free 12392K/14256K, paused 75ms, total 75ms
07-23 10:51:58.116: D/ImageLoader(32379): Initialize ImageLoader with configuration
07-23 10:51:58.148: E/dalvikvm(32365): adjustAdaptiveCoef max=4194304, min=1048576, ut=568
07-23 10:51:58.148: D/dalvikvm(32365): GC_CONCURRENT freed 1K, 14% free 12392K/14256K, paused 2ms+3ms, total 69ms
07-23 10:51:58.577: V/GlobalConsts(32365): init ip: 10.168.168.1
07-23 10:51:58.577: V/GlobalConsts(32365): init SMB ip: 10.168.168.1
07-23 10:51:58.710: I/AppUpgradeService(32365): AppUpgradeService onStart
07-23 10:51:59.023: D/libEGL(32365): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
07-23 10:51:59.109: D/libEGL(32365): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
07-23 10:51:59.124: D/libEGL(32365): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
07-23 10:51:59.226: D/OpenGLRenderer(32365): Enabling debug mode 0
07-23 10:51:59.249: W/System.err(32365): org.apache.http.client.ClientProtocolException
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:557)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
07-23 10:51:59.249: W/System.err(32365):  at com.zsun.myclouds.activity.service.AppUpgradeService$UpgradeAppThread.run(AppUpgradeService.java:93)
07-23 10:51:59.249: W/System.err(32365): Caused by: org.apache.http.ProtocolException: The server failed to respond with a valid HTTP response
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:93)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:180)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:235)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:259)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:279)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:121)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428)
07-23 10:51:59.249: W/System.err(32365):  at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
07-23 10:51:59.249: W/System.err(32365):  ... 3 more
07-23 10:52:01.210: D/dalvikvm(32365): GC_CONCURRENT freed 8228K, 56% free 8144K/18100K, paused 45ms+2ms, total 69ms
07-23 10:52:01.210: D/dalvikvm(32365): WAIT_FOR_CONCURRENT_GC blocked 23ms
07-23 10:52:01.249: D/dalvikvm(32365): GC_FOR_ALLOC freed 132K, 50% free 9114K/18100K, paused 24ms, total 24ms
07-23 10:52:01.273: V/TabAdapter(32365):  onDefaultPageSelected >> 1
07-23 10:52:01.273: V/TabAdapter(32365):  onPageSelected >> 1
07-23 10:52:01.655: I/Choreographer(32365): Skipped 39 frames!  The application may be doing too much work on its main thread.
07-23 10:52:01.819: V/FileBaseView(32365): >>>>> onCreateView - start
07-23 10:52:01.819: V/FileBaseView(32365): >>>>> onCreateView - inflater.inflate 
07-23 10:52:01.866: D/dalvikvm(32365): GC_FOR_ALLOC freed 1353K, 53% free 8533K/18100K, paused 35ms, total 35ms
07-23 10:52:01.952: I/dalvikvm-heap(32365): Grow heap (frag case) to 17.272MB for 7615292-byte allocation
07-23 10:52:01.991: D/dalvikvm(32365): GC_FOR_ALLOC freed <1K, 38% free 15970K/25540K, paused 37ms, total 37ms
07-23 10:52:02.023: E/dalvikvm(32365): adjustAdaptiveCoef max=4194304, min=1048576, ut=568
07-23 10:52:02.023: D/dalvikvm(32365): GC_CONCURRENT freed 1K, 38% free 15969K/25540K, paused 2ms+2ms, total 26ms
07-23 10:52:02.023: D/dalvikvm(32365): WAIT_FOR_CONCURRENT_GC blocked 22ms
07-23 10:52:02.187: D/skia(32365): --- SkImageDecoder::Factory returned null
07-23 10:52:02.194: D/AndroidRuntime(32365): Shutting down VM
07-23 10:52:02.194: W/dalvikvm(32365): threadid=1: thread exiting with uncaught exception (group=0x418cd930)
07-23 10:52:02.476: I/ActivityManager(32365): kill activity!
07-23 10:52:02.702: D/dalvikvm(32365): GC_CONCURRENT freed 7830K, 33% free 12148K/18092K, paused 7ms+5ms, total 61ms
07-23 10:52:04.726: E/CrashHandler(32365): =====exit=====
07-23 10:52:04.726: I/Process(32365): Sending signal. PID: 32365 SIG: 9


这个是因为在imageloader初始化时,要初始化一些设置:ImageLoaderConfiguration
ImageLoader.getInstance().init(config);
设置完后才能使用。

#11


找了好久,原来是xml 布局文件里的一个小图标引起的,换个图标就好了,狂晕。。。

还是谢谢各位了!