[Sikuli-driver] [Bug 1807108] Re: [1.1.4] Android: Screenshot problem - ADBDevice: captureDeviceScreenMat: image type not RGBA

2018-12-06 Thread RaiMan
Ok, a step further ;-)

I have the emulator working.

At least I have found a problem and fixed it, so the capture()
principally works now.

But it does not give access to the whole screen content with varying
amount of black pixels towards the bottom.

The test now in the IDE works, if you capture something from the "filled
area" towards the top.

I currently do not have any idea and have to test further.

The new build will be available later today.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1807108

Title:
  [1.1.4] Android: Screenshot problem - ADBDevice:
  captureDeviceScreenMat: image type not RGBA

Status in Sikuli:
  In Progress

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/main/java/org/sikuli/android/ADBScreen.java line
  106,method

    public List getDevices() {
  List 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(path_to_save)

  it returns ADBDevice: captureDeviceScreenMat: image type not RGBA

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1807108/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1807108] Re: [1.1.4] Android: Screenshot problem - ADBDevice: captureDeviceScreenMat: image type not RGBA

2018-12-06 Thread RaiMan
BTW: might be a problem with Android 5.x --- but as mentioned: Android
experience very, very bad ;-)

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1807108

Title:
  [1.1.4] Android: Screenshot problem - ADBDevice:
  captureDeviceScreenMat: image type not RGBA

Status in Sikuli:
  In Progress

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/main/java/org/sikuli/android/ADBScreen.java line
  106,method

    public List getDevices() {
  List 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(path_to_save)

  it returns ADBDevice: captureDeviceScreenMat: image type not RGBA

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1807108/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1807108] Re: [1.1.4] Android: Screenshot problem - ADBDevice: captureDeviceScreenMat: image type not RGBA

2018-12-06 Thread RaiMan
ok, thanks for feedback and tests.

I have my stuff with my Nexus 7 running on my Windows 10 ...
... and everything works as expected.

My next step: get the emulator working.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1807108

Title:
  [1.1.4] Android: Screenshot problem - ADBDevice:
  captureDeviceScreenMat: image type not RGBA

Status in Sikuli:
  In Progress

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/main/java/org/sikuli/android/ADBScreen.java line
  106,method

    public List getDevices() {
  List 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(path_to_save)

  it returns ADBDevice: captureDeviceScreenMat: image type not RGBA

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1807108/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1807108] Re: [1.1.4] Android: Screenshot problem - ADBDevice: captureDeviceScreenMat: image type not RGBA

2018-12-06 Thread Lin U Min
I also try the screencap command without -p

It's still return a 32bits-depth image.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1807108

Title:
  [1.1.4] Android: Screenshot problem - ADBDevice:
  captureDeviceScreenMat: image type not RGBA

Status in Sikuli:
  In Progress

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/main/java/org/sikuli/android/ADBScreen.java line
  106,method

    public List getDevices() {
  List 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(path_to_save)

  it returns ADBDevice: captureDeviceScreenMat: image type not RGBA

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1807108/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1807108] Re: [1.1.4] Android: Screenshot problem - ADBDevice: captureDeviceScreenMat: image type not RGBA

2018-12-06 Thread Lin U Min
--- IDE:what is that?

Sorry for my description It's just the SikulixIDE with Jython language.
:)

--- emulator:what exactly is that? possible for me to get it on my
Windows 10?

It's an emulator called "ldplayer".(http://www.ldplayer.net/) (Android 5.1)
It works success on Windows 10.

--- it returns ADBDevice: captureDeviceScreenMat: image type not RGBA
adbscr.newRegion(0, 0, 1600, 900)
does it mean the whole screen?
if yes try:
adbscr = adbStart()
img = adbscr.capture()

=> still error


if still error:
adb::executeShell("screencap")
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

=> Not really sure what to do.But I tried these adb command in my
command line:

adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png

And I checked the screen.png.It's a 32bits-depth image.I think it's RGBA
format.

Maybe the "-p" arg is needed.

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1807108

Title:
  [1.1.4] Android: Screenshot problem - ADBDevice:
  captureDeviceScreenMat: image type not RGBA

Status in Sikuli:
  In Progress

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/main/java/org/sikuli/android/ADBScreen.java line
  106,method

    public List getDevices() {
  List 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(path_to_save)

  it returns ADBDevice: captureDeviceScreenMat: image type not RGBA

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1807108/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1807108] Re: [1.1.4] Android: Screenshot problem - ADBDevice: captureDeviceScreenMat: image type not RGBA

2018-12-06 Thread RaiMan
BTW: I guess the IDE hangs caused by this non-RGBA problem

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1807108

Title:
  [1.1.4] Android: Screenshot problem - ADBDevice:
  captureDeviceScreenMat: image type not RGBA

Status in Sikuli:
  In Progress

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/main/java/org/sikuli/android/ADBScreen.java line
  106,method

    public List getDevices() {
  List 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(path_to_save)

  it returns ADBDevice: captureDeviceScreenMat: image type not RGBA

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1807108/+subscriptions

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp