Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 455
TacB0sS Avatar asked Aug 16 '11 09:08

TacB0sS


2 Answers

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

like image 138
PhilaPhan80 Avatar answered Nov 20 '22 11:11

PhilaPhan80


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...

like image 3
android developer Avatar answered Nov 20 '22 10:11

android developer