[Bug 436990] Re: audacity crashed with SIGSEGV in DevicePrefs::GetDefaultPlayDevice()

David Henningsson launchpad.web at epost.diwic.se
Sat Sep 26 06:26:01 UTC 2009


In DevicePrefs::GetDefaultPlayDevice:

   const PaDeviceInfo* devinfo = Pa_GetDeviceInfo(apiinfo->defaultOutputDevice);
   wxString name(devinfo->name, wxConvLocal);

Pa_GetDeviceInfo returns null, so devinfo->name crashes. Devinfo can be
null if the apiinfo does not have a default output device. So a simple
fix to avoid a crash could be to return an empty wxString in this case.

The background cause for this error could be that
DevicePrefs::GetNamesAndLabels() only adds names and labels if there are
devices. Could this lead to a mismatch between
mHost->GetCurrentSelection() and portaudio hostapi indices?


** Changed in: audacity (Ubuntu)
     Assignee: (unassigned) => David Henningsson (diwic)

** Changed in: audacity (Ubuntu)
       Status: New => In Progress

-- 
audacity crashed with SIGSEGV in DevicePrefs::GetDefaultPlayDevice()
https://bugs.launchpad.net/bugs/436990
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list