Skip to content

maximum recursion issue #20

Description

@111andre111

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions