Re: Command used within Python Module causes memory leak?
Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] I'm trying to find time to put a simple repro together. Kinda tough right now in production. Eric T. On Tuesday, November 11, 2014 2:57:22 AM, Songqiong Yang wrote: Hi Eric, Is it reproducible if you use internal Python? Which Python version are you using? It would be helpful to investigate if you could provide some sample codes. Thanks, Songqiong Yang -Original Message- From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Eric Thivierge Sent: Saturday, November 01, 2014 4:32 AM To: softimage@listproc.autodesk.com Cc: Matt Lind Subject: Re: Command used within Python Module causes memory leak? I'm using external Python and am on 2014 SP2 with a QFE. Yeah not sure here. Eric T. On Friday, October 31, 2014 4:29:55 PM, Matt Lind wrote: what version of Softimage are you using? I have been experiencing memory leaks with C++ operators written in 2013 SP1. Same operator compiled for other versions seems to work fine. I’m tempted to say there is a known issue with memory leaks with Python in past versions, but I cannot say for sure. Might also be limited to the Python supplied with the factory installation. Matt
RE: Command used within Python Module causes memory leak?
Hi Eric, Is it reproducible if you use internal Python? Which Python version are you using? It would be helpful to investigate if you could provide some sample codes. Thanks, Songqiong Yang -Original Message- From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Eric Thivierge Sent: Saturday, November 01, 2014 4:32 AM To: softimage@listproc.autodesk.com Cc: Matt Lind Subject: Re: Command used within Python Module causes memory leak? I'm using external Python and am on 2014 SP2 with a QFE. Yeah not sure here. Eric T. On Friday, October 31, 2014 4:29:55 PM, Matt Lind wrote: > what version of Softimage are you using? > I have been experiencing memory leaks with C++ operators written in > 2013 SP1. Same operator compiled for other versions seems to work fine. > I’m tempted to say there is a known issue with memory leaks with > Python in past versions, but I cannot say for sure. Might also be > limited to the Python supplied with the factory installation. > Matt <>
Re: Command used within Python Module causes memory leak?
I'm using external Python and am on 2014 SP2 with a QFE. Yeah not sure here. Eric T. On Friday, October 31, 2014 4:29:55 PM, Matt Lind wrote: what version of Softimage are you using? I have been experiencing memory leaks with C++ operators written in 2013 SP1. Same operator compiled for other versions seems to work fine. I’m tempted to say there is a known issue with memory leaks with Python in past versions, but I cannot say for sure. Might also be limited to the Python supplied with the factory installation. Matt
RE: Command used within Python Module causes memory leak?
what version of Softimage are you using? I have been experiencing memory leaks with C++ operators written in 2013 SP1. Same operator compiled for other versions seems to work fine. I’m tempted to say there is a known issue with memory leaks with Python in past versions, but I cannot say for sure. Might also be limited to the Python supplied with the factory installation. Matt
Re: Command used within Python Module causes memory leak?
Just a random suggestion, might work might not: import gc gc.collect() Sent from my iPhone > On 31-Oct-2014, at 9:10 pm, Eric Thivierge wrote: > > Hello again, > > Just wondering if anyone has experienced memory leaks when using commands > within Python modules that have been imported? Doing some mesh merging and > attribute transfer within a method of a class I created, and the memory sky > rockets and takes forever. However when I run the same code in the script > editor outside of the python module, it works without crazy a memory leak and > finishes within a good amount of time. > > I'd like to mention that I'm setting the undo stack to 0 before running the > code for each test. > > Eric T. >
Command used within Python Module causes memory leak?
Hello again, Just wondering if anyone has experienced memory leaks when using commands within Python modules that have been imported? Doing some mesh merging and attribute transfer within a method of a class I created, and the memory sky rockets and takes forever. However when I run the same code in the script editor outside of the python module, it works without crazy a memory leak and finishes within a good amount of time. I'd like to mention that I'm setting the undo stack to 0 before running the code for each test. Eric T.