Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Infinite recursion bug when calling generate_number #53

Open
toxicpuzzle opened this issue Apr 21, 2024 · 1 comment
Open

Infinite recursion bug when calling generate_number #53

toxicpuzzle opened this issue Apr 21, 2024 · 1 comment

Comments

@toxicpuzzle
Copy link

toxicpuzzle commented Apr 21, 2024

In the main.py file, when jsonformer fails to generate a number, it continues calling generate number, but without incrementing the iterations variable, causing the "Failed to generate a valid number" to never get called and we get max recursion depth exceeded error.

image

@toxicpuzzle toxicpuzzle changed the title Infinite recursion bg when call generate_number Infinite recursion bug when calling generate_number Apr 21, 2024
@liqul
Copy link

liqul commented Jun 21, 2024

I don't know why sometimes it fails to generate any numbers which caused my experiments to fail. That's why I have to make a workaround by returning a default number when it fails after 3 iterations.

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

No branches or pull requests

2 participants