View Issue Details

IDProjectCategoryView StatusLast Update
0001385OpenFOAMBugpublic2014-09-30 17:26
Reporteruser588Assigned Touser4 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
PlatformUnixOSOtherOS Version(please specify)
Summary0001385: Crash of sample patchInternalField surface - suspect with low quality tets and octree search
DescriptionHello,

I have attached a case which triggers a segmentation fault in sample.

The case is a 240 cell subset out of a larger mesh which has been meshed with snappyHexMesh. The minTetQuality has been set to < 0 to disable this check, otherwise the coverage by the layers of the domain is unsatisfactory, so this can't be changed.

To reproduce the fault, run:
    sample
on the case. I have also attached my log output which has a lot of print statements from the included modified:
    mapDistribute.C
    mappedPatchBase.C
files. I think that I have localised the problem to line 223 of
    mappedPatchBase.C
i.e. the octree find in findSamples:
    label cellI = tree.findInside(sample);
which is called from line 635 of the same file (the // And re-search call).

The failure of this search produces a -1 in which ends up being passed to the mapDistribute and appears as -1 on line 747 of mapDistribute.C for the sendProc variable, hence the seg-fault.

All line numbers are for the standard 2.3.0 release versions of the files. The failure persists in the latest 2.3.x.

The included image:
    locationOfError.png
shows where the error occurs in context of the rest of the mesh (green ball). The faceSet of lowQualityTetFaces is shown in blue, and the failing sample is at one of these, so I suspect that the octree is failing to find a sample on this face for some reason.

Regards,

Graham
TagsNo tags attached.

Activities

user588

2014-08-29 12:00

 

sampleError.tar.gz (121,643 bytes)

user4

2014-09-30 17:26

  ~0003241

fixed in ccc06b4581b555bf06fb935a3b2188b5e1260258

It will re-search the failed samples for the nearest cell

Issue History

Date Modified Username Field Change
2014-08-29 12:00 user588 New Issue
2014-08-29 12:00 user588 File Added: sampleError.tar.gz
2014-09-30 17:26 user4 Note Added: 0003241
2014-09-30 17:26 user4 Status new => resolved
2014-09-30 17:26 user4 Fixed in Version => 2.3.x
2014-09-30 17:26 user4 Resolution open => fixed
2014-09-30 17:26 user4 Assigned To => user4