开发者

Overpopulating Logcat causes Windows to freeze, until a hard reboot is performed

The title speaks for itself, but I would add some pointers I've noticed along the way.

I would like anyone who also experiences the end result while developing for Android to try to reproduce this and see if this scenario is really the case.

The crash happens when Logcat is overpopulated. By overpopulated I mean that from a point in time, if you would leave a device connected in debug mode for a while, and you would look at the Logcat view, it would display only the new 'delta' lines added to th开发者_运维技巧e log in the past short interval of about two seconds.

If you would pay attention, while the Logcat is overpopulated, the device which is been debugged, responds slowly to user interaction (this can be your indication, that the Logcat is overpopulated while testing your application), and perform other actions ridiculously slow.

If you would leave the device connected and more logs would be added, there is a short interval 5-10 seconds, where Eclipse starts to behave weird, and after that, there is nothing you can do, Windows 7 freezes and only hard reboot allows you to get back to work.

I can reproduce this every time, if I would just leave a device connected in debug mode with an application running.

I've Googled this and came up with nothing. I assume that if me and my colleagues encounter this (we have the same Eclipse setup), then other should also experience this, so before posting a bug, I would like to confirm this...

Details:

  • Windows 7

  • Eclipse 3.6

  • ADT 10.0.0.v201102162101-104271 (latest for today)


I have the same problem here. I've been troubleshooting this for months! Mostly because it's been extremely difficult to find anyone with the same issue. (I was actually linked to this post from the bug report that Android Developer provided.)

I've been working with someone on a similar Stack Overflow issue. He thought the problem was his IDE until I reported that I was experiencing the same issue, but with a different IDE. Together, we've been able to whittle the problem down to either the device itself or the drivers. We recently just excluded the USB cables as the culprit.

However, the problems reported in the Google bug report are exactly what we've been experiencing. It makes sense that ADB might be where the problem ultimately lies.

Hopefully, this post will help create some search-friendly connections between the other posts.


Other Stack Overflow post mentioned above -- Android development in IntelliJ IDEA causes computer to freeze

Google bug report, Issue #24171 (originally posted by Android Developer) -- http://code.google.com/p/android/issues/detail?id=24171


I also have a similar problem. Sometimes, the Windows OS completely freeze when an Android device is connected.

I'm not sure why it happens, but I think that it only occurs when the ADB is active.

Here's a bug report I've found recently about this: adb causes whole Windows operating system to freeze randomly

After using a USB from the back, and installing Windows 8, the problem doesn't occur any more.

However, it's Windows 8, and I wish I used Windows 7. For some reason, Microsoft didn't provide a way to go back...


Try setting your Eclipse Android Settings for the maximum amount of logcat messages in the buffer to a lower value. This should help


I don't want to jump to conclusions, but I think I've found the real issue which causes this halt...

I'm going to make some assumptions, and if one of these does not fit your scenario, let me know:

Assumptions:

  1. This only happens on a chargeable computer... Be very very sure before dismissing this assumption.
  2. This happens when a laptop is connected to the adapter, and is being charged.

Cause:

  • This happens when you use a custom adapter, and not one that 100% fit your computer.

According to my experience, once I've used my home adapter on my work computer, the crash reoccurred over, and over, and over... drove me nuts... and when I got back to work, and used the proper adapter, the issue vanished!

Same with my home computer, and work adapter.

Lend me your thoughts...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜