Some laz files have corrupted chunk tables that make PotreeConverter stuck.
- The first call to LASreadPoint::seek -> init_dec() -> read_chunk_table fails to read that chunk table and sets number_chunks to 0.
- LASreadPoint::seek -> search_chunk_table() then recurses until stackoverflow because it is called with lower: 0 and upper: 0. Unfortunately, that stackoverflow ends up making the threads stuck forever.
As a workaround, I've added two throw statements to laszip so that laszip_seek_point() will return 0/false if a corrupt chunk table is encountered.
