← Back to team overview

sikuli-driver team mailing list archive

[Bug 794424] [NEW] Sikuli keeps throwing exception when I try to access every member in os.environ

 

Public bug reported:

My code is quite simple

import os
d = os.environ
for key in d:
	print key, d[key]

When I execute the simple code, Sikuli frequently (2 out of 3 tries)
reports exceptions below:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException  at javax.swing.text.FlowView$FlowStrategy.layoutRow(Unknown Source)  at javax.swing.text.FlowView$FlowStrategy.layout(Unknown Source)  at javax.swing.text.FlowView.layout(Unknown Source)  at javax.swing.text.BoxView.setSize(Unknown Source)  at javax.swing.text.BoxView.updateChildSizes(Unknown Source)  at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source)  at javax.swing.text.BoxView.layout(Unknown Source)  at javax.swing.text.BoxView.setSize(Unknown Source)  at javax.swing.text.BoxView.updateChildSizes(Unknown Source)  at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source)  at javax.swing.text.BoxView.layout(Unknown Source)  at javax.swing.text.BoxView.setSize(Unknown Source)  at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(Unknown Source)  at javax.swing.plaf.basic.BasicTextUI.modelToView(Unknown Source)  at javax.swing.text.DefaultCaret.repaintNewCaret(Unknown Source)  at javax.swing.text.DefaultCaret$1.run( 
COMMONPROGRAMFILES C:\Program Files\Common Files SIKULI_HOME C:\Program Files\Sikuli X\ APPDATA C:\Documents and Settings\mzhu\Application Data DEFLOGDIR C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection COMSPEC C:\WINDOWS\system32\cmd.exe OS Windows_NT HOMEDRIVE C: HOMESHARE \\pa-home\home4 NUMBER_OF_PROCESSORS 4 USERDNSDOMAIN vmware.com VSEDEFLOGDIR C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection 
Unknown Source)  at java.awt.event.InvocationEvent.dispatch(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) 

Sikuli X-1.0rc2
Windows XP SP3 32-bit
6G memory

** Affects: sikuli
     Importance: Undecided
         Status: New

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

Title:
  Sikuli keeps throwing exception when I try to access every member in
  os.environ

Status in Sikuli:
  New

Bug description:
  My code is quite simple

  import os
  d = os.environ
  for key in d:
  	print key, d[key]

  When I execute the simple code, Sikuli frequently (2 out of 3 tries)
  reports exceptions below:

  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException  at javax.swing.text.FlowView$FlowStrategy.layoutRow(Unknown Source)  at javax.swing.text.FlowView$FlowStrategy.layout(Unknown Source)  at javax.swing.text.FlowView.layout(Unknown Source)  at javax.swing.text.BoxView.setSize(Unknown Source)  at javax.swing.text.BoxView.updateChildSizes(Unknown Source)  at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source)  at javax.swing.text.BoxView.layout(Unknown Source)  at javax.swing.text.BoxView.setSize(Unknown Source)  at javax.swing.text.BoxView.updateChildSizes(Unknown Source)  at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source)  at javax.swing.text.BoxView.layout(Unknown Source)  at javax.swing.text.BoxView.setSize(Unknown Source)  at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(Unknown Source)  at javax.swing.plaf.basic.BasicTextUI.modelToView(Unknown Source)  at javax.swing.text.DefaultCaret.repaintNewCaret(Unknown Source)  at javax.swing.text.DefaultCaret$1.run( 
  COMMONPROGRAMFILES C:\Program Files\Common Files SIKULI_HOME C:\Program Files\Sikuli X\ APPDATA C:\Documents and Settings\mzhu\Application Data DEFLOGDIR C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection COMSPEC C:\WINDOWS\system32\cmd.exe OS Windows_NT HOMEDRIVE C: HOMESHARE \\pa-home\home4 NUMBER_OF_PROCESSORS 4 USERDNSDOMAIN vmware.com VSEDEFLOGDIR C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection 
  Unknown Source)  at java.awt.event.InvocationEvent.dispatch(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) 

  Sikuli X-1.0rc2
  Windows XP SP3 32-bit
  6G memory


Follow ups

References