← Back to team overview

sikuli-driver team mailing list archive

[Bug 1311031] [NEW] [1.0.1] crash "cannot open system clipboard" using getClipboard()

 

Public bug reported:

Hi,
I am using the following code extensively to copy the contents of clipboard into a variable:

uid = Env.getClipboard().strip()
and
row = int (Env.getClipboard())

In the earlier version of Sikuli, the following error used to
occasionally occur:

[error] java.lang.IllegalStateException ( java.lang.IllegalStateException: cannot open system clipboard )
[error] --- Traceback --- error source first line: module ( function ) statement 176: main ( open_Excel ) uid = Env.getClipboard().strip()
[error] --- Traceback --- end --------------

When this error occurs, I used to just re-run the script and the script
would run fine.

But now, after upgrading to Sikuli 1.0.1, the frequency of this error
has increased and re-running the script is not helping. Could you please
let me me know if there is any other efficient way to get this done.

This is my operating environment:
IDE: Sikli 1.0.1
OS: Windows 7 (64-bit)
Java 7 (Earlier I was using Java 6. This error was not frequent then.)

Thanks,
Rafiq

** Affects: sikuli
     Importance: High
     Assignee: RaiMan (raimund-hocke)
         Status: In Progress

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

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

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

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1311031

Title:
  [1.0.1] crash "cannot open system clipboard" using getClipboard()

Status in Sikuli:
  In Progress

Bug description:
  Hi,
  I am using the following code extensively to copy the contents of clipboard into a variable:

  uid = Env.getClipboard().strip()
  and
  row = int (Env.getClipboard())

  In the earlier version of Sikuli, the following error used to
  occasionally occur:

  [error] java.lang.IllegalStateException ( java.lang.IllegalStateException: cannot open system clipboard )
  [error] --- Traceback --- error source first line: module ( function ) statement 176: main ( open_Excel ) uid = Env.getClipboard().strip()
  [error] --- Traceback --- end --------------

  When this error occurs, I used to just re-run the script and the
  script would run fine.

  But now, after upgrading to Sikuli 1.0.1, the frequency of this error
  has increased and re-running the script is not helping. Could you
  please let me me know if there is any other efficient way to get this
  done.

  This is my operating environment:
  IDE: Sikli 1.0.1
  OS: Windows 7 (64-bit)
  Java 7 (Earlier I was using Java 6. This error was not frequent then.)

  Thanks,
  Rafiq

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1311031/+subscriptions


Follow ups

References