heremaps / pptk

The Point Processing Toolkit (pptk) is a Python package for visualizing and processing 2-d/3-d point clouds.
https://heremaps.github.io/pptk
MIT License
610 stars 112 forks source link

Viewer hangs when debug=False #24

Open ajprax opened 4 years ago

ajprax commented 4 years ago

debug=False (the default) hides debug output coming from the separate viewer process by capturing stderr with subprocess.PIPE, but (at least on some OSes) that pipe's buffer can fill after which the process hangs indefinitely. The hang is fixed by either setting debug=True or by using subprocess.DEVNULL instead of subprocess.PIPE to capture but ignore the output.

https://github.com/heremaps/pptk/blob/master/pptk/viewer/viewer.py#L56 is the offending line.