← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #222761]: Sikuli TestSuite takes too long too find images

 

Question #222761 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/222761

    Status: Answered => Open

Fox88 is still having a problem:
I have made some adjustments in a module I made myself, and now it works.
When testing it only takes seconds.

What i had to do though was make a new screen of every image i had in my code to make it work.
Now i have come across this error message and i have no idea if it has to do something with it.

But to be clear the code works.

##
[info] Windows utilities loaded.

java.io.FileNotFoundException: C:\Users\MAIKEL~1.GEE\AppData\Local\Temp\sikuli-tmp2461621201671225174.png (Access is denied)
 at java.io.RandomAccessFile.open(Native Method)
 at java.io.RandomAccessFile.(Unknown Source)
 at javax.imageio.stream.FileImageOutputStream.(Unknown Source)
 at com.sun.imageio.spi.FileImageOutputStreamSpi.createOutputStreamInstance(Unknown Source)
 at javax.imageio.ImageIO.createImageOutputStream(Unknown Source)
 at javax.imageio.ImageIO.write(Unknown Source)
 at org.sikuli.ide.Utils.saveTmpImage(Utils.java:136)
 at org.sikuli.ide.ImageButton.createThumbnail(ImageButton.java:111)
 at org.sikuli.ide.ImageButton.createThumbnail(ImageButton.java:116)
 at org.sikuli.ide.ImageButton.setFilename(ImageButton.java:64)
 at org.sikuli.ide.ImageButton.getFilename(ImageButton.java:58)
 at org.sikuli.ide.NamingPane.init(NamingPane.java:67)
 at org.sikuli.ide.NamingPane.(NamingPane.java:39)
 at org.sikuli.ide.PatternWindow.(PatternWindow.java:57)
 at org.siku

[info] Sikuli vision engine loaded.

li.ide.ImageButton.actionPerformed(ImageButton.java:213)
 at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
 at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
 at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
 at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
 at java.awt.Component.processMouseEvent(Unknown Source)
 at javax.swing.JComponent.processMouseEvent(Unknown Source)
 at java.awt.Component.processEvent(Unknown Source)
 at java.awt.Container.processEvent(Unknown Source)
 at java.awt.Component.dispatchEventImpl(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
 at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
 at java.awt

.LightweightDispatcher.dispatchEvent(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Window.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
 at java.awt.EventQueue.access$000(Unknown Source)
 at java.awt.EventQueue$1.run(Unknown Source)
 at java.awt.EventQueue$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue$2.run(Unknown Source)
 at java.awt.EventQueue$2.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 a

t java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
 at javax.imageio.ImageIO.write(Unknown Source)
 at org.sikuli.ide.Utils.saveTmpImage(Utils.java:136)
 at org.sikuli.ide.ImageButton.createThumbnail(ImageButton.java:111)
 at org.sikuli.ide.ImageButton.createThumbnail(ImageButton.java:116)
 at org.sikuli.ide.ImageButton.setFilename(ImageButton.java:64)
 at org.sikuli.ide.ImageButton.getFilename(ImageButton.java:58)
 at org.sikuli.ide.NamingPane.init(NamingPane.java:67)
 at org.sikuli.ide.NamingPane.(NamingPane.java:39)
 at org.sikuli.ide.PatternWindow.(PatternWindow.java:57)
 at org.sikuli.ide.ImageButton.actionPerformed(ImageButton.java:213)
 at javax.swin

g.AbstractButton.fireActionPerformed(Unknown Source)
 at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
 at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
 at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
 at java.awt.Component.processMouseEvent(Unknown Source)
 at javax.swing.JComponent.processMouseEvent(Unknown Source)
 at java.awt.Component.processEvent(Unknown Source)
 at java.awt.Container.processEvent(Unknown Source)
 at java.awt.Component.dispatchEventImpl(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
 at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
 at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
 at java.awt.Conta

iner.dispatchEventImpl(Unknown Source)
 at java.awt.Window.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
 at java.awt.EventQueue.access$000(Unknown Source)
 at java.awt.EventQueue$1.run(Unknown Source)
 at java.awt.EventQueue$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue$2.run(Unknown Source)
 at java.awt.EventQueue$2.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
 at 

java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.run(Unknown Source)
##

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.