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.
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 CClipboard. getClipboardDat a(Native Method) datatransfer. ClipboardTransf erable. fetchOneFlavor( ClipboardTransf erable. java:101) datatransfer. ClipboardTransf erable. <init>( ClipboardTransf erable. java:80) datatransfer. SunClipboard. getContents( SunClipboard. java:130) script. App.getClipboar d(App.java: 659) GeneratedMethod Accessor40. invoke( Unknown Source) DelegatingMetho dAccessorImpl. invoke( DelegatingMetho dAccessorImpl. java:25) reflect. Method. invoke( Method. java:597) core.PyReflecte dFunction. __call_ _(PyReflectedFu nction. java:186) core.PyReflecte dFunction. __call_ _(PyReflectedFu nction. java:204) core.PyObject. __call_ _(PyObject. java:371) core.PyObject. __call_ _(PyObject. java:375) py.read$ 3(/Volumes/ jonathanclark/ Software Projects/Sikuli Scripts/ Poke2/readChatW indow.sikuli/ readChatWindow
at apple.awt.
at sun.awt.
at sun.awt.
at sun.awt.
at org.sikuli.
at sun.reflect.
at sun.reflect.
at java.lang.
at org.python.
at org.python.
at org.python.
at org.python.
at readChatWindow$
.py:494) py.call_ function( /Volumes/ jonathanclark/ Software Projects/Sikuli Scripts/ Poke2/readChatW indow.sikuli/ readChatWindow. py) core.PyTableCod e.call( PyTableCode. java:165) core.PyBaseCode .call(PyBaseCod e.java: 149) core.PyFunction .__call_ _(PyFunction. java:327) core.PyMethod. __call_ _(PyMethod. java:124) pycode. _pyx314. f$0(/Volumes/ jonathanclark/ Software Projects/Sikuli Scripts/ Poke2/main. sikuli/ main.py: 171) pycode. _pyx314. call_function( /Volumes/ jonathanclark/ Software Projects/Sikuli Scripts/ Poke2/main. sikuli/ main.py) core.PyTableCod e.call( PyTableCode. java:165) core.PyCode. call(PyCode. java:18) core.Py. runCode( Py.java: 1275) core.__ builtin_ _.execfile_ flags(_ _builtin_ _.java: 522) util.PythonInte rpreter. execfile( PythonInterpret er.java: 225) scriptrunner. JythonScriptRun ner.runPython( JythonScriptRun ner.java: 208)
at readChatWindow$
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.python.
at org.sikuli.
at org.siku
li.scriptrunner .JythonScriptRu nner.runScript( JythonScriptRun ner.java: 176) ide.SikuliIDE$ ButtonRun$ 1.run(SikuliIDE .java:2369)
at org.sikuli.
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.