Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

COLMAP 3.9.1 sequential_matcher crashes with loop_detection enabled (visual_index.h: file.is_open() failure)

Đang mở
#4,483 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
cpp
Lĩnh vực
computer-vision

Hướng nghiên cứu

Start by reading the failure at visual_index.h:569 and tracing how sequential_matcher initializes the visual index when loop_detection is enabled. Reproduce with the reported command and dataset, then compare against a run with loop detection disabled. Done means the enabled run completes or reports a graceful error instead of aborting.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Environment

  • COLMAP version: 3.9.1 (CLI build, Linux)
  • Build: CPU-only (no CUDA)
  • OS: Linux
  • Dataset size: ~2000 images (sequential capture)
  • Database size: ~7 GB SQLite DB

Command used

colmap sequential_matcher
--database_path project.db
--SequentialMatching.overlap 75
--SequentialMatching.loop_detection 1
--SiftMatching.use_gpu 0


Issue description

The sequential matcher runs successfully through all images and completes feature matching, but then crashes immediately after finishing.

The log shows:

Matching image [2000/2000]

followed by:

F... visual_index.h:569] Check failed: file.is_open()
Aborted (core dumped)


Behavior

  • Matching completes successfully for all image pairs
  • No errors during SIFT matching
  • Crash occurs only after completion when loop_detection is enabled

Verified facts

  • SQLite database integrity check: OK (PRAGMA integrity_check = ok)
  • Matches table populated correctly:
    • matches: 151305 rows
    • two_view_geometries: 151305 rows
  • Sufficient disk space available
  • Write permissions valid
  • Increasing ulimit (-n 65535) does not change behavior
  • Re-running matcher completes instantly (no recomputation) but still crashes at same point if loop_detection = 1

Minimal reproduction

The issue is fully reproducible with the same dataset and command. It does not depend on GPU usage.

Disabling loop detection avoids the crash entirely:

--SequentialMatching.loop_detection 0


Expected behavior

Sequential matcher should complete without crashing when loop_detection is enabled, or fail gracefully with an error message if visual index cannot be created/opened.


Notes

The database already contains all verified matches and is not corrupted. The crash appears to occur in the visual index stage (loop detection path) after matching completes.

This may indicate an issue in loop detection initialization or teardown in COLMAP 3.9.1.

Ngôn ngữ chính
C++
Star
12.9k
Fork
2.2k
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
78

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của colmap/colmap

Tất cả issue của colmap/colmap

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.