Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

maximum recursion issue #20

Open
111andre111 opened this issue Apr 9, 2020 · 0 comments
Open

maximum recursion issue #20

111andre111 opened this issue Apr 9, 2020 · 0 comments

Comments

@111andre111
Copy link

With one of my swagger files I am getting an issue here:

Failed to load reference. file=swagger-....json $ref=#/definitions/ClusterCrudResponse (maximum recursion depth exceeded in cmp)

I found out I can increase the recursionlimit which I did:
https://docs.python.org/2/library/sys.html#sys.setrecursionlimit
sys.setrecursionlimit(20000)
I checked with jq and found about 13000 keys in the file I have.

But when I increased the value it needs some time and then python crashes with a segmentation fault error: EXC_BAD_ACCESS (SIGSEGV).

I found here a blog post that there are solutions for getting out of that situation but I don't know how to adapt it to this python program here.
http://neopythonic.blogspot.com/2009/04/tail-recursion-elimination.html

Could you please have a look?
Thank you.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant