Over populating Logcat causes windows to freeze, until hard reboot is performed

穿精又带淫゛_ 提交于 2019-12-14 00:29:42

问题


The title speak for itself, but I would add some pointers I've noticed along the way. I would like anyone which also experience the end result while developing for Android to try to reproduce this and see if this scenario is really the case, and if someone have a solution, that would make me very happy :), it is extremely frustrating that I need to hard reboot my computer while developing...

The crash happens when Logcat is over populated. By over populated 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 the log in the past short interval of about 2 sec.

If you would pay attention, while the Logcat is over populated the device which is been debugged, response slowly to user interaction(this can be your indication, that the Logcat is over populated 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 sec, 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)

Thanks,

Adam.


回答1:


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




回答2:


i also have a similar problem - sometimes , 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: http://code.google.com/p/android/issues/detail?id=24171

EDIT: after using a usb from the back , and installing windows 8 , the problem doesn't occur anymore. however , it's windows 8 , and i wish i used windows 7 . for some reason , MS didn't provide any way to go back...




回答3:


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




回答4:


I don't want to jump into conclusions, but I think I've found the real issue 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 been 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...



来源:https://stackoverflow.com/questions/7076440/over-populating-logcat-causes-windows-to-freeze-until-hard-reboot-is-performed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!