Darren,

this is great, I can repeat the crash here. Somewhere in the middle of
the the definition a Cap component generates invalid BRep topology. If
you bake this result, Rhino crashes.
This will help a lot while tracking down these so-called memory
corruption crashes.

Goodwill,
David

--
David Rutten
Robert McNeel & Associates


On Oct 15, 3:53 pm, DP <[EMAIL PROTECTED]> wrote:
> David,
>
> With the new version of GH I tried to load my previous definition file
> and tried to run the same preview and I received the following
> message:
> "Attempted to read or write protected memory. This is often an
> indication that other memory is corrupt."
>
> I had an error and a crash but i'm not sure if the report got to you.
>
> I have attached the definition file and the rhino file.
>
> http://groups.google.com/group/grasshopper3d/web/09302008_initial_tow...http://groups.google.com/group/grasshopper3d/web/09302008_initial_tow...
>
> Cores 1, 4, 9 reference to points in layers Cores, Quad-core and Nine-
> core.
>
> Please let me know if you come across anything.
>
> Thanks
>
> dp
>
> On Oct 1, 8:21 am, David Rutten <[EMAIL PROTECTED]> wrote:
>
> > Hi DP,
>
> > I did improve thememoryfootprint of Grasshopper after version
> > 0.3.0054 (the last public build). Before that, data was copied at
> > every juncture in order to prevent components from screwing over their
> > neighbours. I decided that the added robustness wasn't worth the
> > additionalmemoryoverhead so now multiple components share instances
> > of data. In some cases you'll see a marked increase in performance and
> > decrease inmemoryusage because there are fewer rotting polysurface
> > corpses lying about, but if you're actually changing the data at every
> > juncture, it still needs to get copied obviously and there will be
> > almost no improvement. This had to be tested rigorously, but so far
> > the small group of internal testers have not reported any problems
> > with this.
>
> > We'll see what happens when I unleash the new version... I've also
> > researched some DotNET profilers recently, and maybe they can help
> > with pinpointing the real bottlenecks.
>
> > --
> > David Rutten
> > Robert McNeel & Associates
>
> > On Oct 1, 3:03 pm, DP <[EMAIL PROTECTED]> wrote:
>
> > > That sounds great, it will most definitely help. I look forward to a
> > > new resolved build. Do let me know if you break any grounds with the
> > >memoryissue.
>
> > > Thanks again,
>
> > > dp
>
> > > On Oct 1, 7:57 am, David Rutten <[EMAIL PROTECTED]> wrote:
>
> > > > Hi dp,
>
> > > > I solved the file reading issue. If it seems like I can't get a new
> > > > version out before the weekend I'll send you an internal build.
> > > > I haven't tested thememoryproblem yet though.
>
> > > > --
> > > > David Rutten
> > > > Robert McNeel & Associates
>
> > > > On Oct 1, 1:02 pm, DP <[EMAIL PROTECTED]> wrote:
>
> > > > > Thanks David, This may also be blamed on my inefficient component
> > > > > setup, I have noticed a few times when thememoryhas runout. Also, I
> > > > > noticed that there are several "floors" at each floor, overlapping
> > > > > many times, which could potentially multiply several times the boolean
> > > > > operation. I am not sure how to fix this from what I suspect is the
> > > > > BRep"Wiredframe component. This is part of the reason I posted about
> > > > > selecting specific curves through either sorting values or strings. I
> > > > > hope this makes sense. Thanks again for your efforts.
>
> > > > > dp
>
> > > > > On Oct 1, 4:25 am, David Rutten <[EMAIL PROTECTED]> wrote:
>
> > > > > > When opening that wrm file (without the 3dm file), I get the 
> > > > > > following
> > > > > > errors:http://en.wiki.mcneel.com/content/upload/images/GHLoadError_TowerStud...
>
> > > > > > Obviously this is an IO bug. I don't know if I can rescue the file,
> > > > > > through it does load fine after the errors, minus the Extrude
> > > > > > components. So the definition becomes crippled, but it sounds like 
> > > > > > all
> > > > > > you have to do is rehook 5 components to fix it. I'll see what I can
> > > > > > do.
>
> > > > > > I did notice you have dozens upon dozens of BooleanDifference
> > > > > > components strung together. This is going to take a long time to
> > > > > > compute no matter what. It might also cause it to run out ofmemory.
> > > > > > Once I fixed (or once I've given up on) the load error, I'll have a
> > > > > > deeper look at that.
>
> > > > > > --
> > > > > > David Rutten
> > > > > > Robert McNeel & Associates
>
> > > > > > On Oct 1, 11:16 am, David Rutten <[EMAIL PROTECTED]> wrote:
>
> > > > > > > DP, I'll have a look... hang on.
>
> > > > > > > --
> > > > > > > David Rutten
> > > > > > > Robert McNeel & Associates
>
> > > > > > > On Oct 1, 9:32 am, DP <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > I have am having trouble opening my definition file. I try 
> > > > > > > > opening up
> > > > > > > > rhino and then loading grasshopper then when i try to load my
> > > > > > > > definition file it takes around 5 minutes and then automatically
> > > > > > > > closes rhino. I am hoping that I can at least recover my 
> > > > > > > > definition
> > > > > > > > file...any assistance would be appreciated.
>
> > > > > > > > Please find the file 
> > > > > > > > here:http://groups.google.com/group/grasshopper3d/web/09282008_initial_tow...
>
> > > > > > > > Thanks,
>
> > > > > > > > dp

Reply via email to