PhotoView 360 2012 SP1, Memory Leak When Running Animations

I am wondering if any of you are seeing a memory leak in the photoview360.exe and photoview360_cl.exe processes.

I am rendering a large number of frames, in the 4000 plus range.  As I get deeper into the process the rate that frames gets saved off gets progressively slower.  This is not an issue of the render buckets taking longer to process because of more complex data.  The frames I am rendering take 10-30 seconds for the buckets to process and about 1-2 minutes to do all the data transfer between SolidWorks Motion Manager and PhotoView 360.

In Windows Task Manager under Processes, in the Memory column, I can watch the photoview360.exe and photoview360_cl.exe use progressively more memory with each frame.  I am using a rendering node with 48 gigs of RAM, so I do not see the data transfer slowdown until I get 10-12 hours into the render.  From my observations, of the task manager, when the photoview360.exe and photoview360_cl.exe processes gets above 5-6 gigs of RAM it starts slowing down the data transfer process.  The bucket render process is not slowing down.

If I toggle the Show Preview and Final Render Window check box in the PhotoView Progress dialog box this flushes the working memory. With it checked you are running  photoview360.exe with the full UI. With it unchecked you are running photoview360_cl.exe (command line) without the UI.  Toggling the check box starts and stops those programs which flushes the working set memory.  Then the data transfer process between programs looks to speed up again.

This does not apear to be happening in PhotoView 360 2011, SP5.  I just did a huge 4400 frame project over this past holiday weekend and did not see any sign of that issue.  I had render nodes running for 40-50 hours, same render session, over hundreds of frames and did not see this kind of data transfer slowdown in PV360 2011, SP5.

For my systems it takes a while for the slow down to show itself.  But I am using render nodes with 48 gigs of RAM.  My customer who is also rendering out parts of this animation sees the issue sooner.  He only has 12 gigs of RAM in his systems.  I have confirmed this on at least 3 different workstations/render nodes.

What has changed between 2011 and 2012 in PhotoView 360 to cause this?

Yes, I plan to get with my VAR to report the bug.

Cheers,

Anna

SolidworksPhotoview 360
Comments 17
RR
RR 2011-11-30

Great Magnum PI work Anna.

AW
AW 2011-11-30

Just heard that the SolidWorks QA guys are looking into the issue.  Hopefully they can reproduce the problem on their end.

Cheers,

Anna

AC
AC 2011-12-01

Anna,

I have also noticed that same when i render animations a few months back.  I would set the animation running overnight, come back the next day and i would see that the progress is less then what i expected it to be.  I had a look and the memory and as you have stated the memory used would go up each frame.  i rarely use the render preview window now.  I just check the completed frame TGA

AW
AW 2011-12-01

I only use the render Preview Window when I start a render or occasionally as the render progresses so I can monitor how the buckets are working.

Very consistent memory leak in PV360_cl.  I am sure it is the same in PV360.  I just do not see it as much in PV360 since I do not run the preview window but for a few frames at a time.

I can consistently get the memory to clear by toggling the Preview Window on, let it run a frame or two, then toggle off.

Cheers,

Anna

AS
AS 2011-12-05

I assumed this had been sorted by now it was definately present when working with rendering walkthroughs in 2011, not sure if that was a seperate issue, but the work around was the same inpractical one, having to toggle the preview window on and off! It could be it is a regression, if so these are treated with a very high priority.

it is SPR 593134 i believe if anyone wants to get themselves added to it through their VAR

SPR 593134

The photoview360 process is leaking memory creating an animation with animation wizard - each subsequent frame takes longer to be created than previous one

AW
AW 2011-12-05

Yes, that is the SPR my VAR said was in the system.

It is a pain toggling the Preview Window on and off.  Especially because SolidWorks consumes 100% of the system resources and you have to wait for the 30 seconds or so that you can toggle the switch.  A big pain when it is taking many minutes between frames.  Miss the few seconds everything is selectable and you have to wait for another cycle.  

Cheers,

Anna

AS
AS 2011-12-05

Yeh and if you are rendering overnight as we were then it's not exactly pracitical short of setting an alarm to wake you up a few times a night. Perhaps a macro  to do it every so many frames from SoldiWorks Dev would be in order! :-) I doubt it would be that hard, my macro skills consist of copy and paste though!

Cheers


Alan

AW
AW 2011-12-05

Alan,

Can you tell me what SP you were using in SolidWorks for the files that show this issue?

I rendered a 4400 frame animation with SW2011, SP5 a week ago and did not see the issue.  Ran my render nodes for days on the same session.

I am wondering if it is a SP thing.  Or I am wondering if there is some element in appearances, scenes, lighting, settings, image quality settings that is triggering the problem.

Cheers,

Anna

SF
SF 2011-12-05

Maybe this is totally unrealated, but is it possible this issue you mention is the reason I keep getting this error message? Happens where rendering as AVI or as stills.

comment imagecomment image
AW
AW 2011-12-05

Bruce,

Interesting.........  That I have not seen.

Have you contacted your VAR and raised it as an issue?

Cheers,

Anna

SF
SF 2011-12-06

No, not yet. Been really busy trying to get the project done.

AW
AW 2011-12-06

That Chris is such a tough task master.....  

AS
AS 2011-12-06

Well that's the problem, i thought it was fixed by now but haven't had to render many large animations this year. I know we had an issue in SP0 or maybe even the beta versions of 2011 as we were rendering walktthroughs for what's new events!

Looking at the SPR number i would think it is reasonably old, around a year at a guess (i work for a VAR so am a bit sad and know my SPR numbers!) I'll test in 2011 SP5 and see what i get, it could be a regression between versions, but those are fairly rare, my bet is an older bug, but then SPR's don't have date raised  on them!

I asked our main guy who does macros here and we don't think it is possible due to the fact there doesn't seem to be a API command to close just the preview window and more fundamentally the fact that we don't think a macro will work during an rendered animation!

Cheers


Alan

RB
RB 2011-12-07

Hi Folks,

After working with Luxology on this they have confirmed it is an issue on their side.  The good news is we plan to have a fix in an upcoming service pack of 2012.

The only workaround that exists at the moment is to toggle the option to show the previw/final render windows.  When i say "toggle", I mean turn it on every few minutes, then turn if off, then on, the off, etc.  I know this doesn't do much for long animations that require days of processing.  "Every few minutes" could be aggressive and it will depend on your setup how frequently you need to do it.

Ron

AW
AW 2011-12-07

Ron,

Thank you for getting down to the bottom of the issue so quickly.

Looking forward to seeing the fix in a future SP.

CHeers,

Anna

RB
RB 2011-12-20

We have a partial fix for this coming in sp02.  By "partial fix" I mean it only takes effect when you are running the headless/command-line renders.  In other words, you should choose to keep the Preview and Final Render windows off/hidden.  It is actually OK to toggle them on from time to time to see where progress is at, but be sure to toggle it off.  We're continuing to work with Luxulogy on a more general solution in a future version.

AW
AW 2011-12-20

Excellent..... Thanks Ron