PLY ERROR: fread() failed


#1

Hi,
I have a medium dataset of ~360 images originally from Mavic Air but I resized them to 1024 due to lack of enough RAM.

Now I get stuck at PoissonRecon:

[DEBUG] running /code/SuperBuild/src/PoissonRecon/Bin/Linux/PoissonRecon --in
/datasets/code/smvs/smvs_dense_point_cloud.ply --out /datasets/code/odm_meshing/
odm_mesh.dirty.ply --depth 9 --pointWeight 4 --samplesPerNode 1.0 --threads 6 –
linearFit
PLY ERROR: fread() failed – aborting.
Traceback (most recent call last):
File “/code/run.py”, line 47, in
plasm.execute(niter=1)
File “/code/scripts/odm_meshing.py”, line 70, in process
verbose=self.params.verbose)
File “/code/opendm/mesh.py”, line 127, in screened_poisson_reconstruction
‘{verbose}’.format(**poissonReconArgs))
File “/code/opendm/system.py”, line 34, in run
raise Exception(“Child returned {}”.format(retcode))
Exception: Child returned 1

Any idea what went wrong this time?
Thanks


#2

The problem is likely further up in the pipeline, do you have a copy of the full task output? PoissonRecon failed probably because the smvs_dense_point_cloud.ply file has some issues.


#3

Hi,
Sorry for a late reply.

I uploaded the whole set -> [deleted]

If it’s too big for you and you are looking for specific files just let me know…

Thanks


#4

Only the task output is needed. You copy/pasted part of it. Having a copy of the full log would help.


#5

Here is the current one, but perhaps you’d like to see the whole process starting from scratch?

e[94m[INFO] Initializing OpenDroneMap app - Thu Jan 17 07:00:55 2019e[0m
e[94m[INFO] Running ODM Load Dataset Celle[0m
e[92m[DEBUG] Loading dataset from: /datasets/code/imagese[0m
e[94m[INFO] Loading images database: /datasets/code/images.jsone[0m
e[94m[INFO] Found 381 usable imagese[0m
e[94m[INFO] Coordinates file already exist: /datasets/code/odm_georeferencing/coords.txte[0m
e[92m[DEBUG] Line: WGS84 UTM 34Ne[0m
e[94m[INFO] Running ODM Load Dataset Cell - Finishede[0m
e[94m[INFO] Running ODM OpenSfM Celle[0m
e[93m[WARNING] Found a valid OpenSfM reconstruction file in: /datasets/code/opensfm/reconstruction.jsone[0m
e[93m[WARNING] Found a valid Bundler file in: /datasets/code/opensfm/reconstruction.jsone[0m
e[92m[DEBUG] running PYTHONPATH=/code/SuperBuild/install/lib/python2.7/dist-packages /code/SuperBuild/src/opensfm/bin/opensfm export_geocoords /datasets/code/opensfm --transformation --proj '+units=m +no_defs=True +datum=WGS84 +proj=utm +zone=34 'e[0m
e[94m[INFO] Running ODM OpenSfM Cell - Finishede[0m
e[94m[INFO] Running SMVS Celle[0m
e[93m[WARNING] Found a valid SMVS reconstruction file in: /datasets/code/smvs/smvs_dense_point_cloud.plye[0m
e[94m[INFO] Running ODM SMVS Cell - Finishede[0m
e[94m[INFO] Running ODM Meshing Celle[0m
e[92m[DEBUG] Writing ODM Mesh file in: /datasets/code/odm_meshing/odm_mesh.plye[0m
e[92m[DEBUG] running /code/SuperBuild/src/PoissonRecon/Bin/Linux/PoissonRecon --in /datasets/code/smvs/smvs_dense_point_cloud.ply --out /datasets/code/odm_meshing/odm_mesh.dirty.ply --depth 9 --pointWeight 4 --samplesPerNode 1.0 --threads 6 --linearFit e[0m
PLY ERROR: fread() failed – aborting.
Traceback (most recent call last):
File “/code/run.py”, line 47, in
plasm.execute(niter=1)
File “/code/scripts/odm_meshing.py”, line 70, in process
verbose=self.params.verbose)
File “/code/opendm/mesh.py”, line 127, in screened_poisson_reconstruction
‘{verbose}’.format(**poissonReconArgs))
File “/code/opendm/system.py”, line 34, in run
raise Exception(“Child returned {}”.format(retcode))
Exception: Child returned 1


#6

Yeah from scratch would help :slight_smile:


#7

log uploaded -> https://drive.google.com/open?id=15BX_YzeIEzzaYxAB1Pg8jg6BHRQjWMHc


#8

Mm, beside a few of the camera views being skipped, I don’t see much out of the ordinary.

I would recommend trying to examine the PLY file stored in the smvs directory for clues as to what might have gone wrong (does it open in MeshLab?) or process the dataset with --use-opensfm-dense.