geosolutions-it / digital-twin-toolbox

Open source solution for inspecting and generating 3D Tiles for urban environments
GNU General Public License v3.0
40 stars 4 forks source link

Unexpected end of JSON input when working with point clouds #27

Open eemilhaa opened 1 month ago

eemilhaa commented 1 month ago

Description

Creating point cloud samples for preview or trying to get metadata (point counts / projection info) results in Unexpected end of JSON input (logs below).

Environment

operating system: Fedora Linux 40 Docker: 27.1.2 (docker compose v2.29.1)

Reproduction

I can reproduce this by following the tutorial in the wiki, i.e using the 1916.las file. Boils down to:

  1. docker compose up
  2. Unzip the example data into static/data
  3. Load 1916.las
  4. Use for example Create a data sample for preview

Logs

On 1st try after docker compose up:

digital_twin_toolbox          | Read point cloud statistic...
digital_twin_toolbox          | micromamba run -n pdal_env pdal info static/data/1916.las --stats
digital_twin_toolbox          | Read point cloud metadata...
digital_twin_toolbox          | micromamba run -n pdal_env pdal info static/data/1916.las --metadata
digital_twin_toolbox          | Success
digital_twin_toolbox          | 
digital_twin_toolbox          | error    libmamba Could not set lock (Resource temporarily unavailable)
digital_twin_toolbox          | warning  libmamba Cannot lock '/root/.cache/mamba/proc'
digital_twin_toolbox          |     Waiting for other mamba process to finish
digital_twin_toolbox          | Success
digital_twin_toolbox          | 
digital_twin_toolbox          | Unexpected end of JSON input
digital_twin_toolbox          | Unexpected end of JSON input
digital_twin_toolbox          | Unexpected end of JSON input

On subsequent tries:

digital_twin_toolbox          | Read point cloud statistic...
digital_twin_toolbox          | micromamba run -n pdal_env pdal info static/data/1916.las --stats
digital_twin_toolbox          | Read point cloud metadata...
digital_twin_toolbox          | micromamba run -n pdal_env pdal info static/data/1916.las --metadata
digital_twin_toolbox          | Success
digital_twin_toolbox          | 
digital_twin_toolbox          | Unexpected end of JSON input
digital_twin_toolbox          | Unexpected end of JSON input
digital_twin_toolbox          | Success
digital_twin_toolbox          | 
digital_twin_toolbox          | Unexpected end of JSON input

Running micromamba run -n pdal_env pdal info static/data/1916.las --stats directly inside the container:

critical libmamba The given prefix does not exist: "/root/micromamba/envs/pdal_env"
tdipisa commented 2 weeks ago

Dear @eemilhaa sorry for the late feedback but we have recently made significant changes and updates to the master branch of the project for which you may want to check again if the problem you previously identified still persists.