Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using SikuliX1 from a SWT thread #618

Open
adriancostin6 opened this issue Mar 29, 2024 · 0 comments
Open

Using SikuliX1 from a SWT thread #618

adriancostin6 opened this issue Mar 29, 2024 · 0 comments

Comments

@adriancostin6
Copy link

adriancostin6 commented Mar 29, 2024

TL;DR: Deadlock on Linux GTK when calling SikuliX1 API functions from SWT application context: either main or separate thread. Screen and SWT Display seem to hate each other. 馃榾

Long story short, I am trying to use SikuliX1 from a SWT GUI thread, either directly, or via syncExec (starting a different thread), and I am running into a deadlock between the SWT event loop, and SikuliX1 features (mostly screen.selectRegion for now, but expecting more problems). It seems to get stuck somewhere in the OverlayCapture, or in the AWT getRGBPixelsImpl native method.

Question is, can I make SikuliX1 and the SWT event loop play nice with each other?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant