Menu

#441 "pd -rt" crashes if pd-watchdog cannot be found

closed-accepted
puredata (385)
7
2012-10-04
2011-11-16
No

i'm using Pd-0.43 (today's git) on linux (debian wheezy/sid which comes with gcc-4.6.1)

if i start Pd in "realtime" mode (which is the default on linux) and it cannot find the "pd-watchdog" binary, Pd quits.

i stumbled upon this bug, since i had no link from Pd/src/ to Pd/bin/, and started Pd from it's source directory.
while i agree that my setup was somewhat broken as the pd-watchdog should have been in place, i strongly believe that Pd must not crash in these circumstances. it probably should drop realtime execution if it cannot find pd-watchdog, rather than crash.

zmoelnig@ferrari:~/src/git/pure-data$ ls bin/pd-watchdog
ls: cannot access bin/pd-watchdog: No such file or directory
zmoelnig@ferrari:~/src/git/pure-data$ ./src/pd
priority 6 scheduling enabled.
priority 8 scheduling enabled.
sh: ./bin/pd-watchdog: No such file or directory
pd: watchdog process died
zmoelnig@ferrari:~/src/git/pure-data$ pdsend errorname: >>error writing "sock8": broken pipe<<

zmoelnig@ferrari:~/src/git/pure-data$

Discussion

  • IOhannes m zmölnig

    • labels: 680482 --> puredata
     
  • IOhannes m zmölnig

    i attached a small patch, that checks whether Pd can find a file named "pd-watchdog", and if not, disabled real-time mode.

     
  • Miller Puckette

    Miller Puckette - 2012-06-30
    • status: open --> pending-accepted
     
  • Miller Puckette

    Miller Puckette - 2012-06-30

    There should be some way to get git to check for trailing whitespace which I seem always
    to get warned of when applying your patches...

     
  • IOhannes m zmölnig

    • status: pending-accepted --> closed-accepted
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB