← Back to team overview

sikuli-driver team mailing list archive

[Bug 1386862] [NEW] After Yosemite update on Mac appears error] Location: outside any screen

 

Public bug reported:

Sikulix API  Version: 1.1.0
Yosemite 64 bits


I'm developing a solution on Java with Sikuli, with two monitors, on Mac OS after I updated to Yosemite I began to get the next errors message:
error] Location: outside any screen (-2560, 0) - subsequent actions might not work as expected
[error] Location: outside any screen (-2560, 0) - subsequent actions might not work as expected
[error] Location: outside any screen (-1484, 153) - subsequent actions might not work as expected

I've make changes to Display settings and update to Java 1.8 JDK and JRE
I use this method to get the Screen ID:

public static int getCurrentScreenId(Pattern pattern) throws Exception
	{
		int result = 0;

		for (int i = 0; i <= 1; i++)
		{
			System.out.println("Try number " + i);
			if (new Screen(i).exists(pattern) != null)
			{
				System.out.println("Searching on Screen: " + i);
				result = i;
				System.out.println("Screen founded =" + result);

			}
			else
			{
				continue;
			}

		}
		return result;
	}
NOTE: on Yosemite the screen 0 (default) is the monitor connected to the machine, if you unplugged the monitor then the screen(0) is the screen machine.

** Affects: sikuli
     Importance: Undecided
         Status: New


** Tags: yosemite

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

Title:
  After Yosemite update on Mac appears  error] Location: outside any
  screen

Status in Sikuli:
  New

Bug description:
  Sikulix API  Version: 1.1.0
  Yosemite 64 bits


  I'm developing a solution on Java with Sikuli, with two monitors, on Mac OS after I updated to Yosemite I began to get the next errors message:
  error] Location: outside any screen (-2560, 0) - subsequent actions might not work as expected
  [error] Location: outside any screen (-2560, 0) - subsequent actions might not work as expected
  [error] Location: outside any screen (-1484, 153) - subsequent actions might not work as expected

  I've make changes to Display settings and update to Java 1.8 JDK and JRE
  I use this method to get the Screen ID:

  public static int getCurrentScreenId(Pattern pattern) throws Exception
  	{
  		int result = 0;

  		for (int i = 0; i <= 1; i++)
  		{
  			System.out.println("Try number " + i);
  			if (new Screen(i).exists(pattern) != null)
  			{
  				System.out.println("Searching on Screen: " + i);
  				result = i;
  				System.out.println("Screen founded =" + result);

  			}
  			else
  			{
  				continue;
  			}

  		}
  		return result;
  	}
  NOTE: on Yosemite the screen 0 (default) is the monitor connected to the machine, if you unplugged the monitor then the screen(0) is the screen machine.

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


Follow ups

References