← Back to team overview

sikuli-driver team mailing list archive

[Bug 1816765] Re: I am getting this error code using ovserver

 

** Description changed:

+ 1.1.4-SNAPSHOT-2019-01-16_07:30/Windows10.0/Java8(64)1.8.0_201-b09
  
  I have some observe operation like following:
  
  rp = SOME REGION
  
  r1 = some region
  def pcheck(event):
-     global rp
-     print "in pcheck"
-     r = Some region
-     ppp = some pattern (png file)
-     r.wait(ppp,60)
-     rp.stopObserver()
+     global rp
+     print "in pcheck"
+     r = Some region
+     ppp = some pattern (png file)
+     r.wait(ppp,60)
+     rp.stopObserver()
  
  def something_changed():
-     try:
-         r1.wait(some picture, 60)
-         rp.onChange(50,pcheck)
-         rp.observeInBackground()
-     except:
-         pass
- 
+     try:
+         r1.wait(some picture, 60)
+         rp.onChange(50,pcheck)
+         rp.observeInBackground()
+     except:
+         pass
  
  def main():
  
-      ......
-      something_changed()
-      #some where in the main code I call this function (something_changed) to start monitoring for the change and I hope it gets triggered once certain conditions are met:
+      ......
+      something_changed()
+      #some where in the main code I call this function (something_changed) to start monitoring for the change and I hope it gets triggered once certain conditions are met:
  
  main()
  
  and I get this in the log:
  
  LOG:
  [error] Region(108295,173451,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck
  
  [error] Region(108900,174420,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck
  
  [error] Region(109505,175389,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck
  
  [error] Region(110110,176358,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck
  
  [error] Region(110715,177327,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck
  
  [error] Region(111320,178296,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck
  
  [error] Region(111925,179265,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck
  
- 
- I dont know what is this Region which is moving out of the screen and I do not understand why the observer is not getting stopped when pcheck function is triggered for the first time ?!
+ I dont know what is this Region which is moving out of the screen and I
+ do not understand why the observer is not getting stopped when pcheck
+ function is triggered for the first time ?!

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

Title:
  I am getting this error code using ovserver

Status in Sikuli:
  New

Bug description:
  1.1.4-SNAPSHOT-2019-01-16_07:30/Windows10.0/Java8(64)1.8.0_201-b09

  I have some observe operation like following:

  rp = SOME REGION

  r1 = some region
  def pcheck(event):
      global rp
      print "in pcheck"
      r = Some region
      ppp = some pattern (png file)
      r.wait(ppp,60)
      rp.stopObserver()

  def something_changed():
      try:
          r1.wait(some picture, 60)
          rp.onChange(50,pcheck)
          rp.observeInBackground()
      except:
          pass

  def main():

       ......
       something_changed()
       #some where in the main code I call this function (something_changed) to start monitoring for the change and I hope it gets triggered once certain conditions are met:

  main()

  and I get this in the log:

  LOG:
  [error] Region(108295,173451,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck

  [error] Region(108900,174420,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck

  [error] Region(109505,175389,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck

  [error] Region(110110,176358,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck

  [error] Region(110715,177327,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck

  [error] Region(111320,178296,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck

  [error] Region(111925,179265,12,12) outside any screen - subsequent actions might not work as expected
  in pcheck

  I dont know what is this Region which is moving out of the screen and
  I do not understand why the observer is not getting stopped when
  pcheck function is triggered for the first time ?!

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


References