Description
When running demo_glomap.py, the script often crashes at the following line:
pycolmap.verify_matches(colmap_db_path, cache_dir + '/pairs.txt')
The crash happens inside the file mast3r/mast3r/demo_glomap.py. It does not always occur, but it has a high probability of crashing when the dataset is large
Any help or suggestions would be appreciated.
Example error output:
[2025-04-18 17:19:49] verify_matches
I20250418 17:19:51.374839 132507412465344 misc.cc:44]
Feature matching
I20250418 17:19:51.376025 132507469088448 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376071 132509436217024 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376153 132509369108160 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376194 132509232793280 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376153 132509358622400 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376181 132507479574208 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376273 132509167781568 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376294 132509100672704 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376301 132509153101504 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376340 132509079701184 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376213 132509222307520 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376389 132509020980928 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376415 132509090186944 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376487 132508949677760 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376520 132508966454976 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376573 132508895151808 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376637 132508884666048 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376668 132508832237248 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376690 132508819654336 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376714 132508698019520 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376717 132508765128384 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376783 132508687533760 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376875 132508630910656 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376985 132508496692928 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.377016 132508486207168 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.377039 132508423292608 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376876 132508620424896 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376923 132508609939136 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.377108 132508475721408 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.377139 132508354086592 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376956 132508544927424 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.376962 132508555413184 sift.cc:1432] Creating SIFT CPU feature matcher
I20250418 17:19:51.378182 132507412465344 pairing.cc:742] Importing image pairs...
I20250418 17:19:51.386343 132507412465344 pairing.cc:775] Matching block [1/7]
*** Aborted at 1744967991 (unix time) try "date -d @1744967991" if you are using GNU date ***
PC: @ 0x7885aa89eb1c pthread_kill
*** SIGABRT (@0x3e8000b83a4) received by PID 754596 (TID 0x7883fde006c0) from PID 754596; stack trace: ***
@ 0x7885aa8a1ec3 (/usr/lib/x86_64-linux-gnu/libc.so.6+0xa1ec2)
@ 0x7885a4e9b138 (/home/boe/miniconda3/envs/3R/lib/python3.10/site-packages/pycolmap/_core.cpython-310-x86_64-linux-gnu.so+0x69b137)
@ 0x7885aa845320 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x4531f)
@ 0x7885aa89eb1c pthread_kill
@ 0x7885aa84526e gsignal
@ 0x7885aa8288ff abort
@ 0x78859f4b135a __cxxabiv1::__terminate(void (*)())
@ 0x78859f4b13c5 std::terminate()
@ 0x78859f4b1658 __cxa_throw
@ 0x7885a4a20528 (/home/boe/miniconda3/envs/3R/lib/python3.10/site-packages/pycolmap/_core.cpython-310-x86_64-linux-gnu.so+0x220527)
@ 0x7885a521d39e colmap::EstimateCalibratedTwoViewGeometry(colmap::Camera const&, std::vector<Eigen::Matrix<double, 2, 1, 0, 2, 1>, std::allocator<Eigen::Matrix<double, 2, 1, 0, 2, 1> > > const&, colmap::Camera const&, std::vector<Eigen::Matrix<double, 2, 1, 0, 2, 1>, std::
@ 0x7885a521e172 colmap::EstimateTwoViewGeometry(colmap::Camera const&, std::vector<Eigen::Matrix<double, 2, 1, 0, 2, 1>, std::allocator<Eigen::Matrix<double, 2, 1, 0, 2, 1> > > const&, colmap::Camera const&, std::vector<Eigen::Matrix<double, 2, 1, 0, 2, 1>, std::allocator:
@ 0x7885a502de8c (/home/boe/miniconda3/envs/3R/lib/python3.10/site-packages/pycolmap/_core.cpython-310-x86_64-linux-gnu.so+0x82de8b)
@ 0x7885a59ed472 colmap::Thread::RunFunc()
@ 0x78859f4dbbf4 execute_native_thread_routine
@ 0x7885aa89ca94 (/usr/lib/x86_64-linux-gnu/libc.so.6+0x9ca93)
@ 0x7885aa929c3c (/usr/lib/x86_64-linux-gnu/libc.so.6+0x129c3b)