Wrapping problem and memory leak with facet domains in PyDOLFIN
Bug #860601 reported by
Martin Sandve Alnæs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
Undecided
|
Johan Hake |
Bug Description
In [1]: from dolfin import *
In [2]: mesh = Mesh("mesh.xml.gz")
In [31]: fd = md.facet_
In [34]: fd?
Type: SwigPyObject
Base Class: <type 'SwigPyObject'>
String Form: _804ce103000000
Namespace: Interactive
Docstring:
Swig object carries a C/C++ instance pointer
In [35]: print fd
<Swig Object of type 'boost::shared_ptr< dolfin:
In [37]:
Do you really want to exit ([y]/n)?
swig/python detected a memory leak of type 'boost::shared_ptr< dolfin:
Changed in dolfin: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I suspect the mesh is the same as in bug 860595, but could you post the mesh
here too?
Johan
On Tuesday September 27 2011 07:06:50 Martin Sandve Alnæs wrote: domains( mesh) 00_p_boost_ _shared_ ptrT_dolfin_ _MeshFunctionT_ dolfin_ :MeshFunction< dolfin::uint :MeshFunction< dolfin::uint > > *', no destructor found.
> Public bug reported:
>
> In [1]: from dolfin import *
> In [2]: mesh = Mesh("mesh.xml.gz")
>
> In [31]: fd = md.facet_
> In [34]: fd?
> Type: SwigPyObject
> Base Class: <type 'SwigPyObject'>
> String
> Form: _804ce103000000
> _uint_t_t Namespace: Interactive
> Docstring:
> Swig object carries a C/C++ instance pointer
>
> In [35]: print fd
> <Swig Object of type 'boost::shared_ptr< dolfin:
> > > *' at 0x416da80>
>
> In [37]:
> Do you really want to exit ([y]/n)?
> swig/python detected a memory leak of type 'boost::shared_ptr<
> dolfin:
>
> ** Affects: dolfin
> Importance: Undecided
> Status: New