Skip to content

[bug] Segfault during SFM triangulation #2901

@bread-mountain4

Description

@bread-mountain4

Describe the bug
Using the 2 sided Photogrammetry pipeline, computation of SFMTriangulation nodes always fails with a segfault. The issue appears to be either configuration and/or dataset specific as I have had success using this pipeline template before when using this Meshroom build.

To Reproduce
Steps to reproduce the behavior:

  1. Create new project from pipeline
  2. Modifications I made: guided matching on all matching nodes and describer density and quality to high
  3. Compute at least up to any of the SFMTriangulation nodes
  4. See error

Expected behavior
The SFMTriangulation nodes to successfully compute

Core dump

#0  0x00007fa5aeedd517 in aliceVision::sfm::computeTracksPyramidPerView(boost::container::flat_map<unsigned long, std::vector<unsigned long, std::allocator<unsigned long> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long, std::vector<unsigned long, std::allocator<unsigned long> > > > > const&, std::map<unsigned long, aliceVision::track::Track, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, aliceVision::track::Track> > > const&, std::map<unsigned int, std::shared_ptr<aliceVision::sfmData::View>, std::less<unsigned int>, std::allocator<std::pair<unsigned int const, std::shared_ptr<aliceVision::sfmData::View> > > > const&, aliceVision::feature::FeaturesPerView const&, unsigned long, unsigned long, boost::container::flat_map<unsigned long, boost::container::flat_map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long, unsigned long> > >, std::less<unsigned long>, std::allocator<std::pair<unsigned long, boost::container::flat_map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long, unsigned long> > > > > >&) () from /usr/share/meshroom-bin/aliceVision/lib/libaliceVision_sfm.so.3
#1  0x00007fa5aeede696 in aliceVision::sfm::ReconstructionEngine_sequentialSfM::fuseMatchesIntoTracks() () from /usr/share/meshroom-bin/aliceVision/lib/libaliceVision_sfm.so.3
#2  0x0000000000410696 in aliceVision_main(int, char**) ()
#3  0x000000000040d94d in main ()

Log

[2025-09-21 16:10:27.517966] [0x00007fa59d2da000] [trace]   Embedded OCIO configuration file: '/usr/share/meshroom-bin/aliceVision/share/aliceVision/config.ocio' found.
Program called with the following parameters:
 * computeStructureColor = 1
 * describerTypes = "dspsift"
 * extraInfoFolder = "/home/me/MeshroomCache/SfMTriangulation/4c121cfc7106da973f6908b07284366a96c26313"
 * featuresFolders =  = [/home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed]
 * input = "/home/me/MeshroomCache/ConvertSfMFormat/c5641c21cf9d24a5de78750c8e6d36533c30600a/sfm.sfm"
 * interFileExtension = ".abc"
 * matchesFolders =  = [/home/me/MeshroomCache/FeatureMatching/49f334d2fa25ec95b8cd11966e4af0c96aef50f3]
 * maxCoresAvailable =  Unknown Type "j" (default)
 * maxMemoryAvailable = 18446744073709551615 (default)
 * maxNumberOfMatches = 0
 * minAngleForLandmark = 2
 * minAngleForTriangulation = 3
 * minNumberOfMatches = 0
 * minNumberOfObservationsForTriangulation = 2
 * observationConstraint =  Unknown Type "N11aliceVision3sfm18EFeatureConstraintE" (default)
 * output = "/home/me/MeshroomCache/SfMTriangulation/4c121cfc7106da973f6908b07284366a96c26313/sfm.abc"
 * randomSeed = 5489 (default)
 * rigMinNbCamerasForCalibration = 20
 * useRigConstraint = 1
 * verboseLevel = "debug"

[16:10:27.520615][info] Hardware:
[16:10:27.520654][info] 	Detected core count: 16
[16:10:27.520681][info] 	OpenMP will use 16 cores
[16:10:27.520725][info] 	Detected available memory: 21401 Mo
[16:10:27.520733][info] 
[16:10:27.528252][debug] List of provided feature folders:
[16:10:27.528274][debug] 	 - /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed
[16:10:27.528283][debug] List of feature folders (from sfmData) to load:
[16:10:27.528289][debug] 	 - /home/me/MeshroomCache/FeatureExtraction/1bb50e17b7f99c41d10d11c31d0b7c29fcca1331
[16:10:27.528296][debug] 	 - /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed
Loading features
0%   10   20   30   40   50   60   70   80   90   100%
|----|----|----|----|----|----|----|----|----|----|
[16:10:27.529962][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/12350835.dspsift.feat
[16:10:27.530203][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/131330.dspsift.feat
[16:10:27.530221][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/199684351.dspsift.feat
[16:10:27.530244][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/14226090.dspsift.feat
[16:10:27.530237][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/163626800.dspsift.feat
[16:10:27.530282][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/248872680.dspsift.feat
[16:10:27.530303][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/448442053.dspsift.feat
[16:10:27.530261][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/159998027.dspsift.feat
[16:10:27.530270][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/280507371.dspsift.feat
[16:10:27.530271][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/281949886.dspsift.feat
[16:10:27.530270][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/175711603.dspsift.feat
[16:10:27.530280][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/275576781.dspsift.feat
[16:10:27.530224][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/238361472.dspsift.feat
[16:10:27.530293][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/176466572.dspsift.feat
[16:10:27.530298][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/468367611.dspsift.feat
[16:10:27.530250][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/74677386.dspsift.feat
*[16:10:27.534415][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/505263972.dspsift.feat
*[16:10:27.538079][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/538667485.dspsift.feat
*[16:10:27.538170][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/555176881.dspsift.feat
*[16:10:27.538574][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/580211843.dspsift.feat
*[16:10:27.538866][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/624361828.dspsift.feat
*[16:10:27.539021][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/636161862.dspsift.feat
*[16:10:27.539134][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/644315392.dspsift.feat
[16:10:27.539296][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/680200982.dspsift.feat
*[16:10:27.539455][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/694695394.dspsift.feat
*[16:10:27.539785][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/777942751.dspsift.feat
*[16:10:27.542950][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/832539834.dspsift.feat
[16:10:27.542959][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/847009777.dspsift.feat
*[16:10:27.543064][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/873776575.dspsift.feat
*[16:10:27.543163][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/884536609.dspsift.feat
*[16:10:27.543350][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/885452532.dspsift.feat
[16:10:27.544093][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/931803039.dspsift.feat
*[16:10:27.544882][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/943885123.dspsift.feat
*[16:10:27.545050][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/946536565.dspsift.feat
*[16:10:27.547253][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/951608171.dspsift.feat
[16:10:27.547690][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/955103737.dspsift.feat
*[16:10:27.547871][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/967114080.dspsift.feat
*[16:10:27.547998][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1026417958.dspsift.feat
*[16:10:27.548294][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1041737026.dspsift.feat
[16:10:27.548430][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1078869322.dspsift.feat
*[16:10:27.548933][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1080380084.dspsift.feat
*[16:10:27.549234][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1096451551.dspsift.feat
*[16:10:27.549883][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1144461785.dspsift.feat
[16:10:27.550074][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1146986313.dspsift.feat
*[16:10:27.550809][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1169405140.dspsift.feat
*[16:10:27.552019][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1197052266.dspsift.feat
*[16:10:27.552208][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1277793787.dspsift.feat
[16:10:27.552762][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1340095370.dspsift.feat
*[16:10:27.553216][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1388659234.dspsift.feat
*[16:10:27.553717][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1417384623.dspsift.feat
*[16:10:27.553946][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1420756815.dspsift.feat
*[16:10:27.554113][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1465859594.dspsift.feat
[16:10:27.554819][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1535456333.dspsift.feat
*[16:10:27.556382][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1603327708.dspsift.feat
*[16:10:27.558139][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1622288931.dspsift.feat
*[16:10:27.558199][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1741070081.dspsift.feat
[16:10:27.558609][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1768569882.dspsift.feat
**[16:10:27.559110][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1811873270.dspsift.feat
[16:10:27.559119][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1818500805.dspsift.feat
*[16:10:27.559811][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1866337837.dspsift.feat
[16:10:27.560299][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1893953751.dspsift.feat
*[16:10:27.561278][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/1931381245.dspsift.feat
*[16:10:27.561478][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/2104540217.dspsift.feat
*[16:10:27.561804][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/2119004605.dspsift.feat
[16:10:27.561839][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/2136188470.dspsift.feat
*[16:10:27.562393][debug] Features filename: /home/me/MeshroomCache/FeatureExtraction/30fe642104d058e3e3cad2432b3f6570b9c7aaed/2139416954.dspsift.feat
************
[16:10:27.574051][debug] List of provided match folders:
[16:10:27.574091][debug] 	 - /home/me/MeshroomCache/FeatureMatching/49f334d2fa25ec95b8cd11966e4af0c96aef50f3
[16:10:27.574133][debug] List of match folders to load:
[16:10:27.574142][debug] 	 - /home/me/MeshroomCache/FeatureMatching/adeb97b5a19ef7a847ae2f8f624cdb62184ccf48
[16:10:27.574149][debug] 	 - /home/me/MeshroomCache/FeatureMatching/49f334d2fa25ec95b8cd11966e4af0c96aef50f3
[16:10:27.574157][debug] Loading matches
[16:10:27.577799][debug] Loading match file: /home/me/MeshroomCache/FeatureMatching/49f334d2fa25ec95b8cd11966e4af0c96aef50f3/2.matches.txt
[16:10:27.577800][debug] Loading match file: /home/me/MeshroomCache/FeatureMatching/49f334d2fa25ec95b8cd11966e4af0c96aef50f3/0.matches.txt
[16:10:27.577800][debug] Loading match file: /home/me/MeshroomCache/FeatureMatching/49f334d2fa25ec95b8cd11966e4af0c96aef50f3/3.matches.txt
[16:10:27.583037][debug] Loading match file: /home/me/MeshroomCache/FeatureMatching/49f334d2fa25ec95b8cd11966e4af0c96aef50f3/1.matches.txt
[16:10:27.586028][debug] Loading match file: /home/me/MeshroomCache/FeatureMatching/adeb97b5a19ef7a847ae2f8f624cdb62184ccf48/0.matches.txt
[16:10:27.586028][debug] Loading match file: /home/me/MeshroomCache/FeatureMatching/adeb97b5a19ef7a847ae2f8f624cdb62184ccf48/3.matches.txt
[16:10:27.586028][debug] Loading match file: /home/me/MeshroomCache/FeatureMatching/adeb97b5a19ef7a847ae2f8f624cdb62184ccf48/2.matches.txt
[16:10:27.617837][debug] Loading match file: /home/me/MeshroomCache/FeatureMatching/adeb97b5a19ef7a847ae2f8f624cdb62184ccf48/1.matches.txt
[16:10:27.639694][debug] Track building
[16:10:28.236704][debug] Track filtering
[16:10:28.320951][debug] Track export to internal structure
[16:10:28.458856][debug] Build tracks per view
[16:10:28.482136][debug] Build tracks pyramid per view
Process was killed by signal: 11

Desktop (please complete the following and other pertinent information):

  • OS: Linux 6.16.8-arch1-1 SMP PREEMPT_DYNAMIC
  • CUDA: NVIDIA-SMI 580.82.09 Driver Version: 580.82.09 CUDA Version: 13.0
  • Python version 3.11.10
  • Qt/PySide version 6 6.8.3
  • Meshroom version: AUR build 2025.1.0

Additional info:

  • Group 1: 66 jpg images, 56 estimated cameras, 1 intrinsic
  • Group 2: 64 jpg images, 56 estimated cameras, 1 intrinsic

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfor actual bugs (unsure? use type:question)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions