Open moqingyan opened 4 years ago
It runs to an end finally. I will find a better example.
Scene:
"objects": [{"size": "small", "color": "brown", "shape": "cylinder", "material": "metal"}, {"size": "small", "color": "brown", "shape": "cylinder", "material": "metal"}, {"size": "large", "color": "purple", "shape": "sphere", "material": "rubber"}, {"size": "large", "color": "gray", "shape": "cube", "material": "rubber"}, {"size": "small", "color": "blue", "shape": "cube", "material": "metal"}, {"size": "small", "color": "brown", "shape": "cylinder", "material": "metal"}, {"size": "small", "color": "gray", "shape": "cube", "material": "rubber"}], "relationships": {"right": [[5, 2, 1, 4], [4], [1, 4], [0, 5, 2, 1, 4], [], [2, 1, 4], [3, 0, 5, 2, 1, 4]], "behind": [[6, 3], [6, 3, 0, 5, 2], [6, 3, 0, 5], [6], [6, 3, 0, 5, 2, 1], [6, 3, 0], []], "front": [[5, 2, 1, 4], [4], [1, 4], [0, 5, 2, 1, 4], [], [2, 1, 4], [3, 0, 5, 2, 1, 4]], "left": [[6, 3], [6, 3, 0, 5, 2], [6, 3, 0, 5], [6], [6, 3, 0, 5, 2, 1], [6, 3, 0], []]}}
target object idx: 0
This also leads to the stack overflow error in logic core.
Hey Calvin,
I found some strange cases, even the clause number does not grow over 10, the greedy algorithm meets stack overflow in the logic core.
Here is the scene:
The target object idx is 9.
When I run it in loop (with other scenes), I will encounter a stack overflow:
When I run it seperately, it takes a long time to run. I killed it after around 20 minutes.
Can you help me look into this issue? Since this error occurs at the state we want to find a third clause.
Thank you in advance!