jackaudio / jack2

jack2 codebase
GNU General Public License v2.0
2.16k stars 371 forks source link

Can not start the server on Windows 10 #779

Open ghmechamania opened 2 years ago

ghmechamania commented 2 years ago

Hi,

I use Windows 10 and Jack 1.9.19 (windows install version)

When trying to start the server I get this message:

01:54:25.811 Statistics reset. 01:56:38.834 JACK is starting... 01:56:38.834 ./jackd.exe -S -X winmme -dportaudio 01:56:38.871 JACK was started with PID=8156. jackdmp 1.9.19 Copyright 2001-2005 Paul Davis and others. Copyright 2004-2016 Grame. Copyright 2016-2021 Filipe Coelho. jackdmp comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details Drivers/internals found in : C:\Program Files\JACK2 Drivers/internals found in : C:\Program Files\JACK2 JACK server starting in realtime mode with priority 10 self-connect-mode is "Don't restrict self connect requests" Cannot connect to named pipe after wait = \.\pipe\server_jack_default_0 err = 2 Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Can't open default PortAudio device jack_deactivate called with a NULL client jack_deactivate called with a NULL client jack_client_close called with a NULL client Cannot initialize driver JackServer::Open failed with -1 Failed to open server Open error: is JACK server running? 01:56:39.380 JACK was stopped 01:56:40.883 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.

Is this a bug? Or am I doing something wrong?

falkTX commented 2 years ago

pick a device/interface instead of using the default.

ghmechamania commented 2 years ago

I tryd several interfaces. Like this ASIO one:

09:59:09.221 JACK is starting... 09:59:09.222 ./jackd.exe -S -X winmme -v -dportaudio -d"ASIO::ASIO 2.0 - ESI GIGAPort HD" -p1024 09:59:09.226 JACK was started with PID=1616. jackdmp 1.9.19 Copyright 2001-2005 Paul Davis and others. Copyright 2004-2016 Grame. Copyright 2016-2021 Filipe Coelho. jackdmp comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details Drivers/internals found in : C:\Program Files\JACK2 Drivers/internals found in : C:\Program Files\JACK2 JACK server starting in realtime mode with priority 10 self-connect-mode is "Don't restrict self connect requests" Jack: JackWinThread::StartImp : create non RT thread Jack: JackWinThread::ThreadHandler : start Jack: Initializing PortAudio... Cannot connect to named pipe after wait = \.\pipe\server_jack_default_0 err = 2 Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Jack: JackPortAudioDriver::Open nframes = 1024 in = 0 out = 0 capture name = ASIO::ASIO 2.0 - ESI GIGAPort HD playback name = ASIO::ASIO 2.0 - ESI GIGAPort HD samplerate = 44100 Can't open ASIO::ASIO 2.0 - ESI GIGAPort HD, PortAudio will use default input device. Can't open default PortAudio device Jack: Terminate PortAudio... jack_deactivate called with a NULL client jack_deactivate called with a NULL client jack_client_close called with a NULL client Jack: ~JackDriver Cannot initialize driver Jack: no message buffer overruns Jack: JackWinThread::Stop Jack: JackWinThread::ThreadHandler : exit JackServer::Open failed with -1 Jack: Succeeded in unlocking 107341340 byte memory area Jack: JackShmMem::delete size = 0 index = 0 Jack: ~JackDriver Jack: Succeeded in unlocking 1196 byte memory area Jack: JackShmMem::delete size = 0 index = 1 Jack: Cleaning up shared memory Jack: Cleaning up files Jack: Unregistering server `default' Failed to open server Open error: is JACK server running? 09:59:09.736 JACK was stopped 09:59:11.272 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.

But none of them work.

kmatheussen commented 2 years ago

Hi, have you tried without "-p1024"?

ghmechamania commented 2 years ago

I use QJackCtl, and used several buffer sizes. But I finally found one interface that works. It has many inputs and outputs, while all other interface I could choose from have only outputs or inputs (I think)> Could that be the issue? That only devices that have both inputs and outputs will work?

kmatheussen commented 2 years ago

Yes, that could be the reason, but if you have a device that has only outputs it might work to set "playback only" under setup->advanced->Audio. Also, the best way to make a device work is to set the buffer size to "(default)", then the device should pick one automatically for you that works.

ghmechamania commented 2 years ago

Yes, that did the trick! Thx a lot. So I can connect to my 8 channel output interface now. But I would also like to input from headset microphone. Is that possible? I see I can specify input and output devices separately in the advance tab. But the output is ASIO and microphone input is a Windows interface. It says:

Pa_OpenStream error = Illegal combination of I/O devices

So I guess that is not possible. Is there a work arround possible for this?

Reaper10 commented 2 years ago

Screenshot 2021-07-31 201446

chairbender commented 2 years ago

In case it helps...I had this issue (from the original comment) as well, specifically with ASIO4ALL as the interface. I solved it by going to the Advanced tab and changing Start Delay from 2 seconds to 10 seconds. It seems ASIO4ALL needs some more time to start up than the default 2 seconds.

EDIT: NVM, seemed like it fixed it yesterday, but today it is again not working despite this fix...

aldocisneros commented 2 years ago

@chairbender 's fix has been working for me for a while now. I'm using a Behringer UMC404HD interface on windows 11, and have been running Jack (QjackCTL) without problems for a while now. In my case, I just needed to increase the delay time from 2 to 3 seconds.

https://github.com/jackaudio/jack2/issues/779#issuecomment-1079842860

ariutti commented 1 year ago

hi guys , I am also experiencing some abnormal behavior with jack. I am on Windows 10 Pro and have jack 1.9.21 installed. I have a Focusrite Scarlett 2i2 sound card connected USB to the PC.

When I try to start the server from QjackCtl I get an error

01

everything broke as soon as I tried to run the folliwing command from terminal (convinced that I could start jack in "manual" mode):

jackd.exe -S -X winmme -dportaudio -d"ASIO::Focusrite USB ASIO" -r48000 -p512

The thing I am not understanding is the following behavior: now if I run the same command I get this output

C:\Program Files\JACK2>jackd.exe -S -X winmme -dportaudio -d"ASIO::Focusrite USB ASIO" -r48000 -p512
jackdmp 1.9.21
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2022 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
Drivers/internals found in : C:\Program Files\JACK2
Drivers/internals found in : C:\Program Files\JACK2
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
Cannot connect to named pipe after wait = \\.\pipe\server_jack_default_0 err = 2
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Open error: is JACK server running?
jack_deactivate called with a NULL client
jack_deactivate called with a NULL client
jack_client_close called with a NULL client

but then, when from QjackCtl I press the start button, I no longer get the same error noted earlier.

02

How can I be able to get it working?

In addition, since I would like the audio jack server to start at startup to connect some applications to each other, what would be the terminal commands (to be included, in my head, within a .bat script) to use to create this setup?

Thank you so much for your support

SynthiaPayne commented 1 year ago

for JACK to work on Win10, I have had to combine the 32-bit and 64-bit versions in the Program Files\JACK2 folder. I'm not sure why, but it works.

On 10/6/2022 7:10 AM, Nicola Ariutti wrote:

hi guys , I am also experiencing some abnormal behavior with jack. I am on Windows 10 Pro and have jack 1.9.21 installed. I have a Focusrite Scarlett 2i2 sound card connected USB to the PC.

When I try to start the server from QjackCtl I get an error

01 https://user-images.githubusercontent.com/6818509/194334227-b1970164-fc50-4d8d-91b1-d71821c30fb2.JPG

everything broke as soon as I tried to run the folliwing command from terminal (convinced that I could start jack in "manual" mode):

|jackd.exe -S -X winmme -dportaudio -d"ASIO::Focusrite USB ASIO" -r48000 -p512|

The thing I am not understanding is the following behavior: now if I run the same command I get this output

|C:\Program Files\JACK2>jackd.exe -S -X winmme -dportaudio -d"ASIO::Focusrite USB ASIO" -r48000 -p512 jackdmp 1.9.21 Copyright 2001-2005 Paul Davis and others. Copyright 2004-2016 Grame. Copyright 2016-2022 Filipe Coelho. jackdmp comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details Drivers/internals found in : C:\Program Files\JACK2 Drivers/internals found in : C:\Program Files\JACK2 JACK server starting in realtime mode with priority 10 self-connect-mode is "Don't restrict self connect requests" Cannot connect to named pipe after wait = \.\pipe\server_jack_default_0 err = 2 Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Open error: is JACK server running? jack_deactivate called with a NULL client jack_deactivate called with a NULL client jack_client_close called with a NULL client |

but then, when from QjackCtl I press the start button, I no longer get the same error noted earlier.

02 https://user-images.githubusercontent.com/6818509/194334459-07422099-b0d7-4802-b23d-f3a187d2e55c.JPG

How can I be able to get it working?

In addition, since I would like the audio jack server to start at startup to connect some applications to each other, what would be the terminal commands (to be included, in my head, within a .bat script) to use to create this setup?

Thank you so much for your support

— Reply to this email directly, view it on GitHub https://github.com/jackaudio/jack2/issues/779#issuecomment-1270122657, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVZZK2VEF7HZ5IEOMU2DXTWB3MUDANCNFSM5A44BIKA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

SynthiaPayne commented 1 year ago

also in the qjackctl Setup window - advanced tab - server prefix line  should be: jackd -S -X winmme

On 10/23/2022 10:08 AM, Synthia Cynthia Payne wrote:

for JACK to work on Win10, I have had to combine the 32-bit and 64-bit versions in the Program Files\JACK2 folder. I'm not sure why, but it works.

On 10/6/2022 7:10 AM, Nicola Ariutti wrote:

hi guys , I am also experiencing some abnormal behavior with jack. I am on Windows 10 Pro and have jack 1.9.21 installed. I have a Focusrite Scarlett 2i2 sound card connected USB to the PC.

When I try to start the server from QjackCtl I get an error

01 https://user-images.githubusercontent.com/6818509/194334227-b1970164-fc50-4d8d-91b1-d71821c30fb2.JPG

everything broke as soon as I tried to run the folliwing command from terminal (convinced that I could start jack in "manual" mode):

|jackd.exe -S -X winmme -dportaudio -d"ASIO::Focusrite USB ASIO" -r48000 -p512|

The thing I am not understanding is the following behavior: now if I run the same command I get this output

|C:\Program Files\JACK2>jackd.exe -S -X winmme -dportaudio -d"ASIO::Focusrite USB ASIO" -r48000 -p512 jackdmp 1.9.21 Copyright 2001-2005 Paul Davis and others. Copyright 2004-2016 Grame. Copyright 2016-2022 Filipe Coelho. jackdmp comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details Drivers/internals found in : C:\Program Files\JACK2 Drivers/internals found in : C:\Program Files\JACK2 JACK server starting in realtime mode with priority 10 self-connect-mode is "Don't restrict self connect requests" Cannot connect to named pipe after wait = \.\pipe\server_jack_default_0 err = 2 Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Open error: is JACK server running? jack_deactivate called with a NULL client jack_deactivate called with a NULL client jack_client_close called with a NULL client |

but then, when from QjackCtl I press the start button, I no longer get the same error noted earlier.

02 https://user-images.githubusercontent.com/6818509/194334459-07422099-b0d7-4802-b23d-f3a187d2e55c.JPG

How can I be able to get it working?

In addition, since I would like the audio jack server to start at startup to connect some applications to each other, what would be the terminal commands (to be included, in my head, within a .bat script) to use to create this setup?

Thank you so much for your support

— Reply to this email directly, view it on GitHub https://github.com/jackaudio/jack2/issues/779#issuecomment-1270122657, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVZZK2VEF7HZ5IEOMU2DXTWB3MUDANCNFSM5A44BIKA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

ariutti commented 1 year ago

Thank you @SynthiaPayne for your reply. Sorry but, what do you mean by "combining the 32-bit and 64-bit versions" in the Jack2 folder? Do you mean I have to install both the 32 and 64 bit versions and maybe merge their installation folder together? Thank you so much

SynthiaPayne commented 1 year ago

right - I merged the files. Something about the 32-bit version having files that the 64-bit version doesn't have, or that do not work. Happy to continue providing info.

On 10/28/2022 10:28 AM, Nicola Ariutti wrote:

Thank you @SynthiaPayne https://github.com/SynthiaPayne for your reply. Sorry but, what do you mean by "combining the 32-bit and 64-bit versions" in the Jack2 folder? Do you mean I have to install both the 32 and 64 bit versions and maybe merge their installation folder together? Thank you so much

— Reply to this email directly, view it on GitHub https://github.com/jackaudio/jack2/issues/779#issuecomment-1295264761, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVZZKZLY3GQZYYHK2C256LWFQENFANCNFSM5A44BIKA. You are receiving this because you were mentioned.Message ID: @.***>

aldocisneros commented 1 year ago

hi guys , I am also experiencing some abnormal behavior with jack. I am on Windows 10 Pro and have jack 1.9.21 installed. I have a Focusrite Scarlett 2i2 sound card connected USB to the PC.

When I try to start the server from QjackCtl I get an error

01

everything broke as soon as I tried to run the folliwing command from terminal (convinced that I could start jack in "manual" mode):

jackd.exe -S -X winmme -dportaudio -d"ASIO::Focusrite USB ASIO" -r48000 -p512

The thing I am not understanding is the following behavior: now if I run the same command I get this output

C:\Program Files\JACK2>jackd.exe -S -X winmme -dportaudio -d"ASIO::Focusrite USB ASIO" -r48000 -p512
jackdmp 1.9.21
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2022 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
Drivers/internals found in : C:\Program Files\JACK2
Drivers/internals found in : C:\Program Files\JACK2
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
Cannot connect to named pipe after wait = \\.\pipe\server_jack_default_0 err = 2
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Open error: is JACK server running?
jack_deactivate called with a NULL client
jack_deactivate called with a NULL client
jack_client_close called with a NULL client

but then, when from QjackCtl I press the start button, I no longer get the same error noted earlier.

02

How can I be able to get it working?

In addition, since I would like the audio jack server to start at startup to connect some applications to each other, what would be the terminal commands (to be included, in my head, within a .bat script) to use to create this setup?

Thank you so much for your support

Hey, have you tried the fix suggested in https://github.com/jackaudio/jack2/issues/779#issuecomment-1080000023

and in https://github.com/jackaudio/jack2/issues/779#issuecomment-1079842860 ?

Since changing the delay time, I've had no problems using Jack in Windows with the default installation settings. Sometimes I've had to increase the delay time from 2 to 4 or 5 seconds, but works everytime.

I'll attach a pic so you can find the option in the settings page that you need to change, just keep increasing the delay by 1 second until you get it to work. Jack Audio QJackCtl Windows Fix

ariutti commented 1 year ago

Thank you @aldocisneros , I am very sorry that I have not yet been able to find the time to devote myself carefully to new tests on the subject. I will be sure to update you as soon as I can. Thank you again

aldocisneros commented 1 year ago

Don't worry

Glad to help in any way I can. Hope you can get it working soon :)

znmeb commented 1 year ago

I've got literally a dozen potential interfaces to choose from on my Windows 11 system. Is there one that will "just work", or do I have to troubleshoot everything I set up on a case-by-case basis?

Note: I'm only talking about software here: DAWs, plugins, standalone synthesizers, MIDI file players, etc. I will probably connect hardware later but I need things to work in pure software mode first. The only hardware at the moment is a pair of Bluetooth headphones. And I tried setting that as the interface and JACK couldn't access it.

SynthiaPayne commented 1 year ago

Start by Disabling “Exclusive Mode” buried deep in the Windows sound control panel advanced settings. Do it for each of the devices you want to use. This will allow any device to run JACK. On Apr 9, 2023, at 7:33 PM, M. Edward (Ed) Borasky @.***> wrote: I've got literally a dozen potential interfaces to choose from on my Windows 11 system. Is there one that will "just work", or do I have to troubleshoot everything I set up on a case-by-case basis?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

znmeb commented 1 year ago

Start by Disabling “Exclusive Mode” buried deep in the Windows sound control panel advanced settings. Do it for each of the devices you want to use. This will allow any device to run JACK. On Apr 9, 2023, at 7:33 PM, M. Edward (Ed) Borasky @.> wrote: I've got literally a dozen potential interfaces to choose from on my Windows 11 system. Is there one that will "just work", or do I have to troubleshoot everything I set up on a case-by-case basis? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.>

It will also allow system sounds to interrupt a recording - that is not a viable option in general. It will have to be enabled / disabled on a case-by-case basis, which is yet another additional cognitive load.

"Exclusive Mode means that only one application can use it. So your email prog wouldn't make noise if an email arrived in the middle of your recording."

SynthiaPayne commented 1 year ago

Disable system sounds? That’s what I do. On Apr 9, 2023, at 8:30 PM, M. Edward (Ed) Borasky @.***> wrote:

Start by Disabling “Exclusive Mode” buried deep in the Windows sound control panel advanced settings. Do it for each of the devices you want to use. This will allow any device to run JACK. On Apr 9, 2023, at 7:33 PM, M. Edward (Ed) Borasky @.> wrote: I've got literally a dozen potential interfaces to choose from on my Windows 11 system. Is there one that will "just work", or do I have to troubleshoot everything I set up on a case-by-case basis? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.>

It will also allow system sounds to interrupt a recording - that is not a viable option in general. It will have to be enabled / disabled on a case-by-case basis, which is yet another additional cognitive load. "Exclusive Mode means that only one application can use it. So your email prog wouldn't make noise if an email arrived in the middle of your recording."

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

cxbignekoc commented 12 months ago

Suddenly i got this Problem and cant get running the jack server anymore: i reboot system some times but it wont fix this issue. i have no idea why this happen. i did not change anything before this issue happens. i use jack only in Bitwig DAW

I never got an issue with my constellation of Audio, i use Jack to have multiple Apps open and got always sound everywhere. Suddenly, my external Device shows me that the Metering changed from 48kHz to 44kHz. And then i change it back to 48kHz...but then i can not start Jack anymore.

Before i use Apps: Synthedit, Firefox Browser, Libre Office, Bitwig 4 and 5 (i got both installed)

Sys:

qjackctl_ebv9o8Vj6Q

qjackctl_ri6Efz49UD