jack2 icon indicating copy to clipboard operation
jack2 copied to clipboard

Cannot Decode Header or open DaVinci Resolve Client

Open hockinsk opened this issue 3 years ago • 2 comments

Describe the bug

JackRouter ASIO Ports not assignable in DaVinci Resolve Studio. Jack working fine with every other ASIO client I have. Can clients refuse Jack? Is there a way around this?

Environment

  • JACK Version: 1.9.21
  • Operating System: Windows 10 21H2
  • Installation: .exe installer from github

Steps To Reproduce

Select JackRouter ASIO, attempt to connect to a port, but only 'unnasigned' is possible. Jack logs the following error:

Cannot open client Jack: JackWinSemaphore::Destroy jack_pipe.default_Resolve Jack: JackExternalClient::Close Jack: JackWinNamedPipeNotifyChannel::Close Jack: JackClientPipeThread::Execute 2bd1ec0 Jack: Cannot read named pipe name = \.\pipe\server_jack_default_0 err = 109 Jack: JackClientPipeThread::Execute : cannot decode header Jack: JackClientPipeThread::ClientKill ref = -1 Jack: Kill a closed client 2bd1ec0 Jack: JackClientPipeThread::Close 0 2bd1ec0 -1 Jack: JackWinThread::ThreadHandler : exit Jack: JackWinNamedPipeServerChannel::ClientAdd size 4 Jack: JackClientPipeThread::~JackClientPipeThread Jack: JackClientPipeThread::~JackClientPipeThread Jack: JackWinThread::StartImp : create non RT thread Jack: JackWinNamedPipeServer::BindAux : fName \.\pipe\server_jack_default_0 Jack: JackWinNamedPipeServerChannel::ClientAdd size 3 Jack: JackWinThread::StartImp : create non RT thread Jack: JackWinNamedPipeServer::BindAux : fName \.\pipe\server_jack_default_0 Jack: JackWinThread::ThreadHandler : start Jack: JackClientPipeThread::Execute ebdad0 Jack: Cannot read named pipe name = \.\pipe\server_jack_default_0 err = 109 Jack: JackClientPipeThread::Execute : cannot decode header Jack: JackClientPipeThread::ClientKill ref = 0 Jack: Kill a not opened client ebdad0 Jack: JackClientPipeThread::Close 0 ebdad0 0 Jack: JackWinThread::ThreadHandler : exit Jack: JackWinThread::ThreadHandler : start Jack: JackClientPipeThread::Execute 2bd1ec0 Jack: JackRequest::ClientCheck Jack: Check protocol client = 9 server = 9 Jack: JackRequest::ClientOpen Jack: JackClientPipeThread::ClientAdd 2bd1ec0 Resolve Jack: JackEngine::ClientExternalOpen: uuid = 816, name = Resolve Jack: JackEngine::AllocateRefNum ref = 3 Jack: JackWinSemaphore::Allocate name = jack_pipe.default_Resolve val = 0 Jack: JackWinNamedPipeNotifyChannel::Open name = Resolve Jack: JackWinNamedPipeClient::ConnectAux : fName \.\pipe\client_jack_Resolve_0 Cannot connect to named pipe = \.\pipe\client_jack_Resolve_0 err = 5 Cannot connect client pipe Cannot connect to client name = Resolve

Expected vs. actual behavior

I have 32 channels set in the JackRouter.ini, I should be able to select them in the ASIO client. `[IO] input=32 output=32 float-sample=1

[AUTO_CONNECT] input=1 output=1 alias=0`

hockinsk avatar Apr 21 '22 08:04 hockinsk

Still investigating this issue. DaVinci Resolve gave me a script to include for debugginfg their audio/ASIO while the program is running. It seems DaVinci Resolve can't get the ASIO Channels and so although connected to the driver, has nothing to work with. Is there any workaround for this. Literally every other ASIO application works fine with Jackrouter ASIO.

[0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.051(000): Asio Loop stopped [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.051(000): Driver 1 JackRouter : {838FE50A-C1AB-4B77-B9B6-0A40788B53F3} [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.070(019): Asio Loop stopped [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.070(000): Change latency to 10.000000 ms 480 samples [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.084(014): Max Samplerate 48000 Hz 48K [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.084(000): StartupEngine NativeAudioEngine2 [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.096(012): Startup NativePlayer-1 [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.096(000): ASIOHostController::Init [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.096(000): DECKLINK_AUDIO_ENABLED = 0 [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.096(000): SYSTEM_AUDIO_ENABLED = 0 NoSoundCard = 0 [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.096(000): No rvc [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.096(000): ASIOHostController::Pause [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.096(000): CommonTimebase::CommonTimebase [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.097(001): NativeTimebase::InitTimebase 24 48000 0.00 (forced) defer 0 [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.097(000): NativeTimebase::ResetMasterClock does nothing... [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.098(001): TCS: Add Player id 0x01: NativePlayer-1 [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.098(000): ASIOHostController::SetNumberAudioTracks 24 [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.098(000): ASIOHostController::Start [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.098(000): Max Samplerate 192000 Hz 192K [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.098(000): Set Monitor Style to 1: Auto [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.098(000): RatesHandler::ActuateChange sample rate 48000 [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.098(000): AudioEngineController::SetSampleRate 48K [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.098(000): NativePlayer::SetSampleRate 48K [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.098(000): ASIOHostController::Pause [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.098(000): ASIOHostController::Start [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,818 | 00.00.00.098(000): Thread start [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,819 | 00.00.00.098(000): ASIOHostController::Thread start [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,819 | 00.00.00.100(002): Asio Loop stopped [0x0000145c] | Fairlight | INFO | 2022-04-27 21:19:05,819 | 00.00.00.100(000): ASIO: Device has no channels

hockinsk avatar May 01 '22 16:05 hockinsk

For anyone reading in the future, it seems to be a permissions/authority issue. Some ASIO clients see Jackrouter ASIO and use it, some don't. I set all clients to run as Admin, unchecked read only from the JACK2 install folder and set jackd.exe and qjackctl.exe to run as admin too and it's all working other than JackTransport with Bitwig doesn't work, so not sure what that's all about.

hockinsk avatar May 05 '22 14:05 hockinsk