jackaudio / jack2

jack2 codebase
GNU General Public License v2.0
2.19k stars 373 forks source link

MaxMSP won't open while Jack Server is active. #719

Open marijncin opened 3 years ago

marijncin commented 3 years ago

Hi, I have a very specific problem.

I am using Jack Audio Connection Kit in combination with MaxMSP Platform: Windows 10:

My setup I have ad_asio JackRouter selected as the driver in MaxMSP. MaxMSP remembers it's last used driver. Meaning that If I start Jack first, it will default to ad_asio JackRouter.

Either 1 of these things happens: 1- Max never starts 3- Max starts right after I close down the Jack server (like it somehow blocks the app from starting) 3- Max starts up and crashes within a second.

Most often, it does not launch at all.


Furtermore:

What would cause an app to not launch, or crash?

Jack version 1.9.17 (latest), including JackRouter optional installer. I also tested it on an older version (1.9.11), and it has the same results.

Steps to reproduce: 1: Install Jack 2: Install MaxMSP 3: Open Maxmsp and set to jackrouter 4: reopen maxmsp 5: it may or may not load

falkTX commented 3 years ago

Then don't use JACK-Router, it is optional for a reason. There were a few reports like this before, but uninstalling JACK-Router was more difficult before. If you uninstall JACK and install again without JACK-Router, does Max work again?

vichug commented 3 years ago

yo, i don't know a lot about window 10 or even Jack, but for the max part : you may try to thrash your max preferences (it's easy and mostly harmless, see htere https://www.youtube.com/watch?v=t5CVB6gRMxI ) it has a very small chance to solve your problem

marijncin commented 3 years ago

Then don't use JACK-Router, it is optional for a reason. There were a few reports like this before, but uninstalling JACK-Router was more difficult before. If you uninstall JACK and install again without JACK-Router, does Max work again?

Yes, max will work without Jack-Router. However, there is no way to make native jack connections in max. Not that I know about. That would be ideal.

marijncin commented 3 years ago

yo, i don't know a lot about window 10 or even Jack, but for the max part : you may try to thrash your max preferences (it's easy and mostly harmless, see htere https://www.youtube.com/watch?v=t5CVB6gRMxI ) it has a very small chance to solve your problem

Thank you, but this does not really work. Even if it worked it would be a pain to have to delete it every time.

falkTX commented 3 years ago

If it does not support JACK natively and hangs with JACK-Router, the only other possible way would be a virtual soundcard I think. But I am not quite sure if that is really possible, just in theory.

I would imagine something like... MaxMSP -> virtual soundcard -> some jack client that can read from soundcards -> JACK.

Is there an audio plugin that works on windows and can read from a soundcard and give it to the host? Carla Plugin Host working in multi-client mode could load such plugin to do that.

This would basically be doing the same as JACK-Router does, just with a few more steps.

marijncin commented 3 years ago

If it does not support JACK natively and hangs with JACK-Router, the only other possible way would be a virtual soundcard I think. But I am not quite sure if that is really possible, just in theory.

I would imagine something like... MaxMSP -> virtual soundcard -> some jack client that can read from soundcards -> JACK.

Is there an audio plugin that works on windows and can read from a soundcard and give it to the host? Carla Plugin Host working in multi-client mode could load such plugin to do that.

This would basically be doing the same as JACK-Router does, just with a few more steps.

Thank you for the tip. I will look into it. The strange part is this: I tested it on multiple computers. on some of them, max starts as expected. Others it does not. Could hardware have an effect on the behavior of JackRouter? or conflicting drivers maybe?

marijncin commented 3 years ago

Then don't use JACK-Router, it is optional for a reason. There were a few reports like this before, but uninstalling JACK-Router was more difficult before. If you uninstall JACK and install again without JACK-Router, does Max work again?

I recently discovered that it will only crash with an external soundcard.

JackRouter + max works fine when:

This is the card I would like to use: https://www.digigram.com/production-and-sound-cards/lx-ip/

MaxMSP crashes when:

When I try this card with the dedicated asio driver, Jack gives me this: "Card already in use" . The is no other software running on my PC. I also de-installed ASIO4ALL to see if it would come available, but the error persists.

How can the hardware provoke a crash like that?