State:Closed|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:485146|TargetRelease:12.2v9|
Problem summary
Nuke's arg parser is using a too-small and signed int for memory limits
Customer reported version
n/a
Customer reported platform
n/a
Steps to reproduce
1) Use the following command to launch Nuke via the terminal:
/usr/local/Nuke13.0v4/Nuke13.0 -t -c 4294967295
nuke.memory("info") and note the output. You should see the following:'Allocated 95.8KiB, 0% of usage limit of 4GiB, sbrk = 64.8MiB.\nfree_*() calls: 2, new_handler() cleanups: 0.\n\n'
/usr/local/Nuke13.0v4/Nuke13.0 -t -c 4294967295
nuke.memory("info") in the Nuke terminal session and note the output:'Allocated 95.8KiB, -2147483648% of usage limit of 0B, sbrk = 87.2MiB.\nfree_*() calls: 220, new_handler() cleanups: 0.\n\n'
-c size flag should limit the cache memory usage, where size equals a number in bytes./usr/local/Nuke13.0v4/Nuke13.0 -c 4G
We're sorry to hear that
Please tell us why