[1.1.4] Linux: PID is -1 after app.open() --- fixed 2.0.5

Bug #1813491 reported by spikedboy
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

see: https://github.com/RaiMan/SikuliX1/issues/144
--------------------------------------------------

When building an App object with the path to the executable, after calling app.open(), the PID is always -1. This causes app.isRunning() to run a ps shell comand with parameter "-1" which will not find the process, even if it ran.

spikedboy (spikedboy)
summary: - PID is -1 after app.open() in linux based systems
+ [1.1.4] Linux: PID is -1 after app.open()
Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.1.4] Linux: PID is -1 after app.open()

Thanks for finding and documenting.

Since I am only available at about 20% the next 3 weeks, the fix may take a while.

Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.4
Revision history for this message
rad164 (rad164) wrote :

Same issue with snapshot build #249.
On Linux, what kind of argument for App class is expected?

LinuxUtil.findWindow (https://github.com/RaiMan/SikuliX1/blob/master/API/src/main/java/org/sikuli/natives/LinuxUtil.java) tries to find the app with 6th field, but it is not a path to the application.

    $ wmctrl -lpGx | grep Chromium
    0x04e00001 0 584 80 32 1280 691 chromium-browser.Chromium-browser my-hostname Bug #1813491 “[1.1.4] Linux: PID is -1 after app.open()” : Bugs : Sikuli - Chromium

So it seems to need to pass "chromium-browser.Chromium-browser" instead of "/usr/bin/chromium-browser". (But it still won't work)

RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → In Progress
importance: High → Medium
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Medium → High
RaiMan (raimund-hocke)
description: updated
Changed in sikuli:
milestone: 1.1.4 → none
status: In Progress → Confirmed
RaiMan (raimund-hocke)
Changed in sikuli:
status: Confirmed → Fix Released
status: Fix Released → Fix Committed
importance: High → Critical
summary: - [1.1.4] Linux: PID is -1 after app.open()
+ [1.1.4] Linux: PID is -1 after app.open() --- fixed 2.0.5
Changed in sikuli:
milestone: none → 2.0.5
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

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