As title. I’m am trying to run my java app (XT-Audio lib) on Snap but it doesn’t work.
It works well natively and on Flatpak but on Snap it doesn’t work even if I opened the Jack, pulseaudio plug.
This is the error:
[Instance #1] 2024-11-29 15:14:13,347 ERROR o.d.a.AudioLoopbackNative [pool-30-thread-1] No line matching interface TargetDataLine supporting format PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, big-endian is supported.
[Instance #1] 2024-11-29 15:14:13,347 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Pro Audio: JACK (true)
[Instance #1] 2024-11-29 15:14:13,347 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] System Audio: ALSA (true)
[Instance #1] 2024-11-29 15:14:13,347 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Consumer Audio: PULSE_AUDIO (true)
[Instance #1] 2024-11-29 15:14:13,347 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] System JACK:
[Instance #1] 2024-11-29 15:14:13,347 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Capabilities: [TIME, FULL_DUPLEX, CHANNEL_MASK, XRUN_DETECTION]
[Instance #1] 2024-11-29 15:14:13,347 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Default input: JACK (0)
[Instance #1] 2024-11-29 15:14:13,347 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Default output: JACK (0)
[Instance #1] 2024-11-29 15:14:13,347 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Input device count: 1
[Instance #1] 2024-11-29 15:14:13,349 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Jack.cpp:12: in function XtiJackErrorCallback: Cannot connect to server socket err = No such file or directory
[Instance #1] 2024-11-29 15:14:13,349 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Jack.cpp:12: in function XtiJackErrorCallback: Cannot connect to server request channel
[Instance #1] 2024-11-29 15:14:13,351 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Jack.cpp:12: in function XtiJackErrorCallback: jack server is not running or cannot be started
[Instance #1] 2024-11-29 15:14:13,351 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Jack.cpp:12: in function XtiJackErrorCallback: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[Instance #1] 2024-11-29 15:14:13,351 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Jack.cpp:12: in function XtiJackErrorCallback: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[Instance #1] 2024-11-29 15:14:13,351 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Shared.cpp:111: in function XtiCreateError: JACK Service Error: 3 (No such process)
[Instance #1] 2024-11-29 15:14:13,351 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] JACK Service Error: 3 (No such process)
[Instance #1] 2024-11-29 15:14:13,351 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Output device count: 1
[Instance #1] 2024-11-29 15:14:13,353 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Jack.cpp:12: in function XtiJackErrorCallback: Cannot connect to server socket err = No such file or directory
[Instance #1] 2024-11-29 15:14:13,353 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Jack.cpp:12: in function XtiJackErrorCallback: Cannot connect to server request channel
[Instance #1] 2024-11-29 15:14:13,355 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Jack.cpp:12: in function XtiJackErrorCallback: jack server is not running or cannot be started
[Instance #1] 2024-11-29 15:14:13,355 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Jack.cpp:12: in function XtiJackErrorCallback: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[Instance #1] 2024-11-29 15:14:13,355 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Jack.cpp:12: in function XtiJackErrorCallback: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
[Instance #1] 2024-11-29 15:14:13,355 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Shared.cpp:111: in function XtiCreateError: JACK Service Error: 3 (No such process)
[Instance #1] 2024-11-29 15:14:13,355 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] JACK Service Error: 3 (No such process)
[Instance #1] 2024-11-29 15:14:13,355 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] System ALSA:
[Instance #1] 2024-11-29 15:14:13,355 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Capabilities: [TIME, LATENCY, AGGREGATION, XRUN_DETECTION]
[Instance #1] 2024-11-29 15:14:13,355 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Service.cpp:48: in function OpenDeviceList: snd_device_name_hint(-1, "pcm", &hints)
[Instance #1] 2024-11-29 15:14:13,355 TRACE o.d.a.AudioLoopbackSoftware [pool-30-thread-1] Shared.cpp:111: in function XtiCreateError: ALSA Endpoint Error: 4294967294 (No such file or directory)
[Instance #1] 2024-11-29 15:14:13,355 ERROR o.d.a.AudioLoopbackSoftware [pool-30-thread-1] ALSA Endpoint Error: 4294967294 (No such file or directory)
Any idea on a possible solution?
This is the code that throws that error:
And this is my current snapcraft.yaml