I can confirm that it wasn't an issue for me probably as early as Qt 4.7 (and possibly 4.5, I cant remember). I had an app that was constantly loading and unloading phonon players and I watched the memory release when I cleared the source each time. You should probably just install a newer version locally and try it out. Then you can easily make a case for upgrading.
On May 7, 2012, at 12:34 PM, Judd Simantov <[email protected]> wrote: > Hey Damon! > > I probably could do some trickery where I only ever have one player, but it > would require me to do all kinds of UI parenting, and restructuring that will > just make the code and design super ugly :) That might be a good last resort > if there is no alternative. > > Does anyone know if this is fixed in later releases? It might be worth just > pushing to get them to upgrade if its fixed. > > > On Mon, May 7, 2012 at 12:06 PM, damon shelton <[email protected]> > wrote: > Judd!! > are you able to hide and show the phonon object and reuse it, instead of > creating a new instance every time? This doesn't fix memory leak but stops > more memory being allocated. > > > > > On Mon, May 7, 2012 at 11:55 AM, Judd Simantov <[email protected]> wrote: > Unfortunately the company I'm working for can't change the versions. It's > increasing the memory every time I create the phonon object. I have a bunch > of vids, so every time I hit play I create the object and then in the > finished() I want to release it. > > > On Mon, May 7, 2012 at 11:32 AM, Justin Israel <[email protected]> wrote: > QtCore.QT_VERSION_STR > QtCore.PYQT_VERSION_STR > > Those versions seemed low for 2011 > I would recommend: > Qt 4.5.3 > Sip 4.10 > PyQt 4.7.3 > > That aside, do you mean that every time you create a phonon object, the > memory keeps increasing by 40mb? Or is it a one time increase? > > > On May 7, 2012, at 11:17 AM, Judd Simantov wrote: > >> Using Maya 2011 X64 on Windows 7 >> >> I checked versions with >> >> sys.version >> QtCore.PYQT_VERSION_STR >> sip.SIP_VERSION_STR >> >> not sure how else to check them. >> >> I haven't done any proper profiling (not too familiar with how to do that in >> Python). I'm just looking in the task manager and Maya goes up every time I >> that call is made and never actually releases until I close Maya. It crashes >> once the memory number goes high enough so I'm assuming its getting >> allocated. >> >> thanks for the help! >> >> >> On Mon, May 7, 2012 at 11:00 AM, Justin Israel <[email protected]> >> wrote: >> Can you confirm those versions? They don't seem right. What version of maya? >> Also, how are you verifying that the memory is a leak (and for what OS?). >> Memory can still report higher and it doesn't mean its in use. The operating >> system could take it back. The only way to know if its a leak is to do a >> profile. >> >> >> >> >> On May 7, 2012, at 10:44 AM, loked wrote: >> >> > I should also mention, I'm using Python 2.6.4, PyQt 4.4.4 and SIP >> > 4.7.9 just in case it has any version relevance. >> > >> > >> > On May 7, 10:27 am, loked <[email protected]> wrote: >> >> Hey, >> >> >> >> I'm creating an instance of Phonon.VideoPlayer in my UI and every time >> >> I instantiate the player it allocates about 40mb or memory I can't >> >> seem to get back. This is the call: >> >> >> >> player = Phonon.VideoPlayer(Phonon.VideoCategory,self) >> >> >> >> I've tried player.stop(), del player, I've done a sip delete, >> >> player.deleteLater() and player.destroy() but none seem to free up the >> >> memory. >> >> >> >> Has anyone run into the same problem? >> >> >> >> Thanks! >> > >> > -- >> > view archives: http://groups.google.com/group/python_inside_maya >> > change your subscription settings: >> > http://groups.google.com/group/python_inside_maya/subscribe >> >> -- >> view archives: http://groups.google.com/group/python_inside_maya >> change your subscription settings: >> http://groups.google.com/group/python_inside_maya/subscribe >> >> >> -- >> view archives: http://groups.google.com/group/python_inside_maya >> change your subscription settings: >> http://groups.google.com/group/python_inside_maya/subscribe > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe > > -- > view archives: http://groups.google.com/group/python_inside_maya > change your subscription settings: > http://groups.google.com/group/python_inside_maya/subscribe -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
