sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36970
[Bug 1549870] [NEW] Mouse.click() hangs and freezes
Public bug reported:
Environment:
Windows 7
Java 1.7.0_51 64-bit
SikuliX 1.1.0 released on 2015-10-06
Installed with all options (1.1 2 3)
While running a Sikuli script that involves a mouse click() or
doubleClick(), occasionally, the script will freeze and not make any
further progress. Performing a thread dump using Jstack, the thread
stack points to a Mouse.click() method that it is Blocked on. Opening
up a command prompt and running the script with Administrative
privileges does not help either. Out of the many Sikuli scripts that we
use that have mouse clicks, only some experience this issue. Our
current strategy has been to rewrite those to only use the keyboard. It
seems like some scripts might become keyboard only if we cannot contain
this issue. Attached is the thread dump file.
Sample script:
import sys
from sikuli import *
import org.sikuli.script.TextRecognizer as TR
Settings.OcrTextRead = True
Settings.OcrTextSearch = True
iconName = box
if (gui_tree.exists("..\\imgs\\icon.png")):
for y in tree.findAll("..\\imgs\\icon.png"):
a = y.right(200).text()
if a == iconName:
doubleClick(y)
break
** Affects: sikuli
Importance: Undecided
Status: New
** Attachment added: "thread dump"
https://bugs.launchpad.net/bugs/1549870/+attachment/4580932/+files/sikuli_mouse_click_stuck.txt
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1549870
Title:
Mouse.click() hangs and freezes
Status in Sikuli:
New
Bug description:
Environment:
Windows 7
Java 1.7.0_51 64-bit
SikuliX 1.1.0 released on 2015-10-06
Installed with all options (1.1 2 3)
While running a Sikuli script that involves a mouse click() or
doubleClick(), occasionally, the script will freeze and not make any
further progress. Performing a thread dump using Jstack, the thread
stack points to a Mouse.click() method that it is Blocked on. Opening
up a command prompt and running the script with Administrative
privileges does not help either. Out of the many Sikuli scripts that
we use that have mouse clicks, only some experience this issue. Our
current strategy has been to rewrite those to only use the keyboard.
It seems like some scripts might become keyboard only if we cannot
contain this issue. Attached is the thread dump file.
Sample script:
import sys
from sikuli import *
import org.sikuli.script.TextRecognizer as TR
Settings.OcrTextRead = True
Settings.OcrTextSearch = True
iconName = box
if (gui_tree.exists("..\\imgs\\icon.png")):
for y in tree.findAll("..\\imgs\\icon.png"):
a = y.right(200).text()
if a == iconName:
doubleClick(y)
break
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1549870/+subscriptions
Follow ups