[2.0.4] Mouse.click() hangs and freezes --- to be checked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Medium
|
RaiMan |
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.
Settings.
Settings.
iconName = box
if (gui_tree.
for y in tree.findAll(
a = y.right(200).text()
if a == iconName:
doubleClick(y)
break
Changed in sikuli: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → 2.0.5 |
summary: |
- Mouse.click() hangs and freezes + [2.0.4] Mouse.click() hangs and freezes --- to be checked |
Did some research regarding the "r.waitForIdle();" use within the Mouse.java class and found this link, http:// stackoverflow. com/questions/ 10766863/ mouse-event- wait-freezes- when-called- from-button . Both move() and click() use it in the Mouse.java class.