简体   繁体   中英

Process finished with exit code -107341571 (0xC00000FD)

I am getting

Process finished with exit code -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 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.


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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM