cvg / Hierarchical-Localization

Visual localization made easy with hloc
Apache License 2.0
3.24k stars 599 forks source link

loc_result = localize_sfm.main error #401

Closed applefb closed 3 months ago

applefb commented 4 months ago

when i run the localize_sfm.main(), my hloc==1.5 pycolmap==0.6.0 Why can the same version run on Ubuntu, but not on Windows, and it's difficult to find the reason for this error. It seems like there was an error in initializing pycolmap, and it also occurs when I run limap. However, in limap, my pycolmap=0.4.0 can run. Is it due to any memory overflow error?

[2024/07/04 22:14:43 hloc INFO] Reading the 3D model... Aborted at 1720102483 (unix time) try "date -d @1720102483" if you are using GNU date @ 0x7ff9a1bf4172 log2f @ 0x7ff7235c1d1c (unknown) @ 0x7ff99882f0f0 C_specific_handler @ 0x7ff9a44b504f chkstk @ 0x7ff9a442e866 RtlFindCharInUnicodeString @ 0x7ff9a44b403e KiUserExceptionDispatcher @ 0x7ff9888f264e void cdecl ExceptionPtrRethrow(void const * __ptr64) @ 0x7ff902ccf75e (unknown) @ 0x7ff902c82a07 (unknown) @ 0x7ff9167be625 (unknown) @ 0x7ff916d19fa9 PyInit_pycolmap @ 0x7ff988481080 (unknown) @ 0x7ff9884826f5 __NLG_Return2 @ 0x7ff9a44b4896 RtlCaptureContext2 @ 0x7ff9167c110a (unknown) @ 0x7ff96e50b14c _PyObject_MakeTpCall @ 0x7ff96e694c2c PyThread_tss_is_created @ 0x7ff96e54ac2e PyUnicode_FindChar @ 0x7ff96e548d44 PyUnicode_AsWideChar @ 0x7ff96e514a21 _PyEval_EvalFrameDefault @ 0x7ff96e5991c7 _PyType_CalculateMetaclass @ 0x7ff96e5d121f PyEval_EvalCode @ 0x7ff96e5d114a _PyArena_Free @ 0x7ff96e5d10c6 _PyArena_Free @ 0x7ff96e6b2c1a PyThread_tss_is_created @ 0x7ff96e5ffbbd _PyRun_SimpleFileObject @ 0x7ff96e588ad8 _PyRun_AnyFileObject @ 0x7ff96e58904b Py_MakePendingCalls @ 0x7ff96e5890bb Py_MakePendingCalls @ 0x7ff96e589c9c Py_RunMain @ 0x7ff96e589b2d Py_RunMain @ 0x7ff96e589579 Py_Main

Process finished with exit code 3

applefb commented 3 months ago

I finally figured it out. There were some library conflicts. I should use conda install pycolmap ==0.6.1 instead of pip install pycolmap. ==0.6.1