pptk icon indicating copy to clipboard operation
pptk copied to clipboard

Viewer hangs when debug=False

Open ajprax opened this issue 5 years ago • 0 comments

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.

ajprax avatar Oct 30 '19 00:10 ajprax