[cgma-dev] [Fwd: PyTAPS Multiple Geometry Load Failure]

Rajeev Jain jain at mcs.anl.gov
Mon Apr 12 18:04:26 CDT 2010


Hi Stuart,

Loading twice works for a very simple case (python code below)
Assuming you have python version, dump this to the terminal :-
python
from itaps import iGeom, iBase
g=iGeom.Geom()
g.createBrick(1,1,1)
g.save("bri1.sat")
exit()
python
from itaps import iGeom, iBase
g=iGeom.Geom()
g.createBrick(0.5,0.5,2)
g.save("bri2.sat")
exit()
python
from itaps import iGeom, iBase
g=iGeom.Geom()
g.load("bri1.sat")
g.load("bri2.sat")
g.save("twobricks.sat")
exit()

From this case it appears that if both geometries are CGM created it
works. Problems appear with Cubit10.2 created .sat file; An error
message 'you may be trying to read a file from newer Acis version' pops
up. Not sure why, but, I'm unable to step into
gqt->read_geometry_file (line:434 iGeom_CGMA.cc) which seems to be
the cause of the error.

Rajeev





________________________________
From: Tim Tautges <tautges at mcs.anl.gov>
To: Rajeev Jain <jain at mcs.anl.gov>
Cc: Developer information for cgma <cgma-dev at lists.mcs.anl.gov>; Stuart Slattery <sslattery at wisc.edu>
Sent: Monday, April 12, 2010 12:46:48
Subject: [Fwd: [cgma-dev] PyTAPS Multiple Geometry Load Failure]

Rajeev,
  Could you take a look at this?  Thanks.  I know loading into 2 separate instances won't work, since cgm isn't thread safe.  Loading twice should work, though.

- tim

-------- Original Message --------
Subject: [cgma-dev] PyTAPS Multiple Geometry Load Failure
Date: Mon, 12 Apr 2010 12:39:47 -0500
From: Stuart Slattery <sslattery at wisc.edu>
To: cgma-dev at mcs.anl.gov

Hi

I am attempting to load two different ACIS files in order to compare. I
have found that a seg fault occurs when trying to load more than one
file. I have tried both using multiple iGeom constructors for each file
as well as one iGeom constructor and loading both files with that.
Attached you will find a sample python script and an ACIS file that
demonstrates the error by attempting to load 2 ACIS files (the same file
in this case).

Thanks

Stuart Slattery


-- ================================================================
"You will keep in perfect peace him whose mind is
  steadfast, because he trusts in you."               Isaiah 26:3

             Tim Tautges            Argonne National Laboratory
         (tautges at mcs.anl.gov)      (telecommuting from UW-Madison)
         phone: (608) 263-8485      1500 Engineering Dr.
           fax: (608) 263-4499      Madison, WI 53706

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20100412/e7657b36/attachment.htm>


More information about the cgma-dev mailing list