1

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?

Tomerikoo
  • 18,379
  • 16
  • 47
  • 61
Gulzar
  • 23,452
  • 27
  • 113
  • 201

1 Answers1

2

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.

Tomerikoo
  • 18,379
  • 16
  • 47
  • 61
Gulzar
  • 23,452
  • 27
  • 113
  • 201
  • Weird. I'm getting [this error](https://i.stack.imgur.com/Khp5x.png) that is a bit more indicative. At least showing the exact line `return self.points_limits` and complaining about a `RecursionError: maximum recursion depth exceeded`. How are you running? conda? IPython? Regular? – Tomerikoo May 31 '21 at 16:14
  • I am running a system interpreter with no env [there are bad reasons out of my control to doing this]. – Gulzar May 31 '21 at 17:05