Build Errors 'jack server not running' Linux 64bit using Editor 2 (SOLVED)

Hey guys,

So I have recently installed Debian on my main rig and have installed editor 2 (64 bit) in order to continue the development of my project which I started on Windows 10.

Now I hope that I have done the migration process correctly but unfortunately when I build I am getting a number of error messages in the console.

The project builds and runs fine (note: I don’t have any sound in this project yet so I don’t know if that is currently working), but the console reads as follows:

INFO:ENGINE: Defold Engine 1.2.108 (3675018)
INFO:ENGINE: Loading data from: build/default
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
INFO:ENGINE: Initialised sound device ‘default’

The project itself is hosted on BitBucket rather than your official servers which may well be where I have screwed something up, not entirely sure. Does this explain in some way the first “cannot connect to server socket” error?

From what I have researched Jack Server seems to be some kind of audio server. I currently have pulse audio installed and working as the audio server on this system. Does Defold need me to install and get Jack Server running in order for sound to function properly? Or can I simply ignore this message and let Pulse handle sound?

Ideally I’d like to get these issues cleaned up on my end before I crack on with development on this system… or at least be confident that I can ignore them and nothing will be affected in the long term by these messages.

Apologies in advance if these errors are due to my messing around with the git hosting, but I would very much appreciate any input here.

Many thanks.

I don’t recognise this jack server stuff, are you using some native extension maybe?

Ah, sorry so it’s related to alsa. If the sound is working I think you can ignore the error message.

Nope, not using any native extensions in this project just basic Defold functionality.

Checked back on Windows 10 and I don’t see any of these messages when building the same project (from the same BitBukcet Repo).

I also checked if turning off my firewall on Debian would affect anything but still the same.

@Erik_Angelin - Thanks for the input on the Jack server messages. I will test the sound and make sure all is well there then.

Any idea about these ones:

Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel

1 Like

Seems like they come from jack aswell, https://ubuntuforums.org/showthread.php?t=1905773.

Great, thanks very much. I will get some sound testing done now and see what happens.

Well, despite those errors in the console at build I seem to be able to play sounds without problems!

Tested both WAV and OGG and both seem fine.

@Erik_Angelin - Thank you very much for the help and the reassurance on this issue!

Edit:

I am getting some rather strange behaviour out of dmengine though… it will not let me adjust the audio output stream between my headphones (line out) and HDMI out when the application is running. Switching the audio channel is normal behaviour with all other applications. Also the instance of dmengine only seems to find the default HDMI channel if I have my headphones plugged in which appears to force it onto the HDMI channel for some reason. Without headphones in I get no audio output.

Very strange, but I think much more likely some kind of issue with my setup rather than Defold’s sound output. For now the headphones workaround will be fine. If I ever get to the bottom of this I will pop back in and post an update.

Thanks again.

3 Likes