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

DensifyPointCloud crash #441

Closed
rennu opened this issue Jun 14, 2019 · 8 comments
Closed

DensifyPointCloud crash #441

rennu opened this issue Jun 14, 2019 · 8 comments

Comments

@rennu
Copy link

rennu commented Jun 14, 2019

Specifications like the version of the project, operating system, and hardware

  • Built 30mins ago from master
  • Ubuntu 16.04 with updates
  • Xeon E3-1246v3, 32GB

I tried to reconstruct Sceaux Castle dataset.

Steps to reproduce the problem

I did initial reconstruction using latest OpenMVG master. Here are the commands:

/opt/openmvg/bin/openMVG_main_SfMInit_ImageListing -i /datasets/images -o /datasets/sfm/matches -d /opt/openmvg/share/openMVG/sensor_width_camera_database.txt

/opt/openmvg/bin/openMVG_main_ComputeFeatures -i /datasets/sfm/matches/sfm_data.json -o /datasets/sfm/matches -m SIFT

/opt/openmvg/bin/openMVG_main_ComputeMatches -i /datasets/sfm/matches/sfm_data.json -o /datasets/sfm/matches -g f

/opt/openmvg/bin/openMVG_main_IncrementalSfM -i /datasets/sfm/matches/sfm_data.json -m /datasets/sfm/matches -o /datasets/sfm/reconstruction_global

/opt/openmvg/bin/openMVG_main_openMVG2openMVS -i /datasets/sfm/reconstruction_global/sfm_data.bin -o /datasets/sfm/omvs/scene.mvs -d /datasets/sfm/omvs

/opt/openmvs/bin/OpenMVS/DensifyPointCloud scene.mvs -w /datasets/sfm/omvs -v 0

At this point DensifyPointCloud fails with error:

12:32:38 [App     ] Build date: Jun 12 2019, 15:45:32
12:32:38 [App     ] CPU: Intel(R) Xeon(R) CPU E3-1246 v3 @ 3.50GHz (8 cores)
12:32:38 [App     ] RAM: 31.28GB Physical Memory 15.98GB Virtual Memory
12:32:38 [App     ] OS: Linux 4.15.0-23-generic (x86_64)
12:32:38 [App     ] SSE & AVX compatible CPU & OS detected
12:32:38 [App     ] Command line: scene.mvs -w /datasets/sfm/omvs -v 0
terminate called after throwing an instance of 'std::length_error'
  what():  basic_string::_M_create
@cdcseacave
Copy link
Owner

This is not enough to debug, I need the data that gives you this error.

@rennu
Copy link
Author

rennu commented Jun 14, 2019

Here's the scene.mvs scene.zip

Do you need something else?

@cdcseacave
Copy link
Owner

sure, how about the undistoreted images?

@rennu
Copy link
Author

rennu commented Jun 14, 2019

Here. imgs.zip

@cdcseacave
Copy link
Owner

It works just fine, on the last master on a fresh Ubuntu 16 x64 with the above files:
image

@rennu
Copy link
Author

rennu commented Jun 15, 2019

Well, for my clean install it doesn't.

I did some testing and the last one to work is this one. The next commit does changes to DensifyPointCloud so it also makes sense that something went broken.

@rennu
Copy link
Author

rennu commented Jun 16, 2019

Ok, I think I figured it out. I think it's the -w argument that crashes DensifyPointCloud.

DensifyPointCloud scene.mvs will work

DensifyPointCloud scene.mvs -w /datasets/sfm/omvs will crash
openmvs

@leokinglong
Copy link

@cdcseacave the master branch still have this problem

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

3 participants