#396 Pd leaks file-handles with alsa


Pd-0.40 on linux with ALSA severly leaks file-handles when starting/stopping the DSP.
whenever you restart the DSP the /dev/snd/control* devices are opened anew, but none are closed.
this eventually leads to a "too many open files" error, which will keep you from saving your patches (and restarting the DSP)

this appears with Pd-0.40-2
it has been fixed in Pd-0.41 and above
i am just reporting the bug for the sake of completeness.


  • IOhannes m zmölnig

    • status: open --> closed-fixed
  • IOhannes m zmölnig

    i found that this bug is also present in Pd-extended-0.40-3

    since this is the currently the most recent release of Pd-extended i re-open this bug;

    i would suggest releasing PdX-0.41 asap and close the bug again :-)

  • IOhannes m zmölnig

    • labels: 680482 --> pd-extended
    • assigned_to: nobody --> eighthave
    • status: closed-fixed --> open-fixed
  • Hans-Christoph Steiner

    I don't quite understand, is this bug present in Pd-extended 0.41.4?

  • IOhannes m zmölnig

    i don't know as i haven't tested it (no time for beta-testing PdX; i just happened to come across a running installation of PdX-0.40 and i thought i check whether the bug is present)

    since the bug has been fixed in Pd-0.41, chances are high that it will also be fixed in PdX-0.41 (but of course you never know)

    checking is easy:
    [metro 1000] -> [0, 1( -> [; pd dsp $1(

    then run periodically "lsof -p <pidofpd> | grep -c snd"

  • Hans-Christoph Steiner

    DOesn't happen on Ubuntu/Jaunty/i386 using Pd version 0.41.4-extended-20090501 so I am closing this.

  • Hans-Christoph Steiner

    • status: open-fixed --> closed-fixed


Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks