Eclipse + Python:调试期间堆栈溢出 - 不运行

时间:2012-11-12 15:18:47

标签: python eclipse debugging pydev stack-overflow

我在 Eclipse 中有以下 Python 代码,在调试时导致堆栈溢出

v = ogr.Feature(layer.GetLayerDefn())

方法调用是GDAL/OGR库的一部分,我得到的错误消息是:

Traceback (most recent call last):
File "C:\Users\Default\.eclipse\org.eclipse.platform_3.7.0_920333535\plugins\org.python.pydev_2.7.1.2012100913\pysrc\pydevd.py", line 963, in trace_dispatch
     return additionalInfo.CreateDbFrame((self, filename, additionalInfo, t, frame)).trace_dispatch(frame, event, arg)
RuntimeError: maximum recursion depth exceeded Fatal Python error:
Cannot recover from stack overflow.

This application has requested the Runtime to terminate it in an
unusual way. Please contact the application's support team for more
information.

导致错误的代码部分是:

v = ogr.Feature(...)

但只有在我调试(F11)时才会发生,但在我运行时却没有(CTRL + F11)。

可能会发生什么以及如何防止此堆栈溢出

0 个答案:

没有答案