jsonformer icon indicating copy to clipboard operation
jsonformer copied to clipboard

Infinite recursion bug when calling generate_number

Open toxicpuzzle opened this issue 1 year ago • 1 comments
trafficstars

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 avatar Apr 21 '24 13:04 toxicpuzzle

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.

liqul avatar Jun 21 '24 07:06 liqul