Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SfM error #2328

Open
cfeng16 opened this issue May 17, 2024 · 1 comment
Open

SfM error #2328

cfeng16 opened this issue May 17, 2024 · 1 comment

Comments

@cfeng16
Copy link

cfeng16 commented May 17, 2024

Hi, nice work!

When I run openMVG_main_SfM --sfm_engine INCREMENTAL, the program exits quickly

INFO: [main_SfM.cpp:157]

Structure from Motion:

INFO: [loggerprogress.hpp:79] [- Features Loading -] 10%
INFO: [loggerprogress.hpp:79] [- Features Loading -] 20%
INFO: [loggerprogress.hpp:79] [- Features Loading -] 30%
INFO: [loggerprogress.hpp:79] [- Features Loading -] 40%
INFO: [loggerprogress.hpp:79] [- Features Loading -] 50%
INFO: [loggerprogress.hpp:79] [- Features Loading -] 60%
INFO: [loggerprogress.hpp:79] [- Features Loading -] 70%
INFO: [loggerprogress.hpp:79] [- Features Loading -] 80%
INFO: [loggerprogress.hpp:79] [- Features Loading -] 90%
INFO: [loggerprogress.hpp:79] [- Features Loading -] 100%
INFO: [sequential_SfM.cpp:278] Track building
INFO: [sequential_SfM.cpp:281] Track filtering
INFO: [sequential_SfM.cpp:283] Track export to internal struct
INFO: [sequential_SfM.cpp:309]

-- Tracks Stats --
Tracks number: 33623
Images Id:
2, 3, 4, 10, 12, 13, 18, 19, 21, 23, 24, 25, 26, 30, 31, 37, 38, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54, 55, 58, 59, 62, 66, 67, 68, 69, 70, 72, 73, 75, 76, 78, 79, 81, 83, 84, 86, 87, 88, 89, 90, 91, 92, 95, 96, 97, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 111, 112, 113, 114, 115, 116, 117, 121, 123, 124, 125, 126, 127, 129, 130, 131, 142, 143, 144, 145, 146, 147, 148, 149, 152, 153, 154, 156, 157, 159, 160, 161, 162, 165, 166, 168, 169, 171, 172, 175, 176, 177, 178, 180, 182, 184, 185, 186, 190, 191, 192, 193, 200, 201, 202, 207, 209, 210, 211, 212, 213, 214, 215, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 231, 234, 235, 236, 237, 238, 239, 242, 245, 246, 255, 256, 257, 258, 262, 264, 270, 272, 273, 276, 280, 281, 282, 283, 284, 289, 291, 294, 296, 297, 299, 300, 301, 302, 306, 307, 310, 311, 312, 313, 314, 316, 317, 319, 320, 322, 330, 332, 337, 339, 340, 341, 343, 344, 346, 347, 352, 353, 354, 355, 361, 362, 363, 364, 365, 366, 367, 380, 383, 384, 385, 386, 387, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 413, 414, 419, 420, 422, 423, 427, 448, 449, 450, 452, 466, 472, 474, 476, 477, 478, 480, 482, 484, 493, 496, 497, 498, 499, 500, 506, 507, 508, 509, 510, 520, 521, 526, 527, 530, 534, 536, 541, 545, 546, 547, 548, 549, 550, 551, 552, 555, 556, 557, 558, 559, 560, 561, 562, 563, 571, 572, 573, 577, 579, 580, 581, 582, 588, 589, 590, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 603, 604, 605, 606, 607, 610, 611, 612, 613, 624, 625, 628, 631, 634, 635, 636, 637, 638, 641, 643, 644, 645, 648, 649, 652, 653, 655, 656, 657, 660, 663, 664, 671, 676, 679, 680, 681, 682, 683, 684, 685, 691, 692, 693, 694, 695, 696, 698, 699, 700, 701, 705, 707, 708, 709, 710, 714, 715, 717, 718, 719, 721, 722, 723, 724, 725, 726, 728, 730, 731, 732, 735, 736, 742, 743, 744, 750, 751, 752, 754, 755, 759, 760, 761, 763, 764, 765, 768, 771, 772, 775, 777, 780, 781, 783, 789, 790, 791, 792, 796, 797, 802, 807, 811, 815, 816, 817, 818, 819, 822, 823, 825, 828, 829, 830, 832, 833, 847, 849, 851, 862, 863, 864, 865, 866, 868, 870, 871, 872, 873, 874, 875, 877, 878, 879, 880, 881, 884, 885, 886, 887, 890, 891, 892, 893, 894, 896, 897, 898, 900, 901, 902, 903, 904, 905, 907, 909, 910, 911, 913, 914, 915, 917, 918, 919, 921, 922, 926, 928, 940, 941, 943, 948, 951, 956, 961, 963, 967, 968, 976, 977, 978, 979, 980, 981, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 1003, 1006, 1010, 1012, 1013, 1014, 1016, 1017, 1018, 1020, 1021, 1022, 1023, 1027, 1029, 1030, 1031, 1032, 1034, 1035, 1037, 1038, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1051, 1052, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1127, 1128, 1130, 1131, 1134, 1137, 1138, 1139, 1140, 1149, 1150, 1151, 1153, 1155, 1157, 1158, 1159, 1161, 1163, 1165, 1166, 1170, 1172, 1173, 1174, 1177, 1178, 1180, 1191, 1192, 1193, 1194, 1195, 1201, 1205, 1209, 1210, 1212, 1215, 1219, 1220, 1221, 1224, 1225, 1227, 1239, 1241, 1249, 1251, 1252, 1253, 1254, 1268, 1272, 1273, 1275, 1277, 1290, 1291, 1295, 1298, 1300, 1316, 1317, 1320, 1323, 1324, 1325, 1326, 1327, 1329, 1330, 1331, 1332, 1333, 1334, 1335, 1336, 1337, 1346, 1349, 1350, 1352, 1357, 1358, 1363, 1364, 1365, 1367, 1370, 1371, 1376, 1381, 1384, 1386, 1387, 1388, 1390, 1397, 1403, 1408, 1414, 1416, 1422, 1435, 1436, 1437, 1439, 1440, 1451, 1452, 1453, 1454, 1457, 1458, 1459, 1460, 1462, 1465, 1468, 1475, 1476, 1477, 1478, 1487, 1488, 1489, 1494, 1497, 1513, 1515, 1516, 1517, 1521, 1522, 1524, 1525, 1526, 1527, 1528, 1534, 1535, 1537, 1538, 1550, 1551, 1552, 1559, 1560, 1566, 1569, 1571, 1572, 1576, 1577, 1578, 1583, 1590, 1591, 1598, 1601, 1626, 1627, 1637, 1638, 1642, 1643, 1644, 1673, 1675, 1699, 1711, 1713, 1717, 1718, 1719, 1723, 1727, 1728, 1729, 1734, 1737, 1738, 1739, 1740, 1741, 1742, 1749, 1756, 1763, 1764, 1780, 1781, 1785, 1801, 1812, 1818, 1819, 1820, 1821, 1828, 1829, 1837, 1838, 1839, 1856, 1857, 1862, 1863, 1866, 1875, 1876, 1877, 1878, 1880, 1898, 1912, 1913, 1914, 1919, 1926, 1927, 1928, 1929, 1930, 1933, 1934, 1938, 1940, 1948, 1952, 1956, 1958, 1960, 1965, 2012, 2013, 2017, 2018, 2020, 2021, 2022, 2030, 2031, 2032, 2066, 2068, 2074, 2076, 2094, 2149, 2150, 2157, 2158, 2179, 2180, 2181, 2182, 2185, 2186, 2260, 2262, 2274, 2277, 2278, 2292, 2301, 2303, 2304, 2305, 2306, 2307, 2308, 2311, 2312, 2313, 2314, 2315, 2316, 2317, 2319, 2320, 2323, 2324, 2325, 2328, 2330, 2331, 2333, 2334, 2335, 2336, 2337, 2339, 2340, 2341, 2343, 2347, 2349, 2350, 2351, 2352, 2353, 2354, 2361, 2362, 2363, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377, 2378, 2379, 2380, 2382, 2383, 2385, 2386, 2387, 2389, 2391, 2392, 2393, 2394, 2395, 2396, 2397, 2402, 2403, 2404, 2406, 2413, 2417, 2418, 2425, 2426, 2428, 2429, 2430, 2431, 2434, 2435, 2440, 2441, 2444, 2445, 2446, 2448, 2449, 2450, 2451, 2452, 2453, 2463, 2464, 2468, 2469, 2470, 2471, 2472, 2473, 2474, 2475, 2476, 2477, 2478, 2479, 2480, 2481, 2482, 2484, 2485, 2489, 2491, 2492, 2493, 2494, 2495, 2496, 2500, 2501, 2505, 2507, 2508, 2509, 2510, 2511, 2513, 2515, 2516, 2521, 2522, 2524, 2525, 2526, 2527, 2528, 2529, 2530, 2531, 2532, 2533, 2534, 2535, 2536, 2537, 2538, 2539, 2540, 2541, 2545, 2550, 2551, 2552, 2554, 2555, 2556, 2557, 2558, 2559,

TrackLength, Occurrence
2 23527
3 5439
4 2049
5 882
6 502
7 438
8 208
9 145
10 99
11 60
12 60
13 44
14 30
15 29
16 24
17 15
18 14
19 14
20 10
21 5
22 7
23 5
24 7
25 3
26 2
27 1
29 1
32 1
36 1
45 1

INFO: [loggerprogress.hpp:79] [Selection of an initial pair] 10%
INFO: [loggerprogress.hpp:79] [Selection of an initial pair] 20%
INFO: [loggerprogress.hpp:79] [Selection of an initial pair] 30%
INFO: [loggerprogress.hpp:79] [Selection of an initial pair] 40%
INFO: [loggerprogress.hpp:79] [Selection of an initial pair] 50%
INFO: [loggerprogress.hpp:79] [Selection of an initial pair] 60%
INFO: [loggerprogress.hpp:79] [Selection of an initial pair] 70%
INFO: [loggerprogress.hpp:79] [Selection of an initial pair] 80%
INFO: [loggerprogress.hpp:79] [Selection of an initial pair] 90%
INFO: [loggerprogress.hpp:79] [Selection of an initial pair] 100%
INFO: [sequential_SfM.cpp:495] Putative starting pair info:
index:(1756,1821)
view basename:(49156815973_f50c206e88_o,50115031488_307c56b2a6_o)
INFO: [sequential_SfM.cpp:538] Relative pose a-contrario upper_bound residual is: 0.405992
INFO: [sfm_data_BA_ceres.cpp:513]
Bundle Adjustment statistics (approximated RMSE):
#views: 2
#poses: 2
#intrinsics: 1
#tracks: 151
#residuals: 604
Initial RMSE: 0.186915
Final RMSE: 0.138272
Time (s): 0.0261641

Used motion prior: 0
INFO: [sequential_SfM.cpp:648]

MSE Residual InitialPair Inlier:

INFO: [sequential_SfM.cpp:733]
SequentialSfMReconstructionEngine::ComputeResidualsMSE.
-- #Tracks: 146
-- Residual min: 8.4392e-08
-- Residual median: 0.0380295
-- Residual max: 0.791974
-- Residual mean: 0.0793226
INFO: [sequential_SfM.cpp:932] -- Trying robust Resection of view: 1862
INFO: [robust_estimator_ACRansac.hpp:440] nfa=-317.314 inliers=123/127 precisionNormalized=0.000539366 precision=4.62421 (iter=0 ,sample=103,18,115,)
INFO: [robust_estimator_ACRansac.hpp:440] nfa=-426.447 inliers=125/127 precisionNormalized=8.08268e-05 precision=1.79008 (iter=1 ,sample=14,112,93,)
INFO: [robust_estimator_ACRansac.hpp:440] nfa=-497.656 inliers=117/127 precisionNormalized=8.60407e-06 precision=0.584046 (iter=3 ,sample=45,98,75,)
INFO: [robust_estimator_ACRansac.hpp:440] nfa=-506.943 inliers=121/127 precisionNormalized=1.12388e-05 precision=0.667505 (iter=8 ,sample=124,56,104,)
INFO: [robust_estimator_ACRansac.hpp:440] nfa=-513.496 inliers=123/127 precisionNormalized=1.23871e-05 precision=0.700777 (iter=27 ,sample=116,16,110,)
INFO: [robust_estimator_ACRansac.hpp:440] nfa=-516.974 inliers=120/127 precisionNormalized=8.21884e-06 precision=0.570822 (iter=53 ,sample=74,62,79,)
INFO: [robust_estimator_ACRansac.hpp:440] nfa=-518.014 inliers=121/127 precisionNormalized=9.03187e-06 precision=0.59839 (iter=68 ,sample=92,25,121,)
INFO: [robust_estimator_ACRansac.hpp:440] nfa=-524.257 inliers=118/127 precisionNormalized=5.61224e-06 precision=0.471698 (iter=107 ,sample=52,84,28,)
INFO: [robust_estimator_ACRansac.hpp:440] nfa=-525.844 inliers=123/127 precisionNormalized=9.74884e-06 precision=0.621687 (iter=189 ,sample=45,25,86,)
INFO: [SfM_Localizer.cpp:333]

-- Robust Resection statistics:
-- Resection status: 1
-- #Points used for Resection: 127
-- #Points validated by robust Resection: 123
-- Threshold: 0.621687

double free or corruption (out)
Aborted (core dumped)

Can you help me take a look at it? Thanks!

@pmoulon
Copy link
Member

pmoulon commented May 25, 2024

It seems that the software is crashing at some point, I would advise you to share a stack trace so we would know where it crash and could investigate more.
Or add some log in the code to find where it crash.
It seems that it was either looking for the next image to position in 3D, or run a BundleAdjustement step

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants