sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33315
[Bug 1469962] Re: [1.1.0] Mac: App.getClipboard(): java.io.IOException: system clipboard data unavailable --- should be handled internally
** Changed in: sikuli
Status: In Progress => Fix Committed
** Changed in: sikuli
Importance: Medium => Critical
** Changed in: sikuli
Milestone: 2.0.0 => 1.1.0
** Summary changed:
- [1.1.0] Mac: App.getClipboard(): java.io.IOException: system clipboard data unavailable --- should be handled internally
+ [1.1.0] Mac: App.getClipboard(): java.io.IOException: system clipboard data unavailable --- should be handled internally --- fixed 1.1.0
** Description changed:
+ **** fixed 1.1.0 2015-07-01+
+ - exceptions handled internally
+ - empty string returned
+ - error messages
+ -------------------------------------------------
+
I am using Sikui 1.1.0 Build:2015-06-24_01:00nightly on a MAC OS X
10.7.5.
My application clicks in a text region, selects it and copies it to the
clipboard before processing this text further. My application can run
and do this hundreds of times successfully and then suddenly I get the
following error:-
[log] CLICK on L(718,1044)@S(0)[0,0 1920x1200]
[log] ( ? ) TYPE "a"
[log] ( ? ) TYPE "c"
java.io.IOException: system clipboard data unavailable
- at apple.awt.CClipboard.getClipboardData(Native Method)
- at sun.awt.datatransfer.ClipboardTransferable.fetchOneFlavor(ClipboardTransferable.java:101)
- at sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:80)
- at sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:130)
- at org.sikuli.script.App.getClipboard(App.java:659)
- at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
- at java.lang.reflect.Method.invoke(Method.java:597)
- at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
- at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
- at org.python.core.PyObject.__call__(PyObject.java:371)
- at org.python.core.PyObject.__call__(PyObject.java:375)
- at readChatWindow$py.read$3(/Volumes/jonathanclark/Software Projects/Sikuli Scripts/Poke2/readChatWindow.sikuli/readChatWindow
+ at apple.awt.CClipboard.getClipboardData(Native Method)
+ at sun.awt.datatransfer.ClipboardTransferable.fetchOneFlavor(ClipboardTransferable.java:101)
+ at sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:80)
+ at sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:130)
+ at org.sikuli.script.App.getClipboard(App.java:659)
+ at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+ at java.lang.reflect.Method.invoke(Method.java:597)
+ at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
+ at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
+ at org.python.core.PyObject.__call__(PyObject.java:371)
+ at org.python.core.PyObject.__call__(PyObject.java:375)
+ at readChatWindow$py.read$3(/Volumes/jonathanclark/Software Projects/Sikuli Scripts/Poke2/readChatWindow.sikuli/readChatWindow
.py:494)
- at readChatWindow$py.call_function(/Volumes/jonathanclark/Software Projects/Sikuli Scripts/Poke2/readChatWindow.sikuli/readChatWindow.py)
- at org.python.core.PyTableCode.call(PyTableCode.java:165)
- at org.python.core.PyBaseCode.call(PyBaseCode.java:149)
- at org.python.core.PyFunction.__call__(PyFunction.java:327)
- at org.python.core.PyMethod.__call__(PyMethod.java:124)
- at org.python.pycode._pyx314.f$0(/Volumes/jonathanclark/Software Projects/Sikuli Scripts/Poke2/main.sikuli/main.py:171)
- at org.python.pycode._pyx314.call_function(/Volumes/jonathanclark/Software Projects/Sikuli Scripts/Poke2/main.sikuli/main.py)
- at org.python.core.PyTableCode.call(PyTableCode.java:165)
- at org.python.core.PyCode.call(PyCode.java:18)
- at org.python.core.Py.runCode(Py.java:1275)
- at org.python.core.__builtin__.execfile_flags(__builtin__.java:522)
- at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225)
- at org.sikuli.scriptrunner.JythonScriptRunner.runPython(JythonScriptRunner.java:208)
- at org.siku
+ at readChatWindow$py.call_function(/Volumes/jonathanclark/Software Projects/Sikuli Scripts/Poke2/readChatWindow.sikuli/readChatWindow.py)
+ at org.python.core.PyTableCode.call(PyTableCode.java:165)
+ at org.python.core.PyBaseCode.call(PyBaseCode.java:149)
+ at org.python.core.PyFunction.__call__(PyFunction.java:327)
+ at org.python.core.PyMethod.__call__(PyMethod.java:124)
+ at org.python.pycode._pyx314.f$0(/Volumes/jonathanclark/Software Projects/Sikuli Scripts/Poke2/main.sikuli/main.py:171)
+ at org.python.pycode._pyx314.call_function(/Volumes/jonathanclark/Software Projects/Sikuli Scripts/Poke2/main.sikuli/main.py)
+ at org.python.core.PyTableCode.call(PyTableCode.java:165)
+ at org.python.core.PyCode.call(PyCode.java:18)
+ at org.python.core.Py.runCode(Py.java:1275)
+ at org.python.core.__builtin__.execfile_flags(__builtin__.java:522)
+ at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225)
+ at org.sikuli.scriptrunner.JythonScriptRunner.runPython(JythonScriptRunner.java:208)
+ at org.siku
li.scriptrunner.JythonScriptRunner.runScript(JythonScriptRunner.java:176)
- at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2369)
-
-
+ at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2369)
Looking through past faults there seems to be some references to this.
Is there still a known fault? Is there a work around? What is
happening? Can some other resource be grabbing the clipboard? Perhaps if
I knew what I could disable it.
All help/suggestions welcome
Jonathan.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1469962
Title:
[1.1.0] Mac: App.getClipboard(): java.io.IOException: system clipboard
data unavailable --- should be handled internally --- fixed 1.1.0
Status in Sikuli:
Fix Committed
Bug description:
**** fixed 1.1.0 2015-07-01+
- exceptions handled internally
- empty string returned
- error messages
-------------------------------------------------
I am using Sikui 1.1.0 Build:2015-06-24_01:00nightly on a MAC OS X
10.7.5.
My application clicks in a text region, selects it and copies it to
the clipboard before processing this text further. My application can
run and do this hundreds of times successfully and then suddenly I get
the following error:-
[log] CLICK on L(718,1044)@S(0)[0,0 1920x1200]
[log] ( ? ) TYPE "a"
[log] ( ? ) TYPE "c"
java.io.IOException: system clipboard data unavailable
at apple.awt.CClipboard.getClipboardData(Native Method)
at sun.awt.datatransfer.ClipboardTransferable.fetchOneFlavor(ClipboardTransferable.java:101)
at sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:80)
at sun.awt.datatransfer.SunClipboard.getContents(SunClipboard.java:130)
at org.sikuli.script.App.getClipboard(App.java:659)
at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:186)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:204)
at org.python.core.PyObject.__call__(PyObject.java:371)
at org.python.core.PyObject.__call__(PyObject.java:375)
at readChatWindow$py.read$3(/Volumes/jonathanclark/Software Projects/Sikuli Scripts/Poke2/readChatWindow.sikuli/readChatWindow
.py:494)
at readChatWindow$py.call_function(/Volumes/jonathanclark/Software Projects/Sikuli Scripts/Poke2/readChatWindow.sikuli/readChatWindow.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:149)
at org.python.core.PyFunction.__call__(PyFunction.java:327)
at org.python.core.PyMethod.__call__(PyMethod.java:124)
at org.python.pycode._pyx314.f$0(/Volumes/jonathanclark/Software Projects/Sikuli Scripts/Poke2/main.sikuli/main.py:171)
at org.python.pycode._pyx314.call_function(/Volumes/jonathanclark/Software Projects/Sikuli Scripts/Poke2/main.sikuli/main.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1275)
at org.python.core.__builtin__.execfile_flags(__builtin__.java:522)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225)
at org.sikuli.scriptrunner.JythonScriptRunner.runPython(JythonScriptRunner.java:208)
at org.siku
li.scriptrunner.JythonScriptRunner.runScript(JythonScriptRunner.java:176)
at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2369)
Looking through past faults there seems to be some references to this.
Is there still a known fault? Is there a work around? What is
happening? Can some other resource be grabbing the clipboard? Perhaps
if I knew what I could disable it.
All help/suggestions welcome
Jonathan.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1469962/+subscriptions
References