Giter Club home page Giter Club logo

Comments (6)

vidstige avatar vidstige commented on August 16, 2024

Thanks for reporting this issue

  • Can you reproduce this? E.g. does it happen every time you try?
  • Does it happen with all files? Can you try e.g. with a very small file.
  • If it only happens with this file, can you share it somehow then I can look into this.

from jadb.

SKART1 avatar SKART1 commented on August 16, 2024

@aaronmagi
Are you sure you not executing multiple commands on device concurrently?

from jadb.

aaronmagi avatar aaronmagi commented on August 16, 2024

@SKART1 yes we are.

Does JADB not support multi-threaded reading? (or adb for that matter)

I just noticed again today some very interesting behaviour where it looks like the device can not be found when another thread is reading a part of a file and a new thread tries to read from the device as well.

Aaron

from jadb.

vidstige avatar vidstige commented on August 16, 2024

Can you post a minimal example that exhibit this behaviour? I tried to download a 15mb file, but it worked fine.

from jadb.

SKART1 avatar SKART1 commented on August 16, 2024

@aaronmagi looks like adb have problems with it (I think adb daemon which is on device, but it may be an adb server issue)

Firstly device should be always connected to only one adb server (not your case - just remind)
Secondly - we have faced problem with simultaneously executing test with (from shell, not jadb):

ADB_SHELL_INSTRUMENT =
            "adb shell am instrument -w \\\n" +
            "-r \\\n" +
            " %s" + " \\\n" +  // arguments
            " %s " + " \\\n"+  //class
            " %s/%s\n";

and reading logcat from device with:

adb logcat > 1.txt

When starting next test - adb client showed that device is offline

Finally - I think that it may be caused by not correctly closed connection, but need more debugging

P.S. As a workaround - not to use adb server simultaneously

from jadb.

vidstige avatar vidstige commented on August 16, 2024

Thanks for this @SKART1 . I'll close this issue for now, @aaronmagi if you would like to reopen this issue, could you please first try to reproduce without jadb as described above. If it is indeed a jadb issue, please add some steps to reproduce it.

from jadb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.