|
|
|
[
Permlink
| « Hide
]
Robin Shen [18/Aug/12 01:31 AM]
Because "configuration" always refer to the configuration currently being running. So "configuration.getParent().getNextVersion(false)" calculates next version for "root/proj_name/internal", and while calculating this, it calls itself again and again.
I don't understand why it is infinity loop.
For this structure: root/proj_name/internal/linux When we run linux it is execute configuration.getParent().getNextVersion(false); It is get version on "proj_name" configuration. For calc new version in "proj_name" execute this script again but now on "root" conf. Or I'm miss something? Thanks for the backup. I did get the problem reproduced now. Since when calculating next build version, QB calls "configuration.getNextVersion(false)" and in your script the "getNextVersion(false)" is called again which result in an infinite loop. Since we allow arbitrary script to run, we can not avoid such behavior and the script author needs to be careful not to introduce any infinite loops.
DB was attached.
try to run root/proj_name/internal/linux I tried but can not get the problem reproduced. Can you please send me a minimized database demonstrating the issue?
Thanks |