[1.1.4] App.open() leads to App.focus failed error --- fixed with build #132

Bug #1804927 reported by RaiMan on 2018-11-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Microsoft Windows [Version 10.0.17134.407]
Sikuli 1.1.4 (201810311629)
java version "1.8.0_171"

I'm trying to run an installer on windows but I got an error - App.focus failed: no window error when using the following command:

(log exerp)----------------------------------------------------------------------------------------------------------------------
[user (11/24/18 10:22:16 AM)] Installing d:\builds\vray_adv_40205_max2019_x64.exe
[debug] App.create: [-1:vray_adv_40205_max2019_x64.exe]
[debug] App.open: [6500:vray_adv_40205_max2019_x64.exe (OleMainThreadWndName)] d:\builds\vray_adv_40205_max2019_x64.exe
[error] App.focus failed: no window for [6500:vray_adv_40205_max2019_x64.exe (OleMainThreadWndName)] d:\builds\vray_adv_40205_max2019_x64.exe

Despite that installer is successfully launched, but script is already terminated.

If I run installer through terminal with following command everything works fine:
#App.open('CMD /C ' + "D:\builds\vray_adv_40205_max2019_x64.exe")

Any idea why this is happening?

RaiMan (raimund-hocke) on 2018-11-24
Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.4
RaiMan (raimund-hocke) wrote :

Just tried to fix it, but not tested on Windows.

So could you try with build #132:

sdraganov (sdraganov) wrote :

Works like a champ!
Thank you very much!

RaiMan (raimund-hocke) wrote :

Thanks for confirmation

RaiMan (raimund-hocke) on 2019-04-12
Changed in sikuli:
status: In Progress → Fix Committed
importance: High → Critical
summary: - [1.1.4] App.open() leads to App.focus failed error
+ [1.1.4] App.open() leads to App.focus failed error --- fixed with build
+ #132
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers