← Back to team overview

sikuli-driver team mailing list archive

[Bug 2009900] [NEW] Cannot load image to change offset and accuracy

 

Public bug reported:

[error] ImagePath: find: File does not exist: C:\Dev\Sources\Sikuli%20Test%20Cases\CommonMobile.sikuli\1678406115469.png
[error] ImagePath: find: File does not exist: C:\Dev\Sources\Sikuli%20Test%20Cases\CommonMobile.sikuli\1678406115469.png
[error] PatternPaneTargetOffset: Can't load C:\Dev\Sources\Sikuli%20Test%20Cases\CommonMobile.sikuli\1678406115469.png

File does exists in the location and the Sikuli IDE shows the image in
the editor, when I click on the image to change the offset and accuracy
it shows above error in the message window and fails to show matches on
the pattern settings dialog matching preview tab, also fails to load
image on the target offset tab.

Eventually if I try to click on another tab I get this in the message
window:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.awt.image.BufferedImage.getWidth()" because "this._img" is null
	at org.sikuli.ide.PatternPaneTargetOffset.paintPatternOnly(PatternPaneTargetOffset.java:236)
	at org.sikuli.ide.PatternPaneTargetOffset.paintComponent(PatternPaneTargetOffset.java:170)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1119)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
	at java.desktop/javax.swing.JC
omponent.paintToOffscreen(JComponent.java:5311)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(RepaintManager.java:1657)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1632)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1570)
	at java.desktop/javax.swing.RepaintManager.paint(RepaintManager.java:1337)
	at java.desktop/javax.swing.JComponent._paintImmediately(JComponent.java:5259)
	at java.desktop/javax.swing.JComponent.paintImmediately(JComponent.java:5069)
	at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:879)
	at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:862)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:862)
	at java.desktop/javax.swing.RepaintMan
ager.paintDirtyRegions(RepaintManager.java:835)
	at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:784)
	at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1898)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.aw
t.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)


Sikuli version = 2.0.5
Windows 10
JAVA JDK 17.0.6

** Affects: sikuli
     Importance: Undecided
         Status: New

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

Title:
  Cannot load image to change offset and accuracy

Status in SikuliX:
  New

Bug description:
  [error] ImagePath: find: File does not exist: C:\Dev\Sources\Sikuli%20Test%20Cases\CommonMobile.sikuli\1678406115469.png
  [error] ImagePath: find: File does not exist: C:\Dev\Sources\Sikuli%20Test%20Cases\CommonMobile.sikuli\1678406115469.png
  [error] PatternPaneTargetOffset: Can't load C:\Dev\Sources\Sikuli%20Test%20Cases\CommonMobile.sikuli\1678406115469.png

  File does exists in the location and the Sikuli IDE shows the image in
  the editor, when I click on the image to change the offset and
  accuracy it shows above error in the message window and fails to show
  matches on the pattern settings dialog matching preview tab, also
  fails to load image on the target offset tab.

  Eventually if I try to click on another tab I get this in the message
  window:

  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.awt.image.BufferedImage.getWidth()" because "this._img" is null
  	at org.sikuli.ide.PatternPaneTargetOffset.paintPatternOnly(PatternPaneTargetOffset.java:236)
  	at org.sikuli.ide.PatternPaneTargetOffset.paintComponent(PatternPaneTargetOffset.java:170)
  	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1119)
  	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
  	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
  	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
  	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
  	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
  	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
  	at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
  	at java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
  	at java.desktop/javax.swing.JC
  omponent.paintToOffscreen(JComponent.java:5311)
  	at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(RepaintManager.java:1657)
  	at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1632)
  	at java.desktop/javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1570)
  	at java.desktop/javax.swing.RepaintManager.paint(RepaintManager.java:1337)
  	at java.desktop/javax.swing.JComponent._paintImmediately(JComponent.java:5259)
  	at java.desktop/javax.swing.JComponent.paintImmediately(JComponent.java:5069)
  	at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:879)
  	at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:862)
  	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
  	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
  	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:862)
  	at java.desktop/javax.swing.RepaintMan
  ager.paintDirtyRegions(RepaintManager.java:835)
  	at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:784)
  	at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1898)
  	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
  	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
  	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
  	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
  	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
  	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
  	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
  	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
  	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
  	at java.desktop/java.aw
  t.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
  	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
  	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
  	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)


  Sikuli version = 2.0.5
  Windows 10
  JAVA JDK 17.0.6

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



Follow ups