Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

socketexception, trying to play video, embedded in couchapp #91

Open
fscz opened this issue Mar 19, 2013 · 2 comments
Open

socketexception, trying to play video, embedded in couchapp #91

fscz opened this issue Mar 19, 2013 · 2 comments

Comments

@fscz
Copy link

fscz commented Mar 19, 2013

Unfortunately, the app does not crash and there is no stack trace, so I cannot
precisely tell, where it actually happens. Only thing I have are messages in the log.

here is the related log output from eclipse
...................
03-19 17:58:19.862: W/System.err(3446): [Tue Mar 19 17:58:19 CET 2013] TJWS: IO error: java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer) in processing a request from /127.0.0.1:8888 / java.net.Socket
03-19 17:58:19.862: V/TDDatabase(3446): Buffer size is 128
03-19 17:58:19.892: W/System.err(3446): [Tue Mar 19 17:58:19 CET 2013] TJWS: IO error: java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer) in processing a request from /127.0.0.1:8888 / java.net.Socket
03-19 17:58:19.892: E/MediaPlayer(3446): error (1, -2147483648)
03-19 17:58:19.892: E/MediaPlayer(3446): Error (1,-2147483648)
...................

adb logcat show this
...................
D/dalvikvm( 3446): GC_FOR_ALLOC freed 263K, 9% free 7989K/8716K, paused 15ms, total 15ms
I/ChromiumHTTPDataSourceSupport( 128): We requested a content range, but server didn't support that. (responded with 200)
E/NuCachedSource2( 128): source returned error -32, 0 retries left
W/System.err( 3446): [Tue Mar 19 17:58:19 CET 2013] TJWS: IO error: java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer) in processing a request from /127.0.0.1:8888 / java.net.Socket
E/MediaPlayer( 3446): error (1, -2147483648)
...................

The page I try to load, obviously has a video and it works fine in a test application with a webview. However the test app does not include it's own webserver, but loads the page through a server on another machine.

I am still unsure, if this is actually a problem with the acme server that touchdb uses, or with some part of the client. The output from adb logcat indicates that there might be something wrong with the acme server.

@fscz
Copy link
Author

fscz commented Mar 19, 2013

I've managed to get a full stacktrace
...............
03-19 20:16:39.372: W/System.err(14506): java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer)
03-19 20:16:39.392: W/System.err(14506): at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:506)
03-19 20:16:39.392: W/System.err(14506): at libcore.io.IoBridge.sendto(IoBridge.java:475)
03-19 20:16:39.392: W/System.err(14506): at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
03-19 20:16:39.392: W/System.err(14506): at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
03-19 20:16:39.392: W/System.err(14506): at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
03-19 20:16:39.392: W/System.err(14506): at java.io.OutputStream.write(OutputStream.java:82)
03-19 20:16:39.392: W/System.err(14506): at Acme.Serve.Serve$ServeOutputStream.write(Serve.java:4538)
03-19 20:16:39.392: W/System.err(14506): at com.couchbase.touchdb.listener.TDHTTPServlet.service(TDHTTPServlet.java:117)
03-19 20:16:39.392: W/System.err(14506): at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
03-19 20:16:39.392: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2244)
03-19 20:16:39.392: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2169)
03-19 20:16:39.392: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.run(Serve.java:1983)
03-19 20:16:39.392: W/System.err(14506): at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
03-19 20:16:39.392: W/System.err(14506): at java.lang.Thread.run(Thread.java:856)
03-19 20:16:39.392: W/System.err(14506): Caused by: libcore.io.ErrnoException: sendto failed: ECONNRESET (Connection reset by peer)
03-19 20:16:39.392: W/System.err(14506): at libcore.io.Posix.sendtoBytes(Native Method)
03-19 20:16:39.392: W/System.err(14506): at libcore.io.Posix.sendto(Posix.java:151)
03-19 20:16:39.392: W/System.err(14506): at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
03-19 20:16:39.392: W/System.err(14506): at libcore.io.IoBridge.sendto(IoBridge.java:473)
03-19 20:16:39.392: W/System.err(14506): ... 12 more
03-19 20:16:39.392: W/System.err(14506): [Tue Mar 19 20:16:39 CET 2013] TJWS: IO error: java.net.SocketException: sendto failed: ECONNRESET (Connection reset by peer) in processing a request from /127.0.0.1:8888 / java.net.Socket
03-19 20:16:39.402: E/MediaPlayer(14506): error (1, -2147483648)
03-19 20:16:39.402: E/MediaPlayer(14506): Error (1,-2147483648)
03-19 20:16:39.402: W/System.err(14506): java.net.SocketException: sendto failed: EPIPE (Broken pipe)
03-19 20:16:39.402: W/System.err(14506): at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:506)
03-19 20:16:39.402: W/System.err(14506): at libcore.io.IoBridge.sendto(IoBridge.java:475)
03-19 20:16:39.402: W/System.err(14506): at java.net.PlainSocketImpl.write(PlainSocketImpl.java:507)
03-19 20:16:39.402: W/System.err(14506): at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:46)
03-19 20:16:39.402: W/System.err(14506): at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:269)
03-19 20:16:39.402: W/System.err(14506): at java.io.OutputStream.write(OutputStream.java:82)
03-19 20:16:39.402: W/System.err(14506): at Acme.Serve.Serve$ServeOutputStream.write(Serve.java:4542)
03-19 20:16:39.402: W/System.err(14506): at com.couchbase.touchdb.listener.TDHTTPServlet.service(TDHTTPServlet.java:117)
03-19 20:16:39.402: W/System.err(14506): at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
03-19 20:16:39.402: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2244)
03-19 20:16:39.402: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2169)
03-19 20:16:39.402: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.run(Serve.java:1983)
03-19 20:16:39.402: W/System.err(14506): at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
03-19 20:16:39.402: W/System.err(14506): at java.lang.Thread.run(Thread.java:856)
03-19 20:16:39.402: W/System.err(14506): Caused by: libcore.io.ErrnoException: sendto failed: EPIPE (Broken pipe)
03-19 20:16:39.412: W/System.err(14506): at libcore.io.Posix.sendtoBytes(Native Method)
03-19 20:16:39.412: W/System.err(14506): at libcore.io.Posix.sendto(Posix.java:151)
03-19 20:16:39.412: W/System.err(14506): at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177)
03-19 20:16:39.412: W/System.err(14506): at libcore.io.IoBridge.sendto(IoBridge.java:473)
03-19 20:16:39.412: W/System.err(14506): ... 12 more
03-19 20:16:39.412: W/System.err(14506): [Tue Mar 19 20:16:39 CET 2013] TJWS: IO error: java.net.SocketException: sendto failed: EPIPE (Broken pipe) in processing a request from /127.0.0.1:8888 / java.net.Socket
03-19 20:17:03.792: W/System.err(14506): java.net.SocketTimeoutException
03-19 20:17:03.792: W/System.err(14506): at java.net.PlainSocketImpl.read(PlainSocketImpl.java:491)
03-19 20:17:03.792: W/System.err(14506): at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
03-19 20:17:03.802: W/System.err(14506): at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
03-19 20:17:03.802: W/System.err(14506): at java.io.InputStream.read(InputStream.java:163)
03-19 20:17:03.802: W/System.err(14506): at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
03-19 20:17:03.802: W/System.err(14506): at java.io.BufferedInputStream.read(BufferedInputStream.java:309)
03-19 20:17:03.802: W/System.err(14506): at Acme.Serve.Serve$ServeInputStream.read(Serve.java:4269)
03-19 20:17:03.802: W/System.err(14506): at Acme.Serve.Serve$ServeInputStream.read(Serve.java:4232)
03-19 20:17:03.802: W/System.err(14506): at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:104)
03-19 20:17:03.802: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2036)
03-19 20:17:03.802: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.run(Serve.java:1983)
03-19 20:17:03.802: W/System.err(14506): at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
03-19 20:17:03.802: W/System.err(14506): at java.lang.Thread.run(Thread.java:856)
03-19 20:17:03.832: W/System.err(14506): java.net.SocketTimeoutException
03-19 20:17:03.832: W/System.err(14506): at java.net.PlainSocketImpl.read(PlainSocketImpl.java:491)
03-19 20:17:03.832: W/System.err(14506): at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
03-19 20:17:03.832: W/System.err(14506): at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
03-19 20:17:03.832: W/System.err(14506): at java.io.InputStream.read(InputStream.java:163)
03-19 20:17:03.832: W/System.err(14506): at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
03-19 20:17:03.832: W/System.err(14506): at java.io.BufferedInputStream.read(BufferedInputStream.java:309)
03-19 20:17:03.832: W/System.err(14506): at Acme.Serve.Serve$ServeInputStream.read(Serve.java:4269)
03-19 20:17:03.832: W/System.err(14506): at Acme.Serve.Serve$ServeInputStream.read(Serve.java:4232)
03-19 20:17:03.832: W/System.err(14506): at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:104)
03-19 20:17:03.832: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2036)
03-19 20:17:03.832: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.run(Serve.java:1983)
03-19 20:17:03.832: W/System.err(14506): at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
03-19 20:17:03.842: W/System.err(14506): at java.lang.Thread.run(Thread.java:856)
03-19 20:17:03.852: W/System.err(14506): java.net.SocketTimeoutException
03-19 20:17:03.852: W/System.err(14506): at java.net.PlainSocketImpl.read(PlainSocketImpl.java:491)
03-19 20:17:03.852: W/System.err(14506): at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
03-19 20:17:03.852: W/System.err(14506): at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
03-19 20:17:03.852: W/System.err(14506): at java.io.InputStream.read(InputStream.java:163)
03-19 20:17:03.852: W/System.err(14506): at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
03-19 20:17:03.852: W/System.err(14506): at java.io.BufferedInputStream.read(BufferedInputStream.java:309)
03-19 20:17:03.852: W/System.err(14506): at Acme.Serve.Serve$ServeInputStream.read(Serve.java:4269)
03-19 20:17:03.852: W/System.err(14506): at Acme.Serve.Serve$ServeInputStream.read(Serve.java:4232)
03-19 20:17:03.852: W/System.err(14506): at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:104)
03-19 20:17:03.852: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2036)
03-19 20:17:03.852: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.run(Serve.java:1983)
03-19 20:17:03.852: W/System.err(14506): at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
03-19 20:17:03.852: W/System.err(14506): at java.lang.Thread.run(Thread.java:856)
03-19 20:17:03.872: W/System.err(14506): java.net.SocketTimeoutException
03-19 20:17:03.872: W/System.err(14506): at java.net.PlainSocketImpl.read(PlainSocketImpl.java:491)
03-19 20:17:03.872: W/System.err(14506): at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
03-19 20:17:03.872: W/System.err(14506): at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
03-19 20:17:03.872: W/System.err(14506): at java.io.InputStream.read(InputStream.java:163)
03-19 20:17:03.872: W/System.err(14506): at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
03-19 20:17:03.872: W/System.err(14506): at java.io.BufferedInputStream.read(BufferedInputStream.java:309)
03-19 20:17:03.872: W/System.err(14506): at Acme.Serve.Serve$ServeInputStream.read(Serve.java:4269)
03-19 20:17:03.872: W/System.err(14506): at Acme.Serve.Serve$ServeInputStream.read(Serve.java:4232)
03-19 20:17:03.872: W/System.err(14506): at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:104)
03-19 20:17:03.882: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2036)
03-19 20:17:03.882: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.run(Serve.java:1983)
03-19 20:17:03.882: W/System.err(14506): at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
03-19 20:17:03.882: W/System.err(14506): at java.lang.Thread.run(Thread.java:856)
03-19 20:17:03.902: W/System.err(14506): java.net.SocketTimeoutException
03-19 20:17:03.902: W/System.err(14506): at java.net.PlainSocketImpl.read(PlainSocketImpl.java:491)
03-19 20:17:03.902: W/System.err(14506): at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
03-19 20:17:03.902: W/System.err(14506): at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
03-19 20:17:03.902: W/System.err(14506): at java.io.InputStream.read(InputStream.java:163)
03-19 20:17:03.902: W/System.err(14506): at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
03-19 20:17:03.902: W/System.err(14506): at java.io.BufferedInputStream.read(BufferedInputStream.java:309)
03-19 20:17:03.902: W/System.err(14506): at Acme.Serve.Serve$ServeInputStream.read(Serve.java:4269)
03-19 20:17:03.902: W/System.err(14506): at Acme.Serve.Serve$ServeInputStream.read(Serve.java:4232)
03-19 20:17:03.902: W/System.err(14506): at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:104)
03-19 20:17:03.902: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2036)
03-19 20:17:03.902: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.run(Serve.java:1983)
03-19 20:17:03.902: W/System.err(14506): at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
03-19 20:17:03.902: W/System.err(14506): at java.lang.Thread.run(Thread.java:856)
03-19 20:17:03.972: W/System.err(14506): java.net.SocketTimeoutException
03-19 20:17:03.972: W/System.err(14506): at java.net.PlainSocketImpl.read(PlainSocketImpl.java:491)
03-19 20:17:03.972: W/System.err(14506): at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
03-19 20:17:03.972: W/System.err(14506): at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
03-19 20:17:03.972: W/System.err(14506): at java.io.InputStream.read(InputStream.java:163)
03-19 20:17:03.972: W/System.err(14506): at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
03-19 20:17:03.972: W/System.err(14506): at java.io.BufferedInputStream.read(BufferedInputStream.java:309)
03-19 20:17:03.972: W/System.err(14506): at Acme.Serve.Serve$ServeInputStream.read(Serve.java:4269)
03-19 20:17:03.972: W/System.err(14506): at Acme.Serve.Serve$ServeInputStream.read(Serve.java:4232)
03-19 20:17:03.972: W/System.err(14506): at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:104)
03-19 20:17:03.972: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2036)
03-19 20:17:03.972: W/System.err(14506): at Acme.Serve.Serve$ServeConnection.run(Serve.java:1983)
03-19 20:17:03.972: W/System.err(14506): at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1223)
03-19 20:17:03.972: W/System.err(14506): at java.lang.Thread.run(Thread.java:856)

@fscz
Copy link
Author

fscz commented Mar 25, 2013

Found the problem: This actually refers to an android bug:
https://code.google.com/p/android/issues/detail?id=41995&thanks=41995&ts=1356643666

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant