Duh, I mailed these two to myself instead of the csound list. ---------- Forwarded Message ---------- Subject: Re: Portaudio segfault Date: Thursday 17 April 2008 From: Felipe Sateler To: Felipe Sateler On Saturday 22 March 2008 16:32:22 you wrote: > On Saturday 22 March 2008 13:51:39 you wrote: > > On Saturday 22 March 2008 13:21:35 victor wrote: > > > cb.py does not crash here on Windows with the latest CVS. I suspect it > > > does not > > > crash elsewhere as > > > > Segfaults with latest cvs here (linux), and with 5.08. > > This seems to be a different problem. I'm getting a segfault every time I > try to do -odac. The portaudio module segfault when it can't acquire the > soundcard (the alsa module fails as well, but doesn't crash). > > The problem is on InOut/rtpa.c, around line 169: > dev_info = (PaDeviceInfo*) Pa_GetDeviceInfo((PaDeviceIndex) devNum); > csound->Message(csound, Str("PortAudio: selected %s device '%s'\n"), > (play ? Str("output") : Str("input")), > dev_info->name); > > When portaudio can't get the device info, dev_info will be NULL. Thus, > dev_info->name will crash. I suppose the correct action wouold be to detect > this and fail? Ping? How should this be handled? csound->Die("Could not acquire soundcard?")? Is there a way to get the latest error from portaudio? -- Felipe Sateler ------------------------------------------------------- -- Felipe Sateler