[2.0.4] Mouse.click() hangs and freezes --- to be checked

Bug #1549870 reported by cafeman1
6
This bug affects 1 person
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.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

Revision history for this message
cafeman1 (soto1231) wrote :
Revision history for this message
cafeman1 (soto1231) wrote :

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.

RaiMan (raimund-hocke)
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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.