Comments (6)
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.
@aaronmagi
Are you sure you not executing multiple commands on device concurrently?
from jadb.
@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.
Can you post a minimal example that exhibit this behaviour? I tried to download a 15mb file, but it worked fine.
from jadb.
@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.
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)
- Is "adb forward tcp:80 tcp:80" supported? HOT 1
- Android 10, exception in PackageManager.forceInstall(...)
- Quoting is insufficient HOT 1
- executeShell only executes command when input i HOT 2
- .executeShell doesn't work with large commands and multiple arguments HOT 2
- Could you make a new release, please? HOT 3
- Last modified time isn't propagated to the device properly when pushing HOT 1
- SELinux is blocking apk install from /sdcard/* HOT 1
- Trying to connect android with android HOT 3
- execute command not working with mutated vowels (german umlaute) HOT 6
- Provide deterministic module name for Java 9 module support HOT 4
- iOS version for this library or similar HOT 4
- RemoteFile.getPath() doesn't work as intended? HOT 1
- Do I need to manually close any connections or devices? HOT 2
- How does the server module work? HOT 1
- screencap not pulling and working HOT 1
- Is it possible to support exec-out ? HOT 1
- Dependency 'com.github.vidstige:jadb:v1.2.1' not found HOT 4
- device state change offline HOT 1
- java.io.EOFException HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jadb.