View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000565 | ascend | pygtk gui | public | 2012-09-09 21:33 | 2013-02-26 13:42 |
Reporter | john | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Platform | Windows | OS | Windows | OS Version | XP |
Product Version | 0.9.8 | ||||
Target Version | 0.9.9 | Fixed in Version | |||
Summary | 0000565: error loading preferences after hibernation? | ||||
Description | As reported by Rachel, > > I've been working on trying to get the salt exchanger code to work > > with a pinch point calculation. This has been going fine over the past > > couple of days but when I tried to open any of my files today in > > ASCEND I get the following error. > > > > A programming error has been detected during the execution of this > > program. > > It probably isn't fatal, but should be reported to the developers > > nonetheless. > > > > The details read: > > > > Traceback (most recent call last): > > File "C:\Program Files\ASCEND\ascend", line 223, <module>() > > librarypath=os.environ.get('ASCENDLIBRARY') > > ,assetspath=os.path.join(INSTALL_ASCDATA,"glade") > > ) > > variables: {'INSTALL_ASCDATA': ('local', u'C:\\Program Files\ > > \ASCEND'), 'os.path.join': ('local', <function join at 0x012C5730>), > > 'assetspath': (None, None)} > > File "C:\Program Files\ASCEND\python\gtkbrowser.py", line 263, > > __init__(self=<gtkbrowser.Browser instance>, librarypath=r'c:\Users > > \rachel\Documents\ANU University\ENGN4200 Thesis\Ascend;C:\Program > > Files\ASCEND\models', assetspath=u'C:\\Program Files\\ASCEND\\glade') > > self.browserpaned=self.builder.get_object ("browserpaned") > > _geom2=self.prefs.getGeometryValue(_display,"browserpaned") > > if _geom2: > > variables: {'_geom2': (None, None), 'self.prefs.getGeometryValue': > > ('local', <bound method Preferences.getGeometryValue of > > <preferences.Preferences instance at 0x0423FA30>>), '_display': > > ('local', '1\\WinSta0\\Default')} > > File "C:\Program Files\ASCEND\python\preferences.py", line 66, > > getGeometryValue(self=<preferences.Preferences instance>, > > displayname=r'1\WinSta0\Default', key='browserpaned') > > return None > > return int(_g) > > variables: {'int': ('builtin', <type 'int'>), '_g': ('local', > > "['316']")} > > ValueError: invalid literal for int() with base 10: "['316']" > > Deleting the '.ascend.ini' file made the problem go away. It appears that somehow the preferences were saved as strings when they should integers. Regardless, this kind of error should be caught and program launch should not be impeded. | ||||
Tags | No tags attached. | ||||