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

Bug #1804927 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

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:
App.open("D:\builds\vray_adv_40205_max2019_x64.exe")

(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)
Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.4
Revision history for this message
RaiMan (raimund-hocke) wrote :

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

So could you try with build #132:
Debug.on(3)
App.open("D:\builds\vray_adv_40205_max2019_x64.exe")

Revision history for this message
sdraganov (sdraganov) wrote :

Works like a champ!
Thank you very much!

Revision history for this message
RaiMan (raimund-hocke) wrote :

Thanks for confirmation

RaiMan (raimund-hocke)
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
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
milestone: 1.1.4 → 2.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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