Dear all,
I have a program which seems to run fine, but after quite a long time, it
randomly stops with always the same error :
RuntimeError: maximum recursion depth exceeded
WARNING: Failure executing file: <levelset.py>
what is the meaning of this error ?
do you know if there is a general class of problems causing this ?
-------------------------------------------------------------------------------------------------------------------------------------------------
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
499
500 if self.stale or not self._isCached() or self._value is
None:
--> 501 value = self._calcValue()
502 if self._isCached():
503 self._setValueInternal(value=value)
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/operatorVariable.pyc
in _calcValue(self)
69 else:
70 from fipy.tools import inline
---> 71 return inline._optionalInline(self._calcValueIn,
self._calcValuePy)
72
73 def _calcValueIn(self):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/tools/inline.pyc
in _optionalInline(inlineFn, pythonFn, *args)
16 return inlineFn(*args)
17 else:
---> 18 return pythonFn(*args)
19
20 def _getframeinfo(level, context=1):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/binaryOperatorVariable.pyc
in _calcValuePy(self)
77 val1 = self.var[1]
78
---> 79 return self.op(self.var[0].value, val1)
80
81 @property
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _getValue(self)
503 self._setValueInternal(value=value)
504 else:
--> 505 self._setValueInternal(value=None)
506 self._markFresh()
507 else:
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _setValueInternal(self, value, unit, array)
613
614 def _setValueInternal(self, value, unit=None, array=None):
--> 615 self._value = self._makeValue(value=value, unit=unit,
array=array)
616
617 def _makeValue(self, value, unit=None, array=None):
/usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/variables/variable.pyc
in _makeValue(self, value, unit, array)
647 array[:] = value
648 value = array
--> 649 elif type(value) not in (type(None),
type(numerix.array(1)), type(numerix.MA.array(1))):
650 value = numerix.array(value)
651 ## # numerix does strange things with really large
integers.
/usr/lib/python2.6/dist-packages/numpy/ma/core.pyc in array(data, dtype,
copy, order, mask, fill_value, keep_mask, hard_mask, shrink, subok, ndmin)
4648 return MaskedArray(data, mask=mask, dtype=dtype, copy=copy,
subok=subok,
4649 keep_mask=keep_mask, hard_mask=hard_mask,
-> 4650 fill_value=fill_value, ndmin=ndmin,
shrink=shrink)
4651 array.__doc__ = masked_array.__doc__
4652
/usr/lib/python2.6/dist-packages/numpy/ma/core.pyc in __new__(cls, data,
mask, dtype, copy, subok, ndmin, fill_value, keep_mask, hard_mask, flag,
shrink, **options)
2300 # Careful, cls might not always be MaskedArray...
2301 if not isinstance(data, cls) or not subok:
-> 2302 _data = ndarray.view(_data, cls)
2303 else:
2304 _data = ndarray.view(_data, type(data))
RuntimeError: maximum recursion depth exceeded
WARNING: Failure executing file: <levelset.py>