[1.1.4] Windows: Android: Screenshot problem - lower part of screen image is black (varying) --- fixed 2018-12-12 build #145
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Released
|
Critical
|
RaiMan |
Bug Description
Sikuli versions: 1.1.4
OS: Windows 10 X64
IDE: Jython IDE
I'm using adb to connect my emulator.
Using menuToolAndroid to test, there're things failed.
1.Clicking "Check" Button:
The first and second check was success.
In the third check:
a.The capture icon feature sometimes didn't pop out and cause the IDE didn't return.
b.Although the capture icon feature pop out, Sikuli didn't click the icon I've captured and the IDE didn't return.
2.clicking "Default" Button:
After clicking default,clicking the "Take a screenshot" Button on IDE doesn't pop out the screenshot feature and the IDE disappeared.Only I can do is to close java with task manager and restart the IDE.
3.In /API/src/
public List<ADBDevice> getDevices() {
List<ADBDevice> devices = new ArrayList<>();
if (device != null) {
//<= no code written
}
return devices;
}
which always return empty list.
Also, my test code is:
adbscr = adbStart()
reg = adbscr.newRegion(0, 0, 1600, 900)
img = adbscr.capture(reg)
img.save(
it returns ADBDevice: captureDeviceSc
description: | updated |
Changed in sikuli: | |
status: | Fix Committed → Fix Released |
milestone: | 1.1.4 → 2.0.0 |
--- IDE: Jython IDE
what is that?
--- emulator
what exactly is that?
possible for me to get it on my Windows 10?
--- it returns ADBDevice: captureDeviceSc reenMat: image type not RGBA
adbscr.newRegion(0, 0, 1600, 900)
does it mean the whole screen?
if yes try:
adbscr = adbStart()
img = adbscr.capture()
if still error: ll("screencap" )
adb::executeShe
returns different image type than the only expected (RGBA)
You have to check, what your emulator should return in response to this request and wether there are any options for screencap to ensure RGBA
--- getDevices() vice(int id), there should be a function like ADBScreen. getScreens( ) that lists the attached devices.
currently only one device is supported anyways (though more than one can be attached)
... but since after having started adb successfully, you can select another device using getScreenWithDe
--- menuToolAndroid
Should also be aware of more than one device attached.
Generally my environment (only a Nexus7) and lack of Android/adb knowledge limits my possibilities to really help with this "experimental" implementation.
If it helps: /github. com/Genymobile/ scrcpy
https:/