[check] Linux: App.close() crashes: java.lang.ArrayIndexOutofBound

Bug #1220540 reported by shi.zhao
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

 Test try to open a app window by App.open(), it works. but i can't close it with App.close();

    m_RDPHandle = App.open("rdesktop xxxx.cn.oracle.com -f");
    m_RDPHandle.close();

The m_RDPHandle.close() will throw a java exception from console:

  [log] openApp: rdesktop bej301448.cn.oracle.com -f
  [log] App.open rdesktop bej301448.cn.oracle.com -f(10417)
  [log] App.close rdesktop bej301448.cn.oracle.com -f(10417)
  [debug] close: 10417
  [error] script [ sanity ] stopped with error in line 93
  [error] java.lang.ArrayIndexOutOfBoundsException ( java.lang.ArrayIndexOutOfBoundsException: 0 )
  [error] --- Traceback --- error source first
  line: module ( function ) statement
  78: main ( LaunchRDP ) m_RDPHandle.close();
  [error] --- Traceback --- end --------------

Revision history for this message
shi.zhao (shi-zhao) wrote :

This is happened on Linux platform, while windows platform is OK.

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.0.1] Linux: App.close() crashes: java.lang.ArrayIndexOutofBound

Did that work with RC3 before?

summary: - App.close() does not work on Linux ; java.lang.ArrayIndexOutofBound
+ [1.0.1] Linux: App.close() crashes: java.lang.ArrayIndexOutofBound
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
Revision history for this message
shi.zhao (shi-zhao) wrote :

I don't know.

I don't have RC3 installed on this machine and i don't know where can download RC3 now.

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

ok, no problem - only wanted to know.

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

pls. check, wether

App.close("rdesktop")

works

Revision history for this message
shi.zhao (shi-zhao) wrote :

App.close("rdesktop") works fine.

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

ok thanks, that makes it clearer.

Changed in sikuli:
status: In Progress → Fix Committed
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → In Progress
milestone: 1.1.0 → 1.2.0
Revision history for this message
Ben Stanley (ben-stanley) wrote :

I see a very similar or the same problem in sikuli 1.1.0-beta4 with

a = App.open('gedit')
a.focus() # ArrayIndexOutOfBoundsException
a.close() # ArrayIndexOutOfBoundsException

Running on Ubuntu 14.04 amd64.

RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 2.0.0 → 2.0.1
RaiMan (raimund-hocke)
summary: - [1.0.1] Linux: App.close() crashes: java.lang.ArrayIndexOutofBound
+ [check] Linux: App.close() crashes: java.lang.ArrayIndexOutofBound
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.