Skip to content
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

JackCtrl - Jack 1.9.17 doesn't start on Win10 64bit #714

Open
alfonso73 opened this issue Jan 26, 2021 · 50 comments
Open

JackCtrl - Jack 1.9.17 doesn't start on Win10 64bit #714

alfonso73 opened this issue Jan 26, 2021 · 50 comments
Labels

Comments

@alfonso73
Copy link

Hi JackCtrl/Jack 1.9.17 freezes when launched on Windows 10 64bit

A clear and concise description of what the bug is.

Environment

  • JACK Version: Which version of jack2 are you using? (e.g. the output of jackd --version or a git commit checksum)
  • Operating System: What operating system or distribution in which version are you using? (e.g. Linux, macOS, Windows)
  • Installation: How did you install jack2? (e.g. package manager, from source)

Steps To Reproduce

# Paste a minimal code example here (e.g. about how you started JACK)

Expected vs. actual behavior

A clear and concise description of what you expected to happen vs. what happened.

@alfonso73 alfonso73 added the bug label Jan 26, 2021
@falkTX
Copy link
Member

falkTX commented Jan 26, 2021

please give some more description of the issue please..

@kmatheussen
Copy link
Contributor

kmatheussen commented Jan 26, 2021 via email

@alfonso73
Copy link
Author

I just start qjackctl by double clicking on qjackctl.exe and the whole thing freezes forever and stays as you can see in the screenshot. Btw previous versions I've got used to work flawlessy (apart of the well known security related problem that Supercollider's server doesn't boot on Win10 64x)
qjackctl_freeze

@alfonso73
Copy link
Author

I suspect that it's still a security issue. I say this because after I installed the new Jack 1.9.17 I have a new suspicious symptom from SuperCollider because it's server refuses to start and kind of freezes the server booting process (with previous Jack versions it used to be the same but SC gave an error code). As soon as I uninstall Jack 1.9.17, SuperCollider works correctly again.
Excuse me if I use the SC<>Jack interaction problem as a proof of the "bug" (if it is a bug indeed), but it seems to me that it gives good clues of what's goin' on.

@kmatheussen
Copy link
Contributor

kmatheussen commented Jan 27, 2021 via email

@kmatheussen
Copy link
Contributor

kmatheussen commented Jan 27, 2021 via email

@alfonso73
Copy link
Author

Reseting qjackclt settings i have the same situation.
With the old qjackctl i have another variant of teh problem...but still freeze as you cna see in the screenshots
Screenshot 2021-01-27 174421
Screenshot 2021-01-27 174508

@kmatheussen
Copy link
Contributor

kmatheussen commented Jan 27, 2021 via email

@alfonso73
Copy link
Author

I have this...and no signs of jack running in the task manager.
Screenshot 2021-01-27 225318

@kmatheussen
Copy link
Contributor

kmatheussen commented Jan 28, 2021 via email

@kmatheussen
Copy link
Contributor

@rncbc Does qjackctl access jack in heavy ways, or do any other things, during startup, that could explain the freeze?

@rncbc
Copy link
Contributor

rncbc commented Jan 28, 2021

Does qjackctl access jack in heavy ways, or do any other things, during startup, that could explain the freeze?

what are "heavy ways" ? qjackctl only access jack as a normal client and, if instructed so, spawns the jackd.exe process.

ps. on windows it doesn't do the jackdbus thing, I believe. you know that.

@kmatheussen
Copy link
Contributor

kmatheussen commented Jan 28, 2021 via email

@rncbc
Copy link
Contributor

rncbc commented Jan 28, 2021

Does qjackctl call any libjack functions or any portaudio functions during startup?

of course it does call on libjack! duh? how could it be any other way?

re. portaudio, I really don't know for sure, but the portaudio discovery was integrated in qjackctl setup dialog by,... guess who? ;)

@kmatheussen
Copy link
Contributor

kmatheussen commented Jan 28, 2021 via email

@dyfer
Copy link

dyfer commented Jan 28, 2021

I have this...and no signs of jack running in the task manager.

@alfonso73 This does look like jack has started.
When I start jack in the command prompt, in the Task Manager it shows up as a subprocess of Windows Command Processor.
Once jack runs in the command prompt, can you start QJackCtl? For me it starts and shows that jack is running (I don't need to click "start" because jack is already started)

@alfonso73
Copy link
Author

alfonso73 commented Jan 28, 2021 via email

@kmatheussen
Copy link
Contributor

kmatheussen commented Jan 28, 2021 via email

@dyfer
Copy link

dyfer commented Jan 28, 2021

@alfonso73 maybe you have the remnants of an old jack installation? Check if you don't have anything in C:\Program Files (x86)\Jack\ (I think current install goes in Program Files\JACK2)

@yyf
Copy link

yyf commented Jan 29, 2021

Hi,
I'm experiencing the same issue on Windows 10 after re-installing Jack 1.9.17. QjackCtl freezes at launch and logs below message. QjackCtl worked fine before I uninstalled and installed it again. After googling a bit, I wasn't able to find related information regarding the BDB1546 error message. Any idea?

"Could not connect to JACK server as client. -Overall operation failed. - Unable to connect to sever. Please check the messages window for more info. ... Jack is stopping... BDB1546 unable to join the environment... cannot open DB environment: Resource temporarily unavilable."

I also noticed Portaudio takes a long time probing audio hardware and eventually times out, when I try to select interface in the QjackCtl setup window. I double-checked there is no old version of Jack in my Program Files (x86) path, and can reproduce the same error message launching Jack in command line.

Thanks.

@falkTX
Copy link
Member

falkTX commented Jan 29, 2021

what is the output of:

jackd -d portaudio -l

supposedly it prints the list of devices.
there might be some certain devices that are causing this timeout.

The "BDB" stuff is related to meta-data. Weird with that error, but should not be what is causing this.

@yyf
Copy link

yyf commented Jan 29, 2021

@falkTX here is the output I got:

jackdmp 1.9.17
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"
BDB1546 unable to join the environment
cannot open DB environment: Resource temporarily unavailable
BDB1546 unable to join the environment
cannot open DB environment: Resource temporarily unavailable
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
********************** Devices list, 27 detected **********************
(... audio device info ...)
**************************** End of list ****************************
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server

@falkTX
Copy link
Member

falkTX commented Jan 29, 2021

does that take a long time to run? like if it is timing out

@yyf
Copy link

yyf commented Jan 29, 2021

It's not immediate but didn't time out.

@alfonso73
Copy link
Author

with -ddummy i have the same behavior...no qjackctl no SC server starting.
I've no residuals of previous Jack neither in Program Files (x86) neither in the path in system enviroment variables.
With jackd -d portaudio -l
i have the output in the screenshot here
Screenshot 2021-01-29 154459

it seems to me that jack doesn't really start...

@falkTX
Copy link
Member

falkTX commented Jan 29, 2021

please run this instead, which will use verbose mode and alternative server name. so it could give some more info:

jackd -v -n testing -d portaudio -l

@yyf
Copy link

yyf commented Jan 29, 2021

@falkTX Here you go. Seems it failed to open server. Any suggestion?

C:\Program Files\JACK2>jackd -v -n testing -d portaudio -l
jackdmp 1.9.17
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
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
********************** Devices list, 23 detected **********************
... (audio device info) ...
**************************** End of list ****************************
Cannot initialize driver
Jack: no message buffer overruns
Jack: JackWinThread::Stop
Jack: JackWinThread::ThreadHandler : exit
JackServer::Open failed with -1
Jack: Succeeded in unlocking 107341338 byte memory area
Jack: JackShmMem::delete size = 0 index = 0
Jack: ~JackDriver
Jack: Succeeded in unlocking 1187 byte memory area
Jack: JackShmMem::delete size = 0 index = 1
Jack: Cleaning up shared memory
Jack: Cleaning up files
Jack: Unregistering server `testing'
Failed to open server

@alfonso73
Copy link
Author

this is what i get

C:\Program Files\JACK2>jackd -v -n testing -d portaudio -l
jackdmp 1.9.17
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"

@alfonso73
Copy link
Author

Some more strange symptoms.
A lot of different apps don't start after Jack 1.9.17 is installed (VCV Rack, Max8, NI Reaktor standalone, NI Kontakt standalone).
When Jack2 is uninstalled Max8 is back working again but VCV and NI stuff doesn't start no more.
I tried register/unregister jackRouter.dll but no improvements.
Probably uninstalling Jack leave some garbage around? Infact the JackRouter folder doesn't get deleted and i have to delete it manually. But anyway even if deleted VCV and NI stuff refuses to start.
Should i open a new issue? It sounds that it'is all related...
BTW never got this behavior for Jack version from several months ago. I just got the SC server issue but no other problems.

@alfonso73
Copy link
Author

alfonso73 commented Feb 3, 2021

An update about some apps not starting even after JACK2 is uninstalled.
I did a Windows registry cleaning process using a specific app and now all those apps works normally.
Waiting for some news about this issue and see if i can try install JACK2 again. Thanks and all the best

@dts350z
Copy link

dts350z commented Feb 8, 2021

I have the same problem same symptoms on windows 10.

Jack1.9.17 (or the previous version) hangs on start.

Apps that check ASIO devices hang on start, until Jack2 is uninstalled. e.g. Plogue Bidule.

Microsoft Windows [Version 10.0.19042.746]
(c) 2020 Microsoft Corporation. All rights reserved.

C:\Users\Glenn.THEBEAST>"C:\Program Files\JACK2\jackd.exe" -v -n testing -d portaudio -l
jackdmp 1.9.17
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"
<------Hangs here

@SynthiaPayne
Copy link

Hello All,

Below are the steps that allowed me successful operation on Windows10 of:
JACK2 1.9.17 -> Jacktrip 1.3 -> Reaper (via JackRouter)

NOTICE: This was an experiment that worked for me. I don't know if it will work for you but it's worth a try!

Issue:
JACK2 suddenly began opening blank white windows and then hang

Workarounds:
1a) Cleared out all previous Jack including registry items
1b) Combined the 32-bit and 64-bit versions of JACK2 (my computer is 64)
1c) Moved the latest version of Jacktrip 1.3 into the JACK2 folder

Aaaaand we're off!

synth

"Go at it boldly, and you'll find unexpected forces closing round you and coming to your aid." -Basil King

@cliffordmanasseh
Copy link

Had a similar issue with jack audio not starting, and throwing an unable to start, sorry message always. working fine after installing the 32 bit version

@nyarla
Copy link

nyarla commented Feb 21, 2021

Hi, I maybe found workaround for this problem.

In my environment, Old version (1.9.16 and 1.9.15) of JackAudio stopped working after installed 1.9.17,
but I deleted C:\Users\{username}\AppData\Local\Temp\jack_db directory, I got back working fine of JackAudio.

And note, I tries these actions for fix about JackAudio does not works,
but that is not enable to fix of this problem:

  • Uninstall and re-install JackAudio
  • Delete JackAudio-related registory values
  • Downgrade version of JackAudio

Finally, JackAudio 1.9.17 works fine in my environment after I deleted C:\Users\{username}\AppData\Local\Temp\jack_db,
I think that is workaround for fix about JackAudio does not launch from QJackCtl or windows console.

@christofmuc
Copy link

@nyarla Thank you! Deleting the jack_db in the AppData directory allowed both the jackd as well as the QJackCtl to finally launch!

@dts350z
Copy link

dts350z commented Feb 28, 2021

For me, QJackCtl will now start (after removing jack_db), and sometimes I can get the router to start without errors, however in ALL cases is still doesn't work with any applications. No channels are seen, can't initialize device, etc.

@manikandhan31
Copy link

Hi, I maybe found workaround for this problem.

In my environment, Old version (1.9.16 and 1.9.15) of JackAudio stopped working after installed 1.9.17,
but I deleted C:\Users\{username}\AppData\Local\Temp\jack_db directory, I got back working fine of JackAudio.

And note, I tries these actions for fix about JackAudio does not works,
but that is not enable to fix of this problem:

* Uninstall and re-install JackAudio

* Delete JackAudio-related registory values

* Downgrade version of JackAudio

Finally, JackAudio 1.9.17 works fine in my environment after I deleted C:\Users\{username}\AppData\Local\Temp\jack_db,
I think that is workaround for fix about JackAudio does not launch from QJackCtl or windows console.

Thanks, this worked for me after hours of struggling to bring up QjackCtl

@amurzeau
Copy link
Contributor

amurzeau commented Mar 4, 2021

I got the same issue and fixed it by removing via the uninstaller the old version.

I found that when having the issue, the newer jackd.exe was using C:\WINDOWS\SYSWOW64\libjack.dll or something like that. The version of jackd.exe is 1.9.17 but the DLL was the previous version (1.9.11 for me). (You can see which DLL jackd.exe is using, using process explorer)
The newer 32 bits jack install its DLL inside C:\WINDOWS\libjack.dll instead and this folder seems to have a lower priority over C:\WINDOWS\SYSWOW64.

@cloudcrypt
Copy link

cloudcrypt commented Mar 5, 2021

I've been having different issues with Jack, as outlined in #706.
It seems to be that for me, an installation of Jack2 v1.9.17 64-bit would not work with any 32-bit applications that are clients of JackRouter.

From what @amurzeau said above, I checked and did have libjack.dll in C:\Windows\SysWOW64\. And it does seem that the reason only the 32-bit applications would break would be that libjack.dll (as the 32-bit lib) is being prioritized in SysWOW64 over the one in C:\Windows. Since the one in SysWOW64 is an old version and remnant of some 1.9.11 install, any application trying to use it breaks (with the CheckSize and CheckRead error shown in #706).

Manually removing C:\Windows\SysWOW64\libjack.dll has solved all issues for my 64-bit Jack2 1.9.17 install. (Thank you @amurzeau!)

My theory for this issue is that at some point the 1.9.11 uninstaller did not remove C:\Windows\SysWOW64\libjack.dll, and as such, it got stuck there since, never being removed on any install/uninstall cycle of either 1.9.11 or 1.9.17.

@alfonso73
Copy link
Author

just tried again on a clean Win10 machine
same problems about Qjackctl don't starting and i have this

C:\Program Files\JACK2>jackd -dportaudio
jackdmp 1.9.17
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"

@dyfer
Copy link

dyfer commented Mar 14, 2021

@alfonso73 what driver are you using with Jack? Have you tried different buffer sizes and different number of channels?

@alfonso73
Copy link
Author

@dyfer i can't even access any control on QjackCtl because its GUI is totally blank when i launch it and is marked as "Not responding" in the Task Manager

@alfonso73
Copy link
Author

alfonso73 commented Mar 15, 2021

I think i got it working now.

  1. Deleted C:\Users{username}\AppData\Local\Temp\jack_db folder

2 .Started QjackCtl that now after folder deleted at 1. works

  1. Edit all the setup in QjackCtl selecting the ASIO driver, setting sample rate, latency etc.

  2. Started SC using JackRouter.

Everything works

@dyfer
Copy link

dyfer commented Mar 15, 2021

Should this issue be closed then?

@alfonso73
Copy link
Author

@dyfer i'm not so sure beacause when Jack 1.9.17 is installed doesn't work unless some tricky things on the user side are done. So probably for a working release i guess the issue has to be addressed.

@dyfer
Copy link

dyfer commented Mar 15, 2021

I believe jack_db folder is an issue that sometimes occurs if jack 1.9.11 was previously installed. Was that not the case?

@alfonso73
Copy link
Author

@dyfer Nope. On a clean system that folder is created as soon as Jack start as far as i can see. That's why, i guess, has to be deleted before starting QjackCtl for the first time, probably because it contains some settings that doesn't fit the jack/audio driver combination.

@aldocisneros
Copy link

@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.

Found their solution on @ghmechamanias 's issue (link below)

#779 (comment)

@cdhowie
Copy link

cdhowie commented Aug 31, 2022

Came here from Google after having qjackctl freeze, and deleting the temporary jack_db was all it took to fix the problem. A huge thank you to @nyarla for saving hours of my time.

To add some data points to this issue, I am running 1.9.17 and have been for probably a year. I did not uninstall, install, or upgrade jack since then. This issue happened today spontaneously -- jack was working fine when I locked my computer to go to bed last night, and when I got up this morning jackd and qjackctl had frozen. I had to use the task manager to kill them, and then qjackctl refused to start normally, freezing before even rendering its UI.

So this is definitely not related to having earlier versions of jack installed. Somehow 1.9.17 can get itself into this situation.

@diqidoq
Copy link

diqidoq commented Nov 14, 2022

Didn't read all comments but the most means 60-70% down but the issue seem still to exist on latest version ... and I wonder HOW YOU EVEN install JACK on Windows correctly since it doesnt even has jackd as a registered command here on Win10 cmd (EDIT: assumed from the prev comments that it adds itself to the path) to get informal output with latest Jack connection Kit installed (21) by simply "double-clicking" the installer exe from https://jackaudio.org/downloads/ Win 64bits and following the simple steps on https://jackaudio.org/faq/jack_on_windows.html

Setup type:
      Full installation (with JACK-Router)

Selected components:
      JACK Server and tools
      QjackCtl application (recommended)
      JACK-Router ASIO Driver
      Developer resources

Start Menu folder:
      (Default)

There seem to be a JackRouter in the registry and I can open qJackctl UI but cannot start the server (of course). How do you guys install Jack since additional user driven Win documentation or round ups on it seem to be rare.
grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests