[myTouch 4G Q&A, Help & Troubleshooting] corruptsmurf:
Okay, I'm trying to get ddms.bat to recognize my device. I have a MT4G running stock Sense with Faux123's custom kernel. The device is permrooted with S=OFF, and has the engineering bootloader. I have a pc running windows 7 professional build 7601.

I have the most recent Android SDK, it is fully updated, and ADB recognizes the device and is fully functional.

When I open ddms.bat my device shows up in the window for a brief second, then disappears, and the cmd window generates an output loop of the following:

12:09:31 E/adb:

12:09:31 E/adb: This application has requested the Runtime to terminate it in an unusual way.

12:09:31 E/adb: Please contact the application's support team for more information.

12:09:35 E/DeviceMonitor: Adb connection Error:An existing connection was forcibly closed by the remote host

12:09:35 W/DeviceMonitor: Failed to connect to client '20455': An existing conne

ction was forcibly closed by the remote host

12:09:36 E/DeviceMonitor: Connection attempts: 1

12:09:36 W/DeviceMonitor: Failed to connect to client '5495': Connection refused: connect

12:09:37 W/DeviceMonitor: Failed to connect to client '26627': Connection refused: connect

12:09:38 E/DeviceMonitor: Connection attempts: 2

12:09:38 W/DeviceMonitor: Failed to connect to client '5522': Connection refused: connect

12:09:39 W/DeviceMonitor: Failed to connect to client '1826': Connection refused: connect

12:09:40 W/DeviceMonitor: Failed to connect to client '25049': Connection refused: connect

12:09:40 E/DeviceMonitor: Connection attempts: 3

12:09:41 W/DeviceMonitor: Failed to connect to client '5331': Connection refused: connect

12:09:42 E/DeviceMonitor: Connection attempts: 4

12:09:42 W/DeviceMonitor: Failed to connect to client '842': Connection refused: connect

12:09:43 W/DeviceMonitor: Failed to connect to client '3131': Connection refused: connect

12:09:44 W/DeviceMonitor: Failed to connect to client '834': Connection refused: connect

12:09:44 E/DeviceMonitor: Connection attempts: 5

12:09:45 W/DeviceMonitor: Failed to connect to client '17461': Connection refused: connect

12:09:46 E/DeviceMonitor: Connection attempts: 6

12:09:46 W/DeviceMonitor: Failed to connect to client '28513': Connection refused: connect

12:09:47 W/DeviceMonitor: Failed to connect to client '2153': Connection refused: connect

12:09:48 E/DeviceMonitor: Connection attempts: 7

12:09:48 W/DeviceMonitor: Failed to connect to client '2737': Connection refused: connect

12:09:49 W/DeviceMonitor: Failed to connect to client '27867': Connection refused: connect

12:09:50 E/DeviceMonitor: Connection attempts: 8

12:09:50 W/DeviceMonitor: Failed to connect to client '8866': Connection refused: connect

12:09:51 W/DeviceMonitor: Failed to connect to client '28094': Connection refused: connect

12:09:52 E/DeviceMonitor: Connection attempts: 9

12:09:52 W/DeviceMonitor: Failed to connect to client '11639': Connection refused: connect

12:09:53 W/DeviceMonitor: Failed to connect to client '2086': Connection refused: connect

12:09:54 E/DeviceMonitor: Connection attempts: 10

12:09:54 W/DeviceMonitor: Failed to connect to client '26787': Connection refused: connect

12:09:55 W/DeviceMonitor: Failed to connect to client '2120': Connection refused: connect

12:09:56 E/DeviceMonitor: Connection attempts: 11

12:09:56 W/DeviceMonitor: Failed to connect to client '27716': Connection refused: connect

12:09:57 W/DeviceMonitor: Failed to connect to client '1506': Connection refused: connect

12:09:58 W/DeviceMonitor: Adb rejected connection to client '1500': device offline

12:10:02 E/adb:

12:10:02 E/adb: This application has requested the Runtime to terminate it in an unusual way.

12:10:02 E/adb: Please contact the application's support team for more information.

12:10:05 E/DeviceMonitor: Adb connection Error:An existing connection was forcibly closed by the remote host

12:10:05 W/DeviceMonitor: Failed to connect to client '31096': An existing conne

ction was forcibly closed by the remote host

12:10:06 E/DeviceMonitor: Connection attempts: 1

12:10:06 W/DeviceMonitor: Failed to connect to client '19306': Connection refused: connect

12:10:07 W/DeviceMonitor: Failed to connect to client '2774': Connection refused: connect

12:10:08 W/DeviceMonitor: Failed to connect to client '6820': Connection refused: connect

12:10:08 E/DeviceMonitor: Connection attempts: 2

12:10:09 W/DeviceMonitor: Failed to connect to client '20455': Connection refused: connect

12:10:10 E/DeviceMonitor: Connection attempts: 3

12:10:10 W/DeviceMonitor: Failed to connect to client '5495': Connection refused: connect

12:10:11 W/DeviceMonitor: Failed to connect to client '26627': Connection refused: connect

12:10:12 E/DeviceMonitor: Connection attempts: 4

12:10:12 W/DeviceMonitor: Failed to connect to client '5522': Connection refused: connect

12:10:13 W/DeviceMonitor: Failed to connect to client '1826': Connection refused: connect

12:10:14 E/DeviceMonitor: Connection attempts: 5

12:10:14 W/DeviceMonitor: Failed to connect to client '25049': Connection refused: connect

....and so on

If I click on anything during this loop, I get the following:

12:13:10 E/adb:

12:13:10 E/adb: This application has requested the Runtime to terminate it in an

unusual way.

12:13:10 E/adb: Please contact the application's support team for more informati

on.

12:13:15 E/DeviceMonitor: Adb connection Error:An existing connection was forcibly closed by the remote host

12:13:15 E/DDMS: An existing connection was forcibly closed by the remote host

java.io.IOException: An existing connection was forcibly closed by the remote ho

st

at sun.nio.ch.SocketDispatcher.read0(Native Method)

at sun.nio.ch.SocketDispatcher.read(Unknown Source)

at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)

at sun.nio.ch.IOUtil.read(Unknown Source)

at sun.nio.ch.SocketChannelImpl.read(Unknown Source)

at com.android.ddmlib.AdbHelper.read(AdbHelper.java:640)

at com.android.ddmlib.AdbHelper.read(AdbHelper.java:616)

at com.android.ddmlib.AdbHelper.readAdbResponse(AdbHelper.java:216)

at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:734)

at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)

at com.android.ddmlib.Device.executeShellCommand(Device.java:276)

at com.android.ddmuilib.SysinfoPanel.loadFromDevice(SysinfoPanel.java:159)

at com.android.ddmuilib.SysinfoPanel.deviceSelected(SysinfoPanel.java:126)

at com.android.ddmuilib.SelectionDependentPanel.deviceSelected(SelectionDependentPanel.java:52)

at com.android.ddms.UIThread.selectionChanged(UIThread.java:1684)

at com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:752)

at com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:740)

at com.android.ddmuilib.DevicePanel.access$1100(DevicePanel.java:56)

at com.android.ddmuilib.DevicePanel$1.widgetSelected(DevicePanel.java:357)

at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)

at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)

at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)

at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)

at com.android.ddms.UIThread.runUI(UIThread.java:492)

at com.android.ddms.Main.main(Main.java:103)

12:13:15 W/DeviceMonitor: Failed to connect to client '20455': An existing conne

ction was forcibly closed by the remote host

12:13:16 E/DeviceMonitor: Connection attempts: 1

12:13:16 W/DeviceMonitor: Failed to connect to client '5495': Connection refused

: connect

12:13:16 E/Logcat: Connection refused: connect

java.net.ConnectException: Connection refused: connect

at sun.nio.ch.Net.connect(Native Method)

at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)

at java.nio.channels.SocketChannel.open(Unknown Source)

at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:367)

at com.android.ddmlib.Device.executeShellCommand(Device.java:284)

at com.android.ddmuilib.logcat.LogPanel$3.run(LogPanel.java:527)

12:13:17 W/DeviceMonitor: Failed to connect to client '26627': Connection refused: connect

12:13:17 E/EventLog: Connection refused: connect

java.net.ConnectException: Connection refused: connect

at sun.nio.ch.Net.connect(Native Method)

at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)

at java.nio.channels.SocketChannel.open(Unknown Source)

at com.android.ddmlib.AdbHelper.runLogService(AdbHelper.java:464)

at com.android.ddmlib.AdbHelper.runEventLogService(AdbHelper.java:445)

at com.android.ddmlib.Device.runEventLogService(Device.java:290)

at com.android.ddmuilib.log.event.EventLogPanel$8.run(EventLogPanel.java

:454)

I've reinstalled Java, restarted my computer, restarted my phone, etc. Please help.