sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03124
[Bug 794424] Re: Sikuli keeps throwing exception when I try to access every member in os.environ
same configuration - no problems.
I guess you run it in the IDE. There are still some weird situations, where the IDE reports errors like
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
In this case there might be some content in one of your environment
entries that makes problems when trying to render the text to the
message window.
Are any entries printed, when the exception happens?
Try to run the script from commandline, so the print goes directly to
stdout and needs no rendering.
Try the following in the IDE:
out = ""
for key in d:
--
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
References