← Back to team overview

dolfin team mailing list archive

Re: Bus Error

 

This should be fixed now and the init() call should not be necessary.
Mesh entities are now initialized automatically in both the MeshEntity
and MeshEntityIterator constructors (and thus in particular for Edge,
Face etc).

-- 
Anders

On Wed, May 20, 2009 at 10:38:34PM +0200, Aron Wahlberg wrote:
> Hi,
> 
> I wonder if anyone has a clue about this problem. I'm sure I've run  
> the same thing before and then it worked... I can't see what changed.
> 
> This is what I run:
> 
> from dolfin import *
> mesh = UnitSquare(2, 2)
> cell = Cell(mesh, 2)
> cell.facetArea(1)
> 
> The last command gives me the error attached at the bottom of the  
> mail, but cell.volume(), cell.midpoint() and other methods work fine.  
> I also get the same/similar for a similar code:
> 
> edge = Edge(mesh, 2)
> edge.length()
> 
> Greatful for any help!
> 
> Aron
> 
> ########### ERROR MESSAGE ##########
>   cell.facetArea(1)
> [ip2432:04538] *** Process received signal ***
> [ip2432:04538] Signal: Bus error (10)
> [ip2432:04538] Associated errno: Unknown error: 1019328 (1019328)
> [ip2432:04538] Signal code:  (13)
> [ip2432:04538] Failing at address: 0x63617274
> [ 1] [0xbfffd2f8, 0x00000004] (-P-)
> [ 2] (_wrap_Cell_facetArea + 0xa2) [0xbfffd328, 0x04ab0298]
> [ 3] (PyObject_Call:F(0,3) + 0x2d) [0xbfffd348, 0x0000a498]
> [ 4] (PyEval_EvalFrameEx:F(0,2) + 0x35df) [0xbfffd588, 0x0007947f]
> [ 5] (PyEval_EvalCodeEx:F(0,2) + 0x71b) [0xbfffd638, 0x0007c726]
> [ 6] (PyEval_EvalFrameEx:F(0,2) + 0x4090) [0xbfffd878, 0x00079f30]
> [ 7] (PyEval_EvalCodeEx:F(0,2) + 0x71b) [0xbfffd928, 0x0007c726]
> [ 8] (PyEval_EvalFrameEx:F(0,2) + 0x4e03) [0xbfffdb68, 0x0007aca3]
> [ 9] (PyEval_EvalCodeEx:F(0,2) + 0x71b) [0xbfffdc18, 0x0007c726]
> [10] (PyEval_EvalFrameEx:F(0,2) + 0x4090) [0xbfffde58, 0x00079f30]
> [11] (PyEval_EvalCodeEx:F(0,2) + 0x71b) [0xbfffdf08, 0x0007c726]
> [12] (PyEval_EvalFrameEx:F(0,2) + 0x4090) [0xbfffe148, 0x00079f30]
> [13] (PyEval_EvalFrameEx:F(0,2) + 0x5446) [0xbfffe388, 0x0007b2e6]
> [14] (PyEval_EvalCodeEx:F(0,2) + 0x71b) [0xbfffe438, 0x0007c726]
> [15] (PyEval_EvalFrameEx:F(0,2) + 0x4090) [0xbfffe678, 0x00079f30]
> [16] (PyEval_EvalCodeEx:F(0,2) + 0x71b) [0xbfffe728, 0x0007c726]
> [17] (PyEval_EvalFrameEx:F(0,2) + 0x4090) [0xbfffe968, 0x00079f30]
> [18] (PyEval_EvalCodeEx:F(0,2) + 0x71b) [0xbfffea18, 0x0007c726]
> [19] (PyEval_EvalFrameEx:F(0,2) + 0x4090) [0xbfffec58, 0x00079f30]
> [20] (PyEval_EvalCodeEx:F(0,2) + 0x71b) [0xbfffed08, 0x0007c726]
> [21] (PyEval_EvalFrameEx:F(0,2) + 0x4090) [0xbfffef48, 0x00079f30]
> [22] (PyEval_EvalCodeEx:F(0,2) + 0x71b) [0xbfffeff8, 0x0007c726]
> [23] (PyEval_EvalCode:F(0,2) + 0x57) [0xbffff038, 0x0007c8da]
> [24] (PyRun_FileExFlags:F(0,2) + 0x104) [0xbffff0a8, 0x0009fa6d]
> [25] (PyRun_SimpleFileExFlags:F(0,81) + 0x280) [0xbffff138, 0x0009fe07]
> [26] (Py_Main:F(0,2) + 0xc05) [0xbffff268, 0x00005896]
> [27] (_start + 0xd8) [0xbffff2a8, 0x00002412]
> [28] (start + 0x29) [0xbffff2cc, 0x00002339]
> [ip2432:04538] *** End of error message ***
> Bus error
> ##########################################################
> 
> 
> 
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev

Attachment: signature.asc
Description: Digital signature


References