Archivebox: Exception ignored in: io.TextIOWrapper(stdout) BrokenPipeError: [Errno 32] Broken pipe

Created on 30 Jul 2020  路  3Comments  路  Source: ArchiveBox/ArchiveBox

Describe the bug

This bug is completely harmless and is visual-only, it can be avoided by setting SHOW_PROGRESS=False.

A macOS-specific bug where the subprocess handler gets killed before the stdout is finished flushing. It catches the exception, but prints it to stderr instead of bubbling up back to user code, so it's impossible to catch and silence from python without monkey patching python internals or doing something crazy.

I've already lost dozens of hours trying to get rid of this, at the moment the only fix is adding a 1sec delay after the process kill, slowing down archiving a lot, or by setting SHOW_PROGRESS=False and skipping the subprocess entirely.

Screenshots or log output


image

Software versions

  • OS: macOS 10.15
  • ArchiveBox version: v0.4.9
  • Python version: v3.8.5
  • Chrome version: v84.x.x
bug high hard wip

Most helpful comment

It is just something visual, should not affect the behavior of archivebox in any other way.

All 3 comments

I've been hit by this as well. What is the effect of this bug?

It is just something visual, should not affect the behavior of archivebox in any other way.

Fixed 馃帀 7d4738a

Was this page helpful?
0 / 5 - 0 ratings