mobile-dev-inc / mobile-dev-inc/dadb

SocketException: Broken pipe

Open
#56 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
1.2k
Forks
102
PR merge metrics
No merged PRs in 30d

Description

On the latest version I get this exception on push and install:

Caused by: java.net.SocketException: Broken pipe
at okio.OutputStreamSink.write(JvmOkio.kt:56)
at okio.AsyncTimeout$sink$1.write(AsyncTimeout.kt:99)
at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.kt:255)
at okio.RealBufferedSink.writeIntLe(RealBufferedSink.kt:230)
at dadb.AdbWriter.write(AdbWriter.kt:78)
at dadb.AdbWriter.writeOpen(AdbWriter.kt:52)
at dadb.AdbConnection.open(AdbConnection.kt:47)
at dadb.DadbImpl.open(DadbImpl.kt:31)
at dadb.Dadb$DefaultImpls.openShell(Dadb.kt:43)
at dadb.DadbImpl.openShell(DadbImpl.kt:23)
at dadb.Dadb$DefaultImpls.shell(Dadb.kt:36)
at dadb.DadbImpl.shell(DadbImpl.kt:23)

On 1.2.3 file upload is working, but the installation is hanging endlessly. It seems like #41 solved the broken pipe issue, but a later commit reverted it.

I would really appreciate some help!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with dadb/AdbWriter.kt:78 and dadb/AdbConnection.kt:47, then compare the latest code with version 1.2.3 and the change referenced in #41. Reproduce both push and install, and verify that file upload completes without SocketException while installation no longer hangs.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.