← Back to team overview

sikuli-driver team mailing list archive

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

 

Hi RaiMan

Yes, I think it's a IDE related issue.

"Are any entries printed, when the exception happens?"
Yes, before the exception happens, some entries are printed out. And it stops at different key:value pair when the exception happens. I don't find a regular pattern.

I also tried your code, to print the output to a file. The behavior is
gook. No exception.

-- 
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

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


References