You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes when running multiple consecutive beets commands, stdio gets confused and the enter key stops working. Seems to happen particularly often with the convert plugin, but I have also observed it when importing.
Steps to reproduce:
convert any album with beet convert -a foo, just hit enter in the confirmation prompt
try to convert another album with beet convert -a bar, hit enter in the confirmation prompt
instead a newline, a literal "^M" appears when pressing either the enter key or ^M
kill beets with ^C and run reset
try 2. again, now it works as expected
Setup
OS: NixOS 17.09pre102667.2839b10 (Linux 4.9.13)
Python version: 2.7.13
beets version: 1.4.3
Turning off plugins made problem go away (yes/no): -
Thanks! This sounds like a similar problem to beetbox/audioread#32 in the Audioread project, which also forks ffmpeg subprocesses. It was fixed in beetbox/audioread@ea48fd7, where the solution was to hook up the subprocess's stdin to /dev/null. I believe we need to do the same thing here, where we invoke the command for the convert plugin.
sampsyo
added
bug
bugs that are confirmed and actionable
and removed
needinfo
We need more details or follow-up from the filer before this can be tagged "bug" or "feature."
labels
Mar 22, 2017
sampsyo
changed the title
beets sometimes breaks enter key
convert: Close stdin for ffmpeg subprocesses
Mar 22, 2017
Problem
Sometimes when running multiple consecutive beets commands, stdio gets confused and the enter key stops working. Seems to happen particularly often with the convert plugin, but I have also observed it when importing.
Steps to reproduce:
beet convert -a foo
, just hit enter in the confirmation promptbeet convert -a bar
, hit enter in the confirmation promptreset
Setup
My configuration (output of
beet config
) is:The text was updated successfully, but these errors were encountered: