Sorry, to be more clear, a web search reveals "sad result from adb" seems to be thrown by an IOException in Android Project source according to
this very long web page on android.git.kernel.org
Using java Syntax Highlighting
/**
* Helper class to handle requests and connections to adb.
* <p/>{@link DebugBridgeServer} is the public API to connection to adb, while {@link AdbHelper}
* does the low level stuff.
* <p/>This currently uses spin-wait non-blocking I/O. A Selector would be more efficient,
* but seems like overkill for what we're doing here.
Parsed in 0.011 seconds, using
GeSHi 1.0.8.4
(^lulz)
Using java Syntax Highlighting
*/
final class AdbHelper {
...
/**
* Execute a command on the device and retrieve the output. The output is
* handed to "rcvr" as it arrives.
*/
public static void executeRemoteCommand
...
if (!resp.ioSuccess || !resp.okay) {
Log.e("ddms", "ADB rejected shell command (" + command + "): " + resp.message);
throw new IOException("sad result from adb: " + resp.message);
}
Parsed in 0.011 seconds, using
GeSHi 1.0.8.4
AdbHelper seems to do with ADB &
DDMS, the Dalvik Debug Monitor Server.
Android ships with a debugging tool called the Dalvik Debug Monitor Server (DDMS), which provides port-forwarding services, screen capture on the device, thread and heap information on the device, logcat, process, and radio state information... DDMS acts as a middleman to connect the IDE to the applications running on the device. On Android, every application runs in its own process, each of which hosts its own virtual machine (VM). And each process listens for a debugger on a different port.
Whenever I've seen that error (rarely, in my case) ddms/the emulator does not seem able to recover from it, and it's unclear if it was caused by exceptions in my code, cos when I restart everything the code seems to run fine.
What I was trying to get at in my previous post was, the whole system is wobbly anyway -- Eclipse is not fast in the first place, and over the course of 1-2 hours gradually reduces the UI to a crawl, and then I have to quit it & the emulator. Sometimes on first run it just seems unable to connect to emulator, and I have to restart it. There's loads of little issues.
Like my friends who use Eclipse for non-droid work, on OS X and Windows, I just live with restarting the whole lot every 1-2 hours.
Sorry, I don't have any helpful hints Pranav
