螺纹未捕获的异常退出 [英] Thread exiting with uncaught exception

查看:175
本文介绍了螺纹未捕获的异常退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序已接近完成。我只是做bugfixing现在。我遇到一个问题,我有时随机(所以并不总是同一时间或相同的动作完成后),获得我的应用程序崩溃。 LogCat中只是告诉​​我

my app is nearly done. I'm only doing the bugfixing now. I'm running into a problem that I sometimes randomly (so not always the same time or after the same actions are done) get my app crashed. LogCat just tells me

threadid=11 thread eixiting with uncaught exception (group=0x4134d2a0)

但没有引发的会来正常什么,所以我其实可以捕获该异常。当它崩溃(随机),这被写进我的控制台

But there is no "caused by" what normally would come so I can actually catch the exception. When it crashes (randomly) this gets written into my console

[2013-10-22 15:39:36 - ddms] null
java.lang.NullPointerException
    at com.android.ddmlib.Client.read(Client.java:698)
    at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:311)
    at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)

[2013-10-22 15:39:36 - ddms] null
java.lang.NullPointerException
    at com.android.ddmlib.Client.read(Client.java:698)
    at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:311)
    at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)

但这些都不是我的班。我怎样才能捕捉异常?请注意,我不能在这里发表了整个code。这首先得太多,我不能......应用程序崩溃随机。我不知道为什么,以及如何处理它。有什么建议?

But these aren't classes of mine. How can I catch the exception? Please be aware that I'm not able to post the whole code here. It's firstly too much and I'm not allowed to... The app crashes randomly. I don't know why and how to handle it. Any suggestions?

我现在运行在一个GALAXY NOTE的应用程序。

I'm running the app on a galaxy note right now.

推荐答案

什么是错与DDM​​S与设备之间的通信出现这些错误。他们通常是无害的,但你可以通过重新启动服务器ADB解决这些问题:

These errors occur when something is wrong with the communication between DDMS and the device. They're generally harmless, but you can solve them by restarting the ADB server:

adb kill-server
adb start-server

如果您使用的模拟器,这不解决问题,尝试删除并重新创建AVD。

If you're using the emulator and this doesn't solve the problem, try deleting and recreating the AVD.

这篇关于螺纹未捕获的异常退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆