← Back to team overview

sikuli-driver team mailing list archive

[Bug 1549870] Re: Mouse.click() hangs and freezes

 

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 2.0.5

** Summary changed:

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

-- 
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:
  [2.0.4] Mouse.click() hangs and freezes --- to be checked

Status in Sikuli:
  In Progress

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


References