Adobe Dreamweaver Forums



Last 10 THreads :         Unable to transfer data (Last Post : matarchie - Replies : 2 - Views : 3 )           »          Shutting Down CF8 Stand-Alone Version on Windows (Last Post : pdenlinger - Replies : 0 - Views : 1 )           »          FW CS4 italian tryout version not downloadable (Last Post : mad_griffith - Replies : 1 - Views : 4 )           »          Server response HTTPService but Flex throw a 'HTTP request error' ? (Last Post : Jerrycai - Replies : 0 - Views : 1 )           »          Insert "Search" in a Topic (Last Post : Peter Grainge - Replies : 3 - Views : 9 )           »          magic zoom in graphic (Last Post : Twocans - Replies : 2 - Views : 3 )           »          ANN: Contact Form Solution Pack (Last Post : A.Translator - Replies : 20 - Views : 21 )           »          Stitching Images Together - Panoramic Views (Last Post : akribie - Replies : 4 - Views : 5 )           »          Urgent - JavaScript to Shockwave problem !!! (Last Post : Ned - Replies : 1 - Views : 2 )           »          Can verity search pick up static and dynamic content? (Last Post : Adam Cameron - Replies : 3 - Views : 4 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Director > 3-D
 
Tags:



Reply
  #1 (permalink)  
Old 10-14-2008, 10:52 PM
Richard
 
Posts: n/a
Diggs:
Default Memory Leak with cloneModelFromCastMember()?

Hello Experts!

I have been experiencing an apparent memory leak within Director 11 when
using cloneModelFromCastMember().

I was making the assumption that calling resetWorld() on a w3D member
onBeginSprite() would garbage collect any models previously cloned into that
when I previously ran the movie.

However, if I repeatedly start and stop the movie Director Gobbles roughly
10Mb more memory each time. The memory usage does not reduce upon calling
resetWorld()

A good way to replicate this is to use cloneModelFromCastMember() on a
largeish model in a repeat with i = 1 to 50 loop on the on beginSprite
handler.

Start and stop the movie over and over to see Director's memory usage hike
up.

Anybody have any advice why this is happening? Do I need to explicitly
delete all models cloned into a member on stopMovie????

Cheers

Richard Smith




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-14-2008, 11:01 PM
Richard
 
Posts: n/a
Diggs:
Default Re: Memory Leak with cloneModelFromCastMember()?

It appears that the problem doesn't happen on Director 8.5 (although I'm
still looking into it).

Can anyone confirm? I'm wondering if this is a new Version 11 memory leak?

Cheers

Richard


Reply With Quote
  #3 (permalink)  
Old 10-15-2008, 06:57 AM
Nanomedia
 
Posts: n/a
Diggs:
Default Re: Memory Leak with cloneModelFromCastMember()?

[q]Originally posted by: Richard
It appears that the problem doesn't happen on Director 8.5[/q]
Are you sure of that?
:grin;

[q]Originally posted by: Richard
Can anyone confirm? I'm wondering if this is a new Version 11 memory leak?[/q]

Yes.



Reply With Quote


  #4 (permalink)  
Old 10-15-2008, 11:12 AM
Richard
 
Posts: n/a
Diggs:
Default Re: Memory Leak with cloneModelFromCastMember()?

Hi Nano,

Can you get the memory leak to happen on Director 8.5 then?

"Nanomedia" <webforumsuser@macromedia.com> wrote in message
news:gd403g$rrl$1@forums.macromedia.com...
> [q]Originally posted by: Richard
> It appears that the problem doesn't happen on Director 8.5[/q]
> Are you sure of that?
> :grin;
>
> [q]Originally posted by: Richard
> Can anyone confirm? I'm wondering if this is a new Version 11 memory
> leak?[/q]
>
> Yes.


Oh oh.... Bad news... Thanks for confirming. Is Adobe aware of this one?

Anyone else have any info / thoughts?

Cheers

Richard


Reply With Quote
  #5 (permalink)  
Old 10-15-2008, 11:22 AM
Richard
 
Posts: n/a
Diggs:
Default Re: Memory Leak with cloneModelFromCastMember()?

I have just submitted an Adobe bug report. Will let you know if I get a
response at all...

Cheers

Richard


Reply With Quote
  #6 (permalink)  
Old 10-15-2008, 02:31 PM
ensamblador
 
Posts: n/a
Diggs:
Default Re: Memory Leak with cloneModelFromCastMember()?

I Had this problem with director 10.x. I seems that garbage collector dont work or it isnt completely efficient. I believed that this issue was solved in director 11, but it seems not.



Reply With Quote


  #7 (permalink)  
Old 10-15-2008, 03:03 PM
zzzorro
 
Posts: n/a
Diggs:
Default Re: Memory Leak with cloneModelFromCastMember()?

as a rule of thumb:
whenever possible avoid cloneModelFromCastMember in the first place.
It is highly unrecommended and the intel engineers always recommended to use
loadFile() with an external w3d file, which is much better than having the w3d
file in the castlib and using cmfcm.
each cmfm rebuilds the whole scene and takes a lot of time the bigger the
scene is.
apart from glitches like leaks, which you found right now and other things.

I work very much with sw3d and I barely have more than one shockwave3d member
in any of my movies. in very rare cases I use 2 sw3d members. Other than that I
use one member where I build and load everything into from external w3d files
with loadFile(), which is much more appropriate. the only downside is that I
can't change the model name, but there are ways to deal with it.

Reply With Quote
  #8 (permalink)  
Old 10-15-2008, 03:24 PM
Richard
 
Posts: n/a
Diggs:
Default Re: Memory Leak with cloneModelFromCastMember()?

Hi Zzzorro,

Thanks for the advice!

Why does cloning from external w3D members help? Does it avoid the memory
leak? It never used to happen on Director 8.5 so it has to be a new Version
10 / 11 bug right?

I need to import several weightmapped boned characters into a 3D member, and
due to export issues each character has to have it's own w3D file.

So I have to perform cloning at runtime to build the world. I also need to
clone these characters based on the level, so I can't use just one single 3D
member for both these reasons.

Thanks for any further ideas.

Richard Smith



"zzzorro" <webforumsuser@macromedia.com> wrote in message
news:gd4sn2$2l8$1@forums.macromedia.com...
> as a rule of thumb:
> whenever possible avoid cloneModelFromCastMember in the first place.
> It is highly unrecommended and the intel engineers always recommended to
> use
> loadFile() with an external w3d file, which is much better than having the
> w3d
> file in the castlib and using cmfcm.
> each cmfm rebuilds the whole scene and takes a lot of time the bigger the
> scene is.
> apart from glitches like leaks, which you found right now and other
> things.
>
> I work very much with sw3d and I barely have more than one shockwave3d
> member
> in any of my movies. in very rare cases I use 2 sw3d members. Other than
> that I
> use one member where I build and load everything into from external w3d
> files
> with loadFile(), which is much more appropriate. the only downside is that
> I
> can't change the model name, but there are ways to deal with it.
>



Reply With Quote
  #9 (permalink)  
Old 10-15-2008, 03:43 PM
necromanthus
 
Posts: n/a
Diggs:
Default Re: Memory Leak with cloneModelFromCastMember()?

[q]Originally posted by: Richard
It appears that the problem doesn't happen on Director 8.5 (although I'm
still looking into it).
Can anyone confirm? I'm wondering if this is a new Version 11 memory leak?[/q]

Hi Richard,
cloneModelFromCastMember() and cloneMotionFromCastMember() are
very old Intel/Macromedia "unfinished business".
http://forum.necromanthus.com/necrof...rum=1&topic=94
I don't remember the v8.5 "status", but I'm sure in v9 and MX2004 they were
present.
Talking about Adobe bug report, the upcoming hotfix has nothing to do with the
Shockwave3D Asset, so ...

cheers



Reply With Quote


  #10 (permalink)  
Old 10-15-2008, 08:00 PM
Richard
 
Posts: n/a
Diggs:
Default Re: Memory Leak with cloneModelFromCastMember()?

Thanks for the info!

Richard

"necromanthus" <webforumsuser@macromedia.com> wrote in message
news:gd4vh8$5qh$1@forums.macromedia.com...
> [q]Originally posted by: Richard
> It appears that the problem doesn't happen on Director 8.5 (although I'm
> still looking into it).
> Can anyone confirm? I'm wondering if this is a new Version 11 memory
> leak?[/q]
>
> Hi Richard,
> cloneModelFromCastMember() and cloneMotionFromCastMember()
> are
> very old Intel/Macromedia "unfinished business".
> http://forum.necromanthus.com/necrof...rum=1&topic=94
> I don't remember the v8.5 "status", but I'm sure in v9 and MX2004 they
> were
> present.
> Talking about Adobe bug report, the upcoming hotfix has nothing to do with
> the
> Shockwave3D Asset, so ...
>
> cheers
>
>
>



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 09:39 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk