← Back to team overview

sikuli-driver team mailing list archive

[Bug 1741764] Re: [1.1.1] ADBScreen - crashes if waitAfterAction set to 0

 

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.4

** Summary changed:

- [1.1.1] ADBScreen - crashes if waitAfterAction set to 0
+ [1.1.4] ADBScreen - crashes if waitAfterAction set to 0

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

Title:
  [1.1.4] ADBScreen - crashes if waitAfterAction set to 0

Status in Sikuli:
  In Progress

Bug description:
  If waitAfterAction set to 0 on ADBScreen object, after some time
  application always crashes.

  The reason for that is a bug in method ADBDevice.captureDeviceScreenMat() - InputStream stdout is left unclosed.
  Calling stdout.close() in finally{} or using Try-with-resources Statement for: 
  InputStream stdout = device.executeShell("screencap") fixes that issue.

  There are more not closed InputStreams in ADBDevice that may cause
  issues.

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


References