Windows: JACK 1.9.11_64, if installed on the system, causes Mixxx 2.2.4 64-bit to crash on startup.
Running on Windows 10 64-bit 20.04 repro: Install latest Jack 64-bit release for Windows Install latest Mixxx 64-bit release for Windows Observe: Mixxx crashes on startup. Uninstall JACK Observe: Mixxx no longer crashes on startup. The crash occurs during PortAudio initialisation in Mixxx, presumably while loading the ASIO driver provided by JACK. It doesn't matter whether JACK server is running or not.
A similar looking issue has occurred in FlexASIO version 1.4. It was remedied in version 1.5. PortAudio was chain loaded by FlexASIO, but because the DLL basename matched an already loaded module, but was not compatible, FlexASIO would crash. Is it plausible that the mechanism is similar at all? Corresponding issue https://github.com/dechamps/FlexASIO/issues/47
Potentially related issues: https://github.com/rodrigodzf/Jack-Audio-For-Unity/issues/15 https://github.com/jackaudio/jack2/issues/393 https://github.com/jackaudio/jack2/issues/275 https://github.com/jackaudio/jack2/issues/332 https://github.com/jackaudio/jack2/issues/380 https://github.com/jackaudio/jack2/issues/351 https://github.com/corrados/jamulus/issues/93
It is actually completely untenable that a software causes a multitude of other applications to break so rampantly and with no connection obvious to the user. In my opinion, release should be nuked or only distributed with a visible warning.
I did not notice this was so serious, thanks for bring that up (again). So JackRouter (the ASIO bridge) is a problem on Windows, I guess for the upcoming binary releases it will be better to not install/ship-with it.
I just removed the (old) macos and windows links from the jackaudio.org download page, so, thanks.
Updated binaries are coming later, I am on the final steps for setting up the CI/CD.
Let me know if i can help with anything at all! I'm thinking a NSIS installer can be built on Linux (though i never tried) so would NSIS script be a relevant task?
JackRouter is useful. I'll try to build the master and see whether the issue has potentially been resolved or whether i can fix it.
I have used InnoSetup for another project, which seems very simple and easy to follow, it does pretty much all that is needed without complications. So I think I will go with those.
Regarding JackRouter, help is appreciated for sure. I dont even know how to build it, but @sletz will have some ideas :)
NSIS is very simple, open-source, and builds on Linux. please use NSIS :+1:
Here is an example we are using for the LookingGlass project which is used by a CI builder on a Linux system cross compiling for Windows. https://github.com/gnif/LookingGlass/blob/master/host/platform/Windows/installer.nsi
Maybe I've misunderstand what's happening, but I thought you had to register the JackRouter ASIO driver for it to work? Maybe mixx doesn't crash if you run the following command?
regsvr32 /U "C:\Program Files (x86)\Jack v1.9.8\64bits\JackRouter.dll"
New builds now available. See https://github.com/jackaudio/jack2-releases/releases
Tested a bit with Carla in a VM, that works well.

Bitwig also works, Ardour has a few issues. Zrythm developer will be doing testing today.
@siana if you could please uninstall the previous jack version and install the one from https://github.com/jackaudio/jack2-releases/releases, that would be very appreciated.
qjackctl needs some tweaks so that it works better in windows, but at least we have things running now.
I've just gone through a long debug session with a guy where portaudio crashed. It would probably be good to ensure this patch is attached (or at least somehow manage to compile portaudio with NDEBUG):
--- a/src/hostapi/wdmks/pa_win_wdmks.c~ 2020-09-12 03:23:02.000000000 +0200
+++ b/src/hostapi/wdmks/pa_win_wdmks.c 2020-09-13 12:03:40.279668210 +0200
@@ -1058,6 +1058,5 @@
}
PA_DEBUG(("FindStartConnectionFrom: returning NULL\n"));
- assert(FALSE);
return 0;
}
Also see my report to the portaudio list: https://listserv.cuit.columbia.edu/scripts/wa.exe?A2=PORTAUDIO;7120129e.2009B&S=a
Good work by the way. Finally.
s/attached/applied/
-DNDEBUG is set for these builds, so assertions like that are not triggered.
see https://github.com/DISTRHO/PawPaw/blob/master/setup/env.sh#L47
Good. Have you tested it? Does it still work if you insert "assert(0)" into the top of that function?
I did not test it, I do not know when that function is triggered. But the rule of assert being removed for builds with NDEBUG set tells me that it is not something to worry about.
Because I tried to add -DNDEBUG to CFLAGS, and it didn't work. I had to remove the assert() line.
That function should be triggered every time jack starts up if you compile portaudio with wdmks included in the "--with-winapi=" list. It is also triggered in qjackctl when you press the "Interface" combo box in Setup.
Tried where and how? you need to have some compiler optimizations enabled too I think. also depends if the project accepts C/XXFLAGS.
Anyway, I saw no crashes regarding that. This qjackctl is not able to show the list of audio devices on windows, was that working at some point?
Test it like this:
[kjetil@ttlush portaudio]$ diff -u src/hostapi/wdmks/pa_win_wdmks.c~ src/hostapi/wdmks/pa_win_wdmks.c
--- src/hostapi/wdmks/pa_win_wdmks.c~ 2020-09-12 03:23:02.000000000 +0200
+++ src/hostapi/wdmks/pa_win_wdmks.c 2020-09-13 18:00:34.705336074 +0200
@@ -1047,6 +1047,9 @@
unsigned i;
const KSTOPOLOGY_CONNECTION* connections = (const KSTOPOLOGY_CONNECTION*)(filter->connections + 1);
PA_DEBUG(("FindStartConnectionFrom: Startpin %u, Checking %u connections...\n", startPin, filter->connections->Count));
+
+ assert(0);
+
for (i = 0; i < filter->connections->Count; ++i)
{
const KSTOPOLOGY_CONNECTION* pConn = connections + i;
Anyway, I saw no crashes regarding that.
I don't see any crashes either (when using an unpatched portaudio library), but for one Radium user it crashes every time. Removing that assert call fixed it. Adding NDEBUG didn't make a difference, don't know why, didn't really investigate either, but I reported it to the portaudio list.
This qjackctl is not able to show the list of audio devices on windows, was that working at some point?
Yes, it's always been working as far as I know.
This qjackctl is not able to show the list of audio devices on windows, was that working at some point?
Yes, it's always been working as far as I know.
well, it does not on the current qjackctl build. let me check if portaudio got disabled somehow.
Also, this crash is not a single user problem. There are several hits when googling the crash. Both users of Python and Ardour have experienced crash because of that assertion in portaudio. It happens when probing soundcard interfaces.
Here's my build of qjackctl: http://users.notam02.no/~kjetism/qjackctl.exe It should display all interfaces.