Repository navigation
Step 1: explain setup failures, check output folders, choose cache location - #674
Merged
Merged
Conversation
Contributor
Author
Contributor
Author
…cation Data on a network share or cloud drive (Google Drive for desktop) made step 1 stop with only "Initial preparation failed". - Setup failures say why: which file failed the re-read check and how, a missing data folder, no IMU poses. The GUI popup and the failure report list the reasons. - csv-parser (3rdparty/csv.hpp, marked HDMapping:): an I/O error on its worker thread is rethrown on the reading thread as std::system_error naming the file, instead of aborting the process. load_imu passes it on. - Before loading, step 1 checks that it can write to the data folder and the cache location (write, close, size, delete) and stops with a message if not. - Cache location: HD_MAPPING_CACHE_DIR sets the default; the step 1 GUI has a Cache menu (data folder, system temp, custom folder) for the session. Each run uses its own folder (cache_<stamp>_<pid> next to the data), and only that folder is deleted. - Lazy loading records each LAZ file's size and time after its first read, so a drive that reports other metadata once a file is downloaded passes the re-read check (likely cause of the report, not confirmed). - Windows: every installed tool embeds cmake/utf8.manifest (activeCodePage UTF-8, Windows 10 1903 or later), so data folders with non-ASCII names (e.g. "ążć") load. Before, LASzip, which expects UTF-8 file names, got paths in the ANSI code page and step 1 aborted on the first LAZ file. Fixes #671 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
michalpelka
force-pushed
the
mp/step1-network-share
branch
from
December 1, 2026 23:09
e5750d9 to
efa3182
Compare
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Fixes #671
Summary
HD_MAPPING_CACHE_DIR, or the new Cache menu for the session.User-visible changes
cache_<YYYYMMDD-HHMMSS>_<pid>instead ofcache, one per run. Cleanup deletes only that folder. Acachefolder left by an older version is not touched.HD_MAPPING_CACHE_DIR: puts the cache in another folder, created if missing, as<folder>/<data folder name>_cache_<stamp>_<pid>. Applies to the GUI, the command line and the Python bindings.HDMapping_results_*.jsonlist the reasons for a failed preparation.HD_MAPPING_CACHE_DIRand per-run cache folders, but not the check.Notes for review
3rdparty/csv.hpp(vendored csv-parser 2.1.3) is patched locally; the changes are markedHDMapping:. An exception on its worker thread used to callstd::terminate. It is now rethrown on the reading thread, as astd::system_errornaming the file.load_imupasses that error on instead of returning partial IMU data.output_folders.h/.cppholds the cache-location logic and the write check. It is registered in step 1, the raw viewer, pybind and the step 1 tests.v0.107.1, and its changed files compile there (compile-only check).Test plan
HD_MAPPING_CACHE_DIRset to a location that can't be created: message names the variable. Set to a missing folder: the folder is created.HD_MAPPING_CACHE_DIR, and its outputs match the local run.terminate.lio_result_Ncreated.HD_MAPPING_CACHE_DIRset, then the Cache menu. Shows the variable, then a custom folder, then the temp folder; the cache appears there and is removed after the run.🤖 Generated with Claude Code