简体   繁体   English

进程结束,退出代码为 -107341571 (0xC00000FD)

[英]Process finished with exit code -107341571 (0xC00000FD)

I am getting我正进入(状态

Process finished with exit code -107341571 (0xC00000FD)进程结束,退出代码为 -107341571 (0xC00000FD)

With no stack trace, or any other indication of an error, in a rather large code-base.在相当大的代码库中没有堆栈跟踪或任何其他错误指示。

I can't create a reproducible, or I would be able to solve this.我无法创建可复制的,否则我将能够解决这个问题。

What's causing this?这是什么原因造成的?

For me, this happened with the following code in some class:对我来说,这发生在一些 class 中的以下代码中:

class A():
    @property
    def points_limits(self):
        return self.points_limits

Calling a.points_limits crashed Python. This is an obvious name-clash, and I expected some compilation error in such cases, but apparently this is not caught.调用a.points_limits崩溃 Python。这是一个明显的名称冲突,我预计在这种情况下会出现一些编译错误,但显然这没有被捕获。


Solution:解决方案:

don't call a property within itself - return a member variable instead, notice the leading underscore:不要在自身内部调用属性 - 而是返回一个成员变量,注意前导下划线:

    @property
    def points_limits(self):
        return self._points_limits

Why there is nothing more indicative, or why Google doesn't find this is beyond me.为什么没有更多的指示性,或者为什么谷歌没有发现超出了我的范围。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 进程以退出代码 -1073741571 (0xC00000FD) Tensorflow 结束 - Process finished with exit code -1073741571 (0xC00000FD) Tensorflow 过程以 Python 中的退出代码 -1073741571 (0xC00000FD) 结束 - Process finished with exit code -1073741571 (0xC00000FD) in Python Python 大输入快速排序; 如何修复错误代码:进程已完成,退出代码为 -1073741571 (0xC00000FD)? - Quicksort in Python on big input; How do I fix error code: Process finished with exit code -1073741571 (0xC00000FD)? 当我需要多次运行 sim 调用函数时避免退出代码 -1073741571 (0xc00000fd) - Avoiding exit code -1073741571 (0xc00000fd) when I need to run a sim calling functions many times over Python 0xC00000FD 无线程修复 - Python 0xC00000FD fix without thread 进程在 Pycharm 中以退出代码 -1073741819 (0xC0000005) 完成 - Process finished with exit code -1073741819 (0xC0000005) in Pycharm 使用XGBoost在PyCharm上以退出代码-1073740791(0xC0000409)退出的过程完成 - Process finished with exit code -1073740791 (0xC0000409) on PyCharm with XGBoost 进程以退出代码 -1073741819 (0xC0000005) Pycharm 结束 - Process finished with exit code -1073741819 (0xC0000005) Pycharm 进程完成,退出代码 -1073740791 (0xC0000409) pycharm 错误 - Process finished with exit code -1073740791 (0xC0000409) pycharm error 进程以退出代码 -1073741515 (0xC0000135) 结束 - Process finished with exit code -1073741515 (0xC0000135)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM