-
Notifications
You must be signed in to change notification settings - Fork 254
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
Pd-0.52-1 on Windows11 crashes with ASIO #1532
Comments
Hi,
If you open the windows registry and navigate to:
What is the value of that key? |
Good. (see below: [1])
Good.
Oops (see below: [1])
That looks good. [1]: I'm assuming that Pd less than 0.52-1 worked on Win11?
|
I'm assuming that Pd less than 0.52-1 worked on Win11? yes |
I think (only think) that 0.52-1 should be Ok with Win11 given that earlier Pds worked on your system.
|
Can you confirm that C:\Program Files\Pd\bin\pd.exe exist on your system? yes If it does exist: Double-click on it: Pd should at least start: No |
Open the file explorer and navigate to On the location bar click over Type Does Pd starts? |
this way it works! How can I make it work by just clicking on the icon app? |
It actually works even without the -noprefs flag |
??? do you want to say that "it now works, regardless of how you start Pd? (probably because you started Pd with or something else? can this issue now be closed? |
I believe @Drugo23 only said that Pd can be opened via the terminal, with or without the OTOH I cannot reproduce here: after installing Pd 0.52-1 on a brand new Windows11 computer, I can open Pd with both ways (clicking the app icon / opening patches though the file explorer). |
If I install pd 0.52-1 I am just able to open it with cmd and typing pd -noprefs. I think this might be related with the -noprefs flag. That needs to be loaded as startup flag to be able to open pd. |
I guess you have corrupted preference settings in your registry then. Try to open Pd with -noprefs and then save all settings. After that you might be able to open Pd normally again. Otherwise, try to wipe the existing Pd preferences from the registry. |
The things is that now I can only only use pd with -noprefs. If I put any other flag as startup I am not able to open pd. I have also tried to delete REG_SZ and reinstalled pd but no luck. |
Try:
navigate to Pd/file/preferences/forgetall quit Pd start Pd via the app icon. |
i think there are some confusions in the report, which i would like to resolve... going back to the original report on top of this page, @Drugo23 said:
the screenshot posted relates directly to the opened the rest of the description seems to indicate that Pd always fails to open (and I think everybody who tried to investigate assumed that Pd was opened "just so" without success).
however, we have no error message for this case. could you provide one? also, i still do not understand the @Ant1r tried to clarify it with the (plausible) description that:
however, @Drugo23 did not confirm this so far and instead said (later):
so what is the situation? to me these are different kinds of trying to start Pd and i'm lost which errors you get for which...
where do you put the "flag as startup"? what is the error message you get?
re-installing Pd does not wipe any preferences, so if the problem is indeed related to that, so i understand that re-installing wouldn't actually help.
|
To export the Pd registry to a text file: open the registry and navigate to
Right-click on the Then (probably zip it) and drop the file in your next post so we can get it. |
0.52-1 downloaded here: http://msp.ucsd.edu/software.html
none
I can't find this directory
I am not getting errors anymore, pd just doesn't start.
If I just add -stderr pd doesn't start if I add -noprefs -stderr pd starts and nothing comes out on CLI
|
Your option 1:You could try
option 2:If you want a sane fresh-up (I think you should opt this) do the following:
Also sane: I recommend you to use try to locate and wipe all externals not in re-install all externals. Hope this helps you. PS: as of "how the registry got corrupted?": not sure. It can happen. I never expedience it myself but there were 2 or 3 reports of such thing in the past (6?) years. PS2: Is your Win11 an update of Win10 or is it a plain new Win11 machine? |
On 1/3/22 15:05, Drugo23 wrote:
0.52-1 downloaded here:http://msp.ucsd.edu/software.html
this does not download anything.
please provide a link to the download itself (so we know exactly which
file you are using (the webpage you gave provides 4 files containing
binaries for Windows - i'd like to know which)
|
I followed the Option 2 and everything seems to work properly. Thanks!
it is an update
http://msp.ucsd.edu/Software/pd-0.52-1.windows-installer.exe |
so can we close this ticket? |
Hi, I'm sorry to bother again but I think all of this might be related to the -asio flag. I have tested other flags and everything works fine but if I put -asio as startup or on cmd line pd doesn't start. |
Why would you put it on the cmdline or in the startup flags (as opposed to just selecting ASIO via the media menu and then saving the preferences)?
|
I didn't think out that..! I actually just tested it and pd crashes after selecting (ASIO) portaudio with DSP off. If I turn on the DSP with standard (MMIO) and then I select (ASIO) portaudio I get this error:
|
I suspect one of the ASIO drivers is misbehaving. Does ASIO work in other audio programs? Which ASIO drivers do you have installed on your system? If you don't have a DAW installed, just quickly download and install REAPER (www.reaper.fm). |
As a side note: the crash when selecting ASIO might also explain why your preferences got corrupted. |
At this point, the only thing we can do is run Pd in a debugger to find out where it crashes when you select ASIO. Unfortunately, on Windows this is not really trivial because we would need to setup Msys2. Are you ready to put in some work? |
Great! First, download and install Msys2 as described in https://www.msys2.org/ and tell me when you're done. |
Hi, I have installed Msys2 but to make sure I did everything right I will tell you the steps I did:
is everything correct? (steps 7-8-9 are not super clear to me) |
Cool! Now open the Msys2 MINGW64 shell and install the GCC toolchain: |
Ok that's what I get: GNU gdb (GDB) 11.1 |
Great! Now run Pd in gdb like this:
(If it can't find Then in the When you select ASIO and Pd crashes, type |
Hi, it looks like MINGW64 cannot find pd.exe
I am not sure what do you mean by that but I have also tried: |
open the windows file explorer and navigate to open msys2 MinGW64 shell and type run As @Spacechild1 said: Then in the (gdb) prompt, type When you select ASIO and Pd crashes, type |
ok! I think I made it. |
@Drugo23 if you get results from gdb and all went good please try the following. (i see it went good as I type this :) I'm uploading here a pd.dll with all debug symbols (the file is larger in size). It comes from a build I just did from http://msp.ucsd.edu/Software/pd-0.52-1.src.tar.gz This will print more useful debug info. to use it go to (in windows explorer) to quit Pd and mingw and then do the replace. Redo all the gdb thing with the new when you get the crash type PS: you can later (not yet if we need more tests) delete |
@Drugo23 Thanks, this is very helpful! I had a quick look at your output and it seems like ASIO drivers are loaded before COM is initialized ( |
@Lucarda I'm not able to open pd with your method. that's what I get: |
@Spacechild1 if that might be helpful in italian it means: "Coinitialize is not been called" |
Oh yeah. the give me 5 minutes. :) |
@Drugo23 Grazie, ma ho studiato l'italiano in scuola :-) |
@Drugo23 delete the large size here you can download a zip version of Pd: https://nc.nubegris.com.ar/index.php/s/NKmCRQmEE6F7qok extract it to the desktop (or anywhere you like). Do a gdb with this version. open the mingw64 shell and lets see what you get. :) |
@Lucarda here you go: @Spacechild1 bravo! |
I forgot about this..but I don't think it really changes anything: |
Thanks. just to confirm: you get this (crash) only when you tried to select the ASIO driver? |
False alarm, COM is initialized properly.
The stack trace doesn't make any sense. |
Yes. When I select ASIO pd partially freeze. For example I can open audio preferences but I cannot open audio test. |
I know this is very annoying, but can you try to uninstall your ASIO drivers to see which one causes the crashes? Alternatively, can you take another Windows machine and consecutively install the ASIO drivers from your current machine until you get the crash? Personally, I never had issues with "ASIO4All" and "JackRouter", so you might start with the other two. |
found it! the one it was causing the issue was JACK. without that I am able to select ASIO |
That's strange. JackRouter doesn't crash Pd 0.52 for me, but then again I'm still on Windows 7/10. Also, I don't know what could have possible changed between Pd 0.51 and Pd 0.52 that causes this issue... |
I’ve unistalled Jack and reinstalled the last version. Now Pd doesn’t crash anymore, it might be that there was an old version of jack installed. |
Ok, cool! I think I can close this now. |
In retrospect, this whole issue sounds a lot like jackaudio/jack2#380. I just remembered it now... |
I am not able to open Pd 0.52-1 on a Windows 11 PC. If I try to open a .pd file I get this message:
The text was updated successfully, but these errors were encountered: