← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #696076]: [2.0.5] IDE: macOS 11: problems with screen capture and mouse actions

 

Question #696076 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/696076

Pedro Pablo posted a new comment:
now

uninstall OK
java -version
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.

Install OK
java -version
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode)

then use the + button to add java again: in the file dialog navigate to
the respective java executable (..../bin/java)

run the Java command to start the SikuliX IDE
java -jar /Users/pedropablo/tagui/src/sikulix/sikulix.jar -v -c -v 3

***** show environment for 2.0.5 IDE
user.home: /Users/pedropablo
work dir: /Users/pedropablo
running on macOS 10.16 from a jar
running Java AdoptOpenJDK 11.0.10+9
java.io.tmpdir: /var/folders/pc/xyqpf_hn7yd2r_z3fbybt1b00000gn/T
app data folder: /Users/pedropablo/Library/Application Support/Sikulix
executing jar: /Users/pedropablo/tagui/src/sikulix/sikulix.jar
*** classpath dump sikulix
  0: /Users/pedropablo/tagui/src/sikulix/sikulix.jar
*** classpath dump end
***** show environment end
[490 debug] IDE: running with Locale: es
[DEBUG]startUp: IDE: --- Sikuli parameters ---
[DEBUG]startUp: IDE: 1: -v
[DEBUG]startUp: IDE: 2: -c
[DEBUG]startUp: IDE: 3: -v
[DEBUG]startUp: IDE: 4: 3

[519 debug] HotkeyManager: add Capture Hotkey: ⌘+⇧ 2 (50, 5)
[676 debug] HotkeyManager: add Abort Hotkey: ⌘+⇧ C (67, 5)
[702 debug] IDE: Init ScriptingSupport
[705 debug] IDESupport: enter
[2878 debug] Runner: added: AppleScript [script] text/applescript
[2879 debug] Runner: added: PackedSikulix [zip] application/zip
[2879 debug] Runner: init: class org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible
[2880 debug] Runner: added: SikulixExecutableJar [executablejar] text/jar
[2887 debug] Runner: added: Jython [py] text/jython
[2888 debug] Runner: added: Sikulix [] directory/sikulix
[2889 debug] Runner: added: SikulixJar [jar] text/jar
[2889 debug] Runner: added: PackedSikulix [skl] text/skl
[2889 debug] Runner: added: NetworkRunner [] NET
[2890 debug] Runner: added: Text [txt] text/text
[2892 debug] IDESupport: added: Jython
[2892 debug] IDESupport: added: Text
[2892 debug] IDESupport: exit: defaultrunner: Jython (py)
[2896 debug] IDE: Reading Preferences
[2896 debug] IDE: Adding components to window
[2926 debug] IDE: [I18N] menuRecent
[2948 debug] IDE: [I18N] menuToolAndroid
[2954 debug] IDE: creating tabbed editor
[3065 debug] IDE: creating message area
[3216 debug] IDE: creating combined work window
[3229 debug] IDE: Putting all together
[3229 debug] IDE: Putting all together - after main pane
[3267 debug] IDE: Putting all together - after toolbar
[3269 debug] IDE: Putting all together - before layout
[3971 debug] IDE: Putting all together - after layout
[3972 debug] IDE: Putting all together - Restore last Session
[3972 debug] IDE: Restore scripts from last session
[3972 debug] IDE: Restore Python script: BBB.py
[3982 debug] EditorPane: created 1615924769689
[3988 debug] EditorPane: loadfile: /Users/pedropablo/tagui/flows/comisaria_virtual/BBB.sikuli/BBB.py
[3988 debug] JythonRunner: starting initialization
[4010 debug] EditorPane: InitTab: (text/jython)
[4011 debug] SikuliEditorKit.read
[4027 debug] ImagePath: new BundlePath: /Users/pedropablo/tagui/flows/comisaria_virtual/BBB.sikuli
[4028 debug] EditorPane: setFiles: for: /Users/pedropablo/tagui/flows/comisaria_virtual/BBB.sikuli/BBB.py
[4031 debug] EditorPane: checkSource: started (/Users/pedropablo/tagui/flows/comisaria_virtual/BBB.sikuli/BBB.py)
[4068 debug] Image: loaded: 1614647849963.png (file:/Users/pedropablo/tagui/flows/comisaria_virtual/BBB.sikuli/1614647849963.png)
[4068 debug] Image: cached: 1614647849963.png (32 KB) (# 1 KB 32 -- 0 % of 64 MB)
[4075 debug] Image: reused: 1614647849963.png (file:/Users/pedropablo/tagui/flows/comisaria_virtual/BBB.sikuli/1614647849963.png)
[4081 debug] Screen: initScreens: starting
[4081 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[4081 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[4082 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[4082 debug] Screen: Monitor 0: (0, 0) 1680 x 1050
[4084 debug] Screen: initScreens: monitor mouse check

This message does not show it in the IDE
[4084 debug] Screen: initScreens: monitor mouse check
[error] Mouse: not useable (blocked).


I take screenshot , but it didn't work, the IDE keeps disappearing after the screenshot.

---- here disappearing ---
debug] ButtonCapture: capture started
[debug] ScreenImage.store: /Users/pedropablo/Library/Application Support/Sikulix/SikulixStore/lastScreenShot.png
[debug] CapturePrompt: started at (1575,916) as L(1575,916) on 0
[debug] CapturePrompt: finished at (1652,1024) as L(1652,1024) on 0
[debug] ButtonCapture: finished
[debug] Image: BufferedImage: (78, 109)

---- here disappearing ---


check permission in terminal, sqlite format, is OK

sqlite3  /Library/Application\ Support/com.apple.TCC/TCC.db 'SELECT * from access' | grep kTCCServiceScreenCapture
   kTCCServiceScreenCapture|com.apple.Terminal|0|2|4|1|||0|UNUSED||0|1615827537
   kTCCServiceScreenCapture|/usr/bin/java|1|2|4|1|||0|UNUSED||0|1615924523

sqlite3  /Library/Application\ Support/com.apple.TCC/TCC.db 'SELECT * from access' | grep kTCCServiceAccessibility
   kTCCServiceAccessibility|com.apple.Terminal|0|2|4|1|||0|UNUSED||0|1615837645
   kTCCServiceAccessibility|/usr/bin/java|1|2|4|1|||0|UNUSED||0|1615924512


I am frustrated, The screenshot was working a while ago. when executing a click on a saved image (when it worked ok) it is able to go, without problems, to the image on the screen and press.


please help!! :)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.