jamtrip icon indicating copy to clipboard operation
jamtrip copied to clipboard

Windows can't connect to hosted jacktrip.org servers or stanford test servers

Open vicwomg opened this issue 4 years ago • 3 comments

This seems windows-specific: getting this error connecting to jacktrip.org hosted servers:

Screen Shot 2020-12-28 at 7 26 57 PM

When connecting to the stanford test servers, seeing this:

** C:\Program Files (x86)\Jack\jackd.exe -d portaudio -d ASIO::ASIO4ALL v2 -o 2 -p 128 -r 48000jackdmp 1.9.11Copyright 2001-2005 Paul Davis and others.Copyright 2004-2016 Grame.jackdmp comes with ABSOLUTELY NO WARRANTYThis is free software, and you are welcome to redistribute itunder certain conditions; see the file COPYING for detailsDrivers/internals found in : C:\WindowsDrivers/internals found in : C:\WindowsJACK server starting in realtime mode with priority 10self-connect-mode is "Don't restrict self connect requests"** 

C:\Users\vicwo\AppData\Local\Programs\jamtrip\resources\resources\bin\win32\jacktrip.exe -n 1 -z -q 4 -b 16 -r 1 -C jackloop128.stanford.edu

Setting buffers to zero when underrun...---------------------------------------------------------Setting JACK Process Callback...SUCCESS---------------------------------------------------------The Sampling Rate is: 48000---------------------------------------------------------The Audio Buffer Size is: 128 samples                      or: 512 bytes---------------------------------------------------------The Number of Channels is: 1---------------------------------------------------------The RTAudio device ID is: 0---------------------------------------------------------Using UDP Protocol---------------------------------------------------------Server Address set to: jackloop128.stanford.edu Port: 61002---------------------------------------------------------UDP Socket Receiving in Port: 4464---------------------------------------------------------Waiting for Peer...JackEngine::XRun: client = jackloop128.stanford.edu was not finished, state = TriggeredJackEngine::XRun: client = jackloop128.stanford.edu was not finished, state = TriggeredJackAudioDriver::ProcessGraphAsyncMaster: Process errorJackEngine::XRun: client = jackloop128.stanford.edu was not finished, state = Triggered

vicwomg avatar Dec 29 '20 04:12 vicwomg

Some good info from the jacktrip group:

May be related to: https://github.com/jacktrip/jacktrip/issues/139

"This was somewhat instructive, in that it explains why I can hear myself but nobody else can. It's because I'm not actually connected! It looks like JamTrip doesn't detect when the connection fails, but goes ahead and connects the local capture ports to the local playback ports. I include a typical log below.

So I think it would reduce confusion a whole lot if JamTrip detected that the jacktrip process has already exited. Beyond that, I'd love to know why jacktrip isn't succeeding. I find when I run it at the command line, it fails as below with messages about mismatched buffer size/sampling rate in over 90% of my attempts.

This is all talking to servers at jacktrip.org."

Setting JACK Process Callback...
SUCCESS
---------------------------------------------------------
The Sampling Rate is: 48000
---------------------------------------------------------
The Audio Buffer Size is: 256 samples
                      or: 1024 bytes
---------------------------------------------------------
The Number of Channels is: 1
---------------------------------------------------------
The RTAudio device ID is: 0
---------------------------------------------------------
Using UDP Protocol
---------------------------------------------------------
Server Address set to: 54.151.95.242 Port: 61002
---------------------------------------------------------
UDP Socket Receiving in Port: 4464
---------------------------------------------------------
Waiting for Peer...
Received Connection from Peer!
Stopping JackTrip...
ERROR: Peer Buffer Size is  : 13016
       Local Buffer Size is : 256
Make sure both machines use same buffer size
---------------------------------------------------------
ERROR: Peer Sampling Rate is   : 0
       Local Sampling Rate is  : 48000
Make sure both machines use the same Sampling Rate
---------------------------------------------------------
ERROR: Peer Audio Bit Resolution is  : 0
       Local Audio Bit Resolution is : 16
Make sure both machines use the same Bit Resolution
---------------------------------------------------------
JackTrip Processes STOPPED!
---------------------------------------------------------
Exiting JackTrip...
** Connection established, patching channels...
** Connecting '54.151.95.242:receive_1' to 'system:playback_1'.
stderr: ERROR 54.151.95.242:receive_1 not a valid port

** Connecting '54.151.95.242:receive_1' to 'system:playback_2'.
stderr: ERROR 54.151.95.242:receive_1 not a valid port

** Connecting 'system:capture_1' to '54.151.95.242:send_1'.
stderr: ERROR 54.151.95.242:send_1 not a valid port

** Connecting 'system:capture_2' to '54.151.95.242:send_1'.
stderr: ERROR 54.151.95.242:send_1 not a valid port

vicwomg avatar Jan 07 '21 21:01 vicwomg

More info:

On Thu, Jan 7, 2021 at 10:26 AM Bonnie Kwong [email protected] wrote: Here's a Win 10 installer Chris Chafe made last June for v 1.2: https://ccrma.stanford.edu/software/jacktrip/windows/jacktripInstaller.exe

If you could let us know whether you still see the problem after switching to this version, it would help us troubleshoot.

Thank you! That worked fine, in at least the simple tests I did.

It's a bit of a weird installer--it creates a folder with a jacktrip stub, unlike v 1.2.1, which comes all bundled into a single executable. That means I couldn't simply drop this jacktrip.exe into the JamTrip resources folder. However, I used an obscure feature of Windows to do something resembling a Unix symlink, and that allows me to run JamTrip with this version as well. Yeah!

cd C:\Users\Bill\AppData\Local\Programs\jamtrip\resources\resources\bin ren win32 win32-1.2.1 mklink /d win32 C:\apps\jacktrip1.2IsHere symbolic link created for win32 <<===>> C:\apps\jacktrip1.2IsHere

vicwomg avatar Jan 07 '21 23:01 vicwomg

This indicates that disabling file sharing could help:

https://github.com/jacktrip/jacktrip/issues/139#issuecomment-675271925

vicwomg avatar Jan 27 '21 20:01 vicwomg