Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOException: Broken pipe when running Android application

Tags:

java

android

When trying to run my Android app from Eclipse I get this error in the console:

    [2013-03-04 14:19:05 - ddmlib] Broken pipe
    java.io.IOException: Broken pipe
        at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
        at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
        at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89)
        at sun.nio.ch.IOUtil.write(IOUtil.java:60)
        at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
        at com.android.ddmlib.JdwpPacket.writeAndConsume(JdwpPacket.java:213)
        at com.android.ddmlib.Client.sendAndConsume(Client.java:605)
        at com.android.ddmlib.HandleHeap.sendREAQ(HandleHeap.java:348)
        at com.android.ddmlib.Client.requestAllocationStatus(Client.java:451)
        at com.android.ddmlib.DeviceMonitor.createClient(DeviceMonitor.java:837)
        at com.android.ddmlib.DeviceMonitor.openClient(DeviceMonitor.java:805)
        at com.android.ddmlib.DeviceMonitor.processIncomingJdwpData(DeviceMonitor.java:765)
        at com.android.ddmlib.DeviceMonitor.deviceClientMonitorLoop(DeviceMonitor.java:652)
        at com.android.ddmlib.DeviceMonitor.access$100(DeviceMonitor.java:44)
        at com.android.ddmlib.DeviceMonitor$3.run(DeviceMonitor.java:580)

How do I fix this kind of error?

When I did adb connect <IP_ADDRESS> it showed connected to 192.168.0.109:5555

like image 474
quarks Avatar asked Mar 04 '13 06:03

quarks


People also ask

How do I fix Java IO IOException broken pipe?

IOException: Broken Pipe. Suppress the log from logger itself If you use log4j as log manager, adding following configuration to log4j. properties will help to get rid of exception flooding the logs due to Broken Pipe.

What is IOException broken pipe?

sql. SQLException: Io exception: Broken pipe message is due to an external interruption in the communication between the application server and the service it is communicating with. Availability of the service at the time of the interruption needs to be determined as well as checking for network and/or firewall issues.

What caused Java IOException broken pipe?

io. IOException: Broken pipe changing the value will help until the root cause (60s should be enough) can be fixed. Show activity on this post. Basically, what is happening is that your user is either closing the browser tab, or is navigating away to a different page, before communication was complete.

What is broken pipe error?

A broken Pipe Error is generally an Input/Output Error, which is occurred at the Linux System level. The error has occurred during the reading and writing of the files and it mainly occurs during the operations of the files.


1 Answers

This error is usually caused due to the IO pipe between eclipse and your emulator being broken. You don't usually need to worry about this if it isn't causing any problems in your app. Also see this thread.

like image 102
Anup Cowkur Avatar answered Oct 05 '22 08:10

Anup Cowkur