Fix floating point exception and add --continue-on-error flag #4
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.
Summary
Fixes floating point exception crashes in PotreeConverter and adds a new
--continue-on-errorflag for robust batch processing.Problem
PotreeConverter was crashing with
Floating point exception (core dumped)when processing certain LAS/LAZ files, particularly when:This made batch processing of large datasets unreliable - a single bad file would crash the entire process.
Solution
🔧 Floating Point Exception Prevention
🚀 Robust Batch Processing
--continue-on-errorflag allows processing to continue even when individual files failUsage
Testing
/data/ibwc06-70cm_2697614c3.laz_converted--continue-on-errorflagFiles Modified
Converter/src/main.cpp- Added command line argument and options handlingConverter/include/converter_utils.h- Extended Options structConverter/include/chunker_countsort_laszip.h- Updated function signatureConverter/src/chunker_countsort_laszip.cpp- Core validation and error handling logicBenefits
Closes #3