Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB Crashing in Eclipse

This question relates to this thread, however that thread has no answers so this it not technically a duplicate.

I've got ADB 1.0.26 running on my Windows 7 x64 and Eclipse SDK 3.6.2 with ADT 10.0.1 SDK tools r10, and I've got all the Android SDK versions installed.

When I connect my phone to the computer in debug mode, and type adb devices into the command prompt, my phone shows up. It's an Inspire 4G. I can adb shell into the device and ls, so I'm assuming that the adb/driver/phone part of the chain is working properly.

Now, if I connect my phone and go into Eclipse, I get:

[2011-03-28 17:46:33 - DeviceMonitor]Adb connection Error:An existing connection was forcibly closed by the remote host

[2011-03-28 17:46:34 - DeviceMonitor]Connection attempts: 1

[2011-03-28 17:46:36 - DeviceMonitor]Connection attempts: 2

[...]

[2011-03-28 17:47:53 - DeviceMonitor]Connection attempts: 10

[2011-03-28 17:46:54 - DeviceMonitor]Connection attempts: 11

[2011-03-28 17:47:00 - adb]

[2011-03-28 17:47:00 - adb]This application has requested the Runtime to terminate it in an unusual way.

[2011-03-28 17:47:00 - adb]Please contact the application's support team for more information.

[2011-03-28 17:47:04 - DeviceMonitor]Adb connection Error:An existing connection was forcibly closed by the remote host

[2011-03-28 17:47:05 - DeviceMonitor]Connection attempts: 1

[2011-03-28 17:47:07 - DeviceMonitor]Connection attempts: 2

etc, etc... This loops forever. It doesn't matter if I start Eclipse and then connect the phone, or if I connect the phone and then start Eclipse.

I don't think it should matter, but my phone is an Inspire 4G which is rooted and running Revolution 4G 3.2

like image 437
Ozzah Avatar asked Mar 28 '11 06:03

Ozzah


3 Answers

this patched adb version worked fine for me (HTC Desire HD): http://code.google.com/p/android/issues/detail?id=12141

like image 151
Frank Avatar answered Nov 10 '22 16:11

Frank


For this go to DDMS, Look for Devices-->View Menu-->Reset adb.

like image 22
Vicky Kapadia Avatar answered Nov 10 '22 18:11

Vicky Kapadia


Do you have the Revolution 4G ROMs installed? If so, then I had to install the no-sense patch to remove all the HTC stuff. Once I did that, ADB stopped crashing in Eclipse.

Edit - Actually it seems like it still crashes sometimes, but not as often? Still not a solution.

like image 31
kurtzmarc Avatar answered Nov 10 '22 16:11

kurtzmarc