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

Communication error with the JACK server! #87

Open
ghost opened this issue Jan 4, 2018 · 19 comments
Open

Communication error with the JACK server! #87

ghost opened this issue Jan 4, 2018 · 19 comments

Comments

@ghost
Copy link

ghost commented Jan 4, 2018

Hi there,

I am new to SSR and coding, but I am trying to run SSR on Mac OSX high Sierra.
I have installed Jack Pilot and SSR 0.4.2. Jack Pilot seems properly working.
However, when I double click SoundScapeRenderer app, the error message shows up.

I will greatly appreciate it if any one can tell me any advice on this issue.

Best regards,
Nao

terminate called after throwing an instance of 'apf::JackClient::jack_error'
what():  JackClient: Communication error with the JACK server!
/Applications/SoundScapeRenderer-0.4.2/SoundScapeRenderer.app/Contents/MacOS/ssr: line 48: 20939 Abort trap: 6           $SSR_EXECUTABLE "${OPTIONS[@]}"
SSR encountered an error and had to quit. See above. Exit code: 134
@JensAhrens
Copy link
Contributor

I'm not sure what's going on. A spontaneous thought is: You're saying that JackPilot works. Did you start Jack, too? (Hit "Start" in JackPilot)

@ghost
Copy link
Author

ghost commented Jan 4, 2018

@JensAhrens Thank you for your quick reply. Yes I already hit start in Jack pot and clicked SSR app.
0030-01-04 22 02 33

@umlaeute
Copy link
Contributor

umlaeute commented Jan 4, 2018

i guess the fun error is:

Incompatible shm registry, are jackd and libjack in sync?

Does JackPilot include a local copy of libjack and SSR is build against a system library?
I seem to remember a lot of confusion with the JACK binary packages on OSX...

@ghost
Copy link
Author

ghost commented Jan 6, 2018

@umlaeute thank you very much for your info. last night, I found the following info on the Jack OSX documentation.

I'll check if all the files are installed at the right place.

What gets installed where?
• /usr/local/bin
   jack_connect
   jack_disconnect o jack_load
   jack_unload
   jack_lsp
   jack_metro
   jack_netsource o jackd
   jackdmp
• /usr/local/include/jack o intclient.h
   jlist.h
   jack.h
   midiport.h o ringbuffer.h o session.h
   statistics.h o thread.h
   transport.h o types.h
   control.h
   systemdeps.h o weakjack.h o weakmacro.h
• /usr/local/lib
   libjack.0.dylib
   libjack.dylib
   libjackserver.0.dylib o libjackserver.dylib
• /usr/local/lib/jackmp o jack_coreaudio.so
   jack_coremidi.so o jack_net.so
   jack_netone.so o netmanager.so
   netadapter.so
   audioadapter.so
• /usr/local/lib/pkgconfig
   jack.pc
• /Library/Application Support/JackPilot/Modules
   NetJack.jpmodule (this file temporarily not installed)
• /Library/Audio/Plug-ins/HAL
   JackRouter.plugin
• /Library/Audio/Plug-ins/Components
   JACK-insert.component
 10
Jack OS X Documentation
• /Library/Audio/Plug-ins/VST o JACK-insert.vst
• /Library/Frameworks
   Jackservermp.framework o Jackmp.framework
   Jacknet.framework
   Panda.framework
• /Applications/Jack o JackPilot.app
   Documentation.pdf (this document)
   Uninstall JackOSX.command
• /Applications/Jack/Extras/Developer
   ReadMe.rtf
   example-clients.xcodeproj
• /Applications/Jack/Extras/Developer/example-clients
   connect.c o lsp.c
   makefile o metro.c

http://www.jackosx.com/Documentation.pdf

@ghost
Copy link
Author

ghost commented Jan 6, 2018

I might be talking different things above. Jack OSX and Jack Pilot could be different thing?

@ghost
Copy link
Author

ghost commented Jan 7, 2018

@umlaeute & @JensAhrens

I spent one more day for figuring out the problem but I still don't know how to fix it. Instead, I have installed ubuntu on my old windows machine. Although it was my first linux experience, I could finaly run audio file with ssr binaural GUI. Linux is much easier than Mac for Jack installation. :-)

again thanks for your help and nice to meet you guys here!

@ghost ghost closed this as completed Jan 7, 2018
@umlaeute
Copy link
Contributor

umlaeute commented Jan 7, 2018

I guess you are right that JACK is easier on linux than on anything else.
however, (even though I'm a linux guy by breed and profession) i also think that installing ubuntu is not an alternative to having SSR run properly on OSX.

until the latter is resolved (or we find out what went wrong in your installation), this bug should probably be kept open.

@ghost
Copy link
Author

ghost commented Jan 8, 2018

My apologies. I misunderstood the function of the "issue" on the github. I'll reopen this bug.

@ghost ghost reopened this Jan 8, 2018
@ghost
Copy link
Author

ghost commented Jan 13, 2018

I have done clean install of Mac OS High Sierra, and installed Jack and SSR.

OS : High Sierra
Jack :Binaries: jackOSX Version 0.92_b3
SSR : SoundScapeRenderer-0.4.2.dmg

  1. I could start Jack from Jack Pilot.
  2. when I select "Binaural (using HRIRs)" the following error message shows up;
ECASOUND="/private/var/folders/jw/w8rxwk5s78vfv28plr3v9bqh0000gn/T/AppTranslocation/F10E2138-A927-4447-B913-A0BB5B7B5DCB/d/SoundScapeRenderer.app/Contents/MacOS/ecasound" ; cd "/private/var/folders/jw/w8rxwk5s78vfv28plr3v9bqh0000gn/T/AppTranslocation/F10E2138-A927-4447-B913-A0BB5B7B5DCB/d/SoundScapeRenderer.app/Contents/MacOS/../../.." ; "/private/var/folders/jw/w8rxwk5s78vfv28plr3v9bqh0000gn/T/AppTranslocation/F10E2138-A927-4447-B913-A0BB5B7B5DCB/d/SoundScapeRenderer.app/Contents/MacOS/ssr" --binaural && (echo SSR quit normally with exit code $?) || (echo SSR encountered an error and had to quit. See above.  Exit code: $?)
       ___     
      /  ___   
  ___/  /  ___ 
    ___/  /    SSR (SoundScape Renderer) 0.4.2
         /     
               
Website: <http://spatialaudio.net/ssr/>
Contact: <ssr@spatialaudio.net>

Copyright © 2014 Institut für Nachrichtentechnik, Universität Rostock
Copyright © 2012 Quality & Usability Lab, Telekom Innovation Labs, TU Berlin

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
terminate called after throwing an instance of 'std::logic_error'
  what():  Error loading HRIR file: apf::load_sndfile(): "SoundScapeRenderer.app/Contents/Resources/default_hrirs.wav" couldn't be loaded!
/private/var/folders/jw/w8rxwk5s78vfv28plr3v9bqh0000gn/T/AppTranslocation/F10E2138-A927-4447-B913-A0BB5B7B5DCB/d/SoundScapeRenderer.app/Contents/MacOS/ssr: line 48:   715 Abort trap: 6           $SSR_EXECUTABLE "${OPTIONS[@]}"
SSR encountered an error and had to quit. See above. Exit code: 134

I got different type of error message. hmmmm

@mgeier
Copy link
Member

mgeier commented Jan 13, 2018

You could try this to get around the latest error: #83 (comment)

@ghost
Copy link
Author

ghost commented Jan 13, 2018

@mgeier Thank you so much! Finally, I could open the GUI!
However, I haven't heard the sound via SSR yet.

After I tried "xattr -d com.apple.quarantine SoundScapeRenderer.app"

I ran the SSR with following code;
open -a SoundScapeRenderer --args --binaural "/absolute/path/to/my-audio.wav"

and the GUI was opened without sound and the following error message was showed up.

Last login: Sat Jan 13 21:17:57 on ttys002
naohironoMacBook-puro:~ furutaninaohiro$ export ECASOUND="/Applications/SoundScapeRenderer-0.4.2/SoundScapeRenderer.app/Contents/MacOS/ecasound" ; cd "/Applications/SoundScapeRenderer-0.4.2/SoundScapeRenderer.app/Contents/MacOS/../../.." ; "/Applications/SoundScapeRenderer-0.4.2/SoundScapeRenderer.app/Contents/MacOS/ssr"  --binaural /Users/furutaninaohiro/Music/BATB1_A1.wav && (echo SSR quit normally with exit code $?) || (echo SSR encountered an error and had to quit. See above.  Exit code: $?)
       ___     
      /  ___   
  ___/  /  ___ 
    ___/  /    SSR (SoundScape Renderer) 0.4.2
         /     
               
Website: <http://spatialaudio.net/ssr/>
Contact: <ssr@spatialaudio.net>

Copyright © 2014 Institut für Nachrichtentechnik, Universität Rostock
Copyright © 2012 Quality & Usability Lab, Telekom Innovation Labs, TU Berlin

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Warning: Trying to open specified file as audio file. (controller.h:952)
Warning: Creating spontaneous scene from the audio file "/Users/furutaninaohiro/Music/BATB1_A1.wav". (controller.h:986)
Error: AudioPlayer::Soundfile: ERROR:  Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-JACK: Unable to open JACK-client" (audioplayer.cpp:310)
Warning: AudioPlayer: Initialization of soundfile '/Users/furutaninaohiro/Music/BATB1_A1.wav' failed! (audioplayer.cpp:87)
Error: AudioPlayer::Soundfile: ERROR:  Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-JACK: Unable to open JACK-client" (audioplayer.cpp:310)
Warning: AudioPlayer: Initialization of soundfile '/Users/furutaninaohiro/Music/BATB1_A1.wav' failed! (audioplayer.cpp:87)
Warning: Renderer is already processing. (controller.h:1242)
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap

@ghost
Copy link
Author

ghost commented Jan 13, 2018

@ghost
Copy link
Author

ghost commented Jan 13, 2018

Long paths to audio files on Mac OS X

It can happen that SSR displays this error message when loading audio files directily:

Error: AudioPlayer::Soundfile: ERROR:  Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-JACK: Unable to open JACK-client" (audioplayer.cpp:310)
Warning: AudioPlayer: Initialization of soundfile '/Users/YOUR_USERNAME/Documents/audio/YOUR_AUDIO_FILE.wav' failed! (audioplayer.cpp:87)
Opening such a file would result in a JACK port name that is too long. You can resolve this limitation by moving the audio file to a location that produces a shorter (full) path name or by wrapping the audio file in an asd-file.

@ghost
Copy link
Author

ghost commented Jan 13, 2018

I moved the audio file and ran the following code.

$ open -a SoundScapeRenderer --args --binaural "/Users/usr/Music/marimba.wav"

But I still see the same error message...

Last login: Sat Jan 13 21:43:09 on ttys003
naohironoMacBook-puro:~ furutaninaohiro$ export ECASOUND="/Applications/SoundScapeRenderer-0.4.2/SoundScapeRenderer.app/Contents/MacOS/ecasound" ; cd "/Applications/SoundScapeRenderer-0.4.2/SoundScapeRenderer.app/Contents/MacOS/../../.." ; "/Applications/SoundScapeRenderer-0.4.2/SoundScapeRenderer.app/Contents/MacOS/ssr"  --binaural /Users/furutaninaohiro/Music/marimba.wav && (echo SSR quit normally with exit code $?) || (echo SSR encountered an error and had to quit. See above.  Exit code: $?)
       ___     
      /  ___   
  ___/  /  ___ 
    ___/  /    SSR (SoundScape Renderer) 0.4.2
         /     
               
Website: <http://spatialaudio.net/ssr/>
Contact: <ssr@spatialaudio.net>

Copyright © 2014 Institut für Nachrichtentechnik, Universität Rostock
Copyright © 2012 Quality & Usability Lab, Telekom Innovation Labs, TU Berlin

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Warning: Trying to open specified file as audio file. (controller.h:952)
Warning: Creating spontaneous scene from the audio file "/Users/furutaninaohiro/Music/marimba.wav". (controller.h:986)
Error: AudioPlayer::Soundfile: ERROR:  Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-JACK: Unable to open JACK-client" (audioplayer.cpp:310)
Warning: AudioPlayer: Initialization of soundfile '/Users/furutaninaohiro/Music/marimba.wav' failed! (audioplayer.cpp:87)
Error: AudioPlayer::Soundfile: ERROR:  Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-JACK: Unable to open JACK-client" (audioplayer.cpp:310)
Warning: AudioPlayer: Initialization of soundfile '/Users/furutaninaohiro/Music/marimba.wav' failed! (audioplayer.cpp:87)
Warning: Renderer is already processing. (controller.h:1242)
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap

@mgeier
Copy link
Member

mgeier commented Jan 15, 2018

@nf2111 Did you try loading any of the example scenes?

@ghost
Copy link
Author

ghost commented Jan 15, 2018

@mgeier yes I tried some wav files and asd files. I could hear only the following file. /Applications/SoundScapeRenderer-0.4.2/Scenes/live_input.asd

I also installed SSR on my linux computer and heard other wav file. but not on my Mac.

this is the error I got when I hit play on GUI. (Unable to open JACK-client.)

Last login: Mon Jan 15 20:17:53 on ttys001
nao-MacBook:~ naohiro$ export ECASOUND="/Applications/SoundScapeRenderer-0.4.2/SoundScapeRenderer.app/Contents/MacOS/ecasound" ; cd "/Applications/SoundScapeRenderer-0.4.2/SoundScapeRenderer.app/Contents/MacOS/../../.." ; "/Applications/SoundScapeRenderer-0.4.2/SoundScapeRenderer.app/Contents/MacOS/ssr" --binaural && (echo SSR quit normally with exit code $?) || (echo SSR encountered an error and had to quit. See above.  Exit code: $?)
       ___     
      /  ___   
  ___/  /  ___ 
    ___/  /    SSR (SoundScape Renderer) 0.4.2
         /     
               
Website: <http://spatialaudio.net/ssr/>
Contact: <ssr@spatialaudio.net>

Copyright © 2014 Institut für Nachrichtentechnik, Universität Rostock
Copyright © 2012 Quality & Usability Lab, Telekom Innovation Labs, TU Berlin

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
objc[709]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff9d234b68) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x1115dfcd8). One of the two will be used. Which one is undefined.
Error: AudioPlayer::Soundfile: ERROR:  Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-JACK: Unable to open JACK-client" (audioplayer.cpp:310)
Warning: AudioPlayer: Initialization of soundfile '../../Users/naohiro/Music/example-scenes-master/audio/marimba.wav' failed! (audioplayer.cpp:87)
Error: AudioPlayer::Soundfile: ERROR:  Connecting chainsetup failed: "Enabling chainsetup: AUDIOIO-JACK: Unable to open JACK-client" (audioplayer.cpp:310)
Warning: AudioPlayer: Initialization of soundfile '../../Users/naohiro/Music/example-scenes-master/audio/marimba.wav' failed! (audioplayer.cpp:87)

@ghost
Copy link
Author

ghost commented Jan 15, 2018

jackaudio/jack2#144

It seems like Jack is not working on OSX Sierra...

@JensAhrens
Copy link
Contributor

There once was a patched JACK version available for Mac OS X El Capitan, which we referenced here: http://ssr.readthedocs.io/en/latest/operation.html#jack-on-mac-os-x

It seems to have disappeared but I found a file with the same name here: https://github.com/jackaudio/jackaudio.github.com/releases/download/1.9.11/JackOSX.0.92_b3.zip

The one obtained from the original link works on Sierra, too. I haven't tested the latter one. Please do so and report here!

Thanks!

@ghost
Copy link
Author

ghost commented Jan 25, 2018

Thank you for your info, Jens.

I found old version at the following link below.
But I could install none of them
http://www.jackosx.com/download-old-versions.html
Jack OSX version 0.87

This 64/32 bits package can only be installed on Snow Leopard system

Jack OSX version 0.88

This 64/32 bits package can only be installed on Snow Leopard system

Jack OSX version 0.89

This 64/32 bits package can only be installed on Snow Leopard and later systems

jackOSX Version 0.92_b3 is the only one I could install, but it is the one I have problem with...

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

No branches or pull requests

3 participants