You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: I developed a fix for this issue and would like to request to push it.
Bug description
When called n times while expecting i rows of results, the PictGenerate function will generate n * i rows of results.
This issue is directly linked to the Model::Generate method, which means that even after fetching the results, and cleaning the results buffers, if the model is modified and the generation is triggered, the initial results will still be present.
How to reproduce
The easiest way is to modify the api-usage/pictapi-sample.cpp file and duplicate the PictGenerate call at least once.
Another option is to use the files provided with this issue. They are a duplication of the above file, stripped of unnecessary code and already reproducing the bug.
Note: I developed a fix for this issue and would like to request to push it.
Bug description
When called
n
times while expectingi
rows of results, thePictGenerate
function will generaten * i
rows of results.This issue is directly linked to the
Model::Generate
method, which means that even after fetching the results, and cleaning the results buffers, if the model is modified and the generation is triggered, the initial results will still be present.How to reproduce
The easiest way is to modify the
api-usage/pictapi-sample.cpp
file and duplicate thePictGenerate
call at least once.Another option is to use the files provided with this issue. They are a duplication of the above file, stripped of unnecessary code and already reproducing the bug.
pictapi-debug-sandbox.zip
Fix
The
Model::Generate
function must be modified to clean the ResultCollection before generating new results.The text was updated successfully, but these errors were encountered: