-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media > portaudio (standard), crashes on Windows 64 #2207
Comments
what other input options you have? |
does it also crash if you select "Microphone Array" ? EDIT: does it also crash if you disable the inputs? (un-tick the check-box for the "Input Devices") |
Yes, same behaviour when trying the above, PD just waits a sec, then closes. I ran from the command line but not seeing anything obvious in the output, perhaps some debug/log flags might give a hint as it tries to start portaudio system, just an idea. I presume PD comes with portaudio linked in, and it isn't looking for anything external to what is shipped with PD. |
open a "CMD" terminal on Pd's
(your path my differ from my " post the content of the terminal here after the crash. |
i'm confused by this. Pd has portaudio built in. What do you mean by "isn't looking for anything external" ? do you have some audio driver we are not aware? also: in your last pic above from comment #2207 (comment) your soundcards does not have the "WASAPI" or "ASIO" prepended to their names. See above how my soundcards are listed in the pic. i'm confused. |
I guess the GUI omits the backend name if there is only a single backend. "MME" has been removed from the portaudio API because it is really the same as "MMIO". Since @LamptonWorm apparently doesn't have any ASIO drivers installed, they are left with only the new WASAPI backend. I have a Windows machine without ASIO drivers lying around. Will give it a try. |
@Spacechild1 i have another Win11 instance without ASIO drivers in it and can confirm that " |
Thanks for double-checking! I just compiled Pd without ASIO support (i.e. only WASAPI) and I also get @LamptonWorm Where/how did you get Pd? This doesn't seem like an official build... |
Hi all, I just mentioned portaudio in case anything external to PD was needed, sounds like it isn't so all good. Ok, output from command line... everything after "verbose(4): MIDI output (Microsoft MIDI Mapper) opened." appears when I click portaudio in the menu, then it all closes. I got this version from here, https://msp.ucsd.edu/software.html For info, other audio applications are showing more device options. For example in Reaper.. Cheers, |
@LamptonWorm Could it be that your screenshots actually show the MMIO backend? Then it explains why there's no backend names. Reading your issue description more closely, it seems as if you get the crash as seens as you select the portaudio backend, so you don't ever see the dialog. Is that correct? Now, Pd 0.51-4 actually uses the portaudio API by default. What's your current default audio API when you open Pd? Does the crash only happen when DSP is on or also when DSP is switched off? |
That makes sense. Just to confirm, PD starts up without issue but is defaulting to MMIO (see below). It is only on changing this in the menu that PD closes. The issue happens with DSP on or off. So on PD start, I see - If useful, this flashes up really quickly on PD start (turns out this is "Steinberg Generic Lower Latency ASIO" panel trying to start. I removed it in case it was getting in the way, but I still get the same behaviour when I select portaudio in the menu, so it didn't change anything). |
That what I was going to suggest as a next step :) It seems like you have at one point switched to MMIO and saved the audio settings. (Or you still had MMIO saved as default API from a previous Pd version.) I remember some issues when switching to/from MMIO, although I cannot reproduce it on my machine. Anyway, the MMIO should not really be used anymore. |
I fail to see if there's something we can do to fix Pd in anyway as I had always used MMIO and ASIO and never had such a problem. My setup preferences had always been MMIO as my ASIO sound card is externally powered and I don't use it all the time. @Spacechild1 why did @LamptonWorm needed to explicitly pass @LamptonWorm do you use the zip package or you installed Pd? why you need to start Pd from a terminal? scratching my head here. |
Because for @LamptonWorm the crash happens when switching from MMIO to portaudio. The
Otherwise you can't pass command line options :) |
Why? what can we do about it? EDIT: @Spacechild1 I have a clean Win11 installation with latest Pd. I just save my prefs to use MMIO. I restarted the app. I can change without issues to |
@LamptonWorm can you open
and post a screenshot like this one? |
Hi, I can re-create the issue here by going back to MMIO. I only used console to force pulse option, this proves no issue with pulseaudio itself once selected/running. I am using the zip and not the installer. On the left are my settings with MMIO (which breaks when I select pulseaudio from the menu) Note the audioapi difference. Cheers, |
@LamptonWorm your reg settings seems good. Since we can't reproduce on our machines is a bit hard for us. If you can help us with a GDB backtrace we might get a better understanding of whats happening. You don't have to do it if you don't want to. If you do, follow the steps below. I had compiled https://github.com/pure-data/pure-data/releases/tag/0.54-1 with debug symbols. It has bigger sized (msys2 installation might take around 2GB but you can later uninstall it.) install msys2When done, click Finish. close any msys2 opened window, got to the startup menu and open MSYS2 MSYS shell To update all packages run the following command:
In some cases, certain core packages will get updated and pacman will prompt you to close all terminals:
After confirming you need to start a new terminal and run the update again ( run close the MSYS2 shell install compiler and gdbgot to the startup menu and open MSYS2 MINGW64 shell and do:
close the terminal. get pd-0.54-1 with debug symbolsdownload: https://nc.nubegris.com.ar/index.php/s/YTo3YTXYmEBKXEL and extract to some folder. get the crash debugopen a "windows file explorer" on your extracted folder and open it. open MSYS2 MINGW64 shell and do
on the "windows file explorer" window click on the you'll get now in the shell:
hit enter do this commands:
do the changes in audio settings the leads you to get the crash after a crash, type paste the content of the terminal and post it. to exit (gdb) type |
would you mind very much replacing the screenshot with a (complete) paste of the text? |
@LamptonWorm thanks. Yes in the next post please copy the text from the GDB terminal and paste it in the post. but this time do command ' :) |
Sure, no problem.
|
@LamptonWorm thanks. I keep forgetting a lot of stuff. I might had compiled Pd without the new please do same as above but:
and then hit |
That's ok, here is the output.
|
unfortunately this doesn't give us much more information. (gdb) set backtrace limit 0
(gdb) thread apply all bt
(gdb) run
(gdb) bt (hopefully this will give us a full backtrace (without having to repeatedly run |
the crash is next to come when soundcards are not listed with anyway we'll surely appreciate @LamptonWorm next backtrace. |
i might sound dumb, but excluding soundcards based on their name sounds very much like trying to work around the symptoms rather than solving the cause. (i'd rather have the latter) |
true, but (i think) we get the backtrace once we are accessing something that is not there. not before. but the backtrace is needed anyway. |
Hi, the commands in sequence above didn't show more data, however if I debug pd and run "thread apply all bt" after the crash, I get more info. I added "info threads" in also. Hopefully this is useful..
|
Hi, when I try to select portaudio Pd crashes.
To reproduce
System info
Media > old MMIO system, is working.
Cheers,
The text was updated successfully, but these errors were encountered: