Keeps disconnecting and reconnecting?

Hi, I’m trying to stream audio from my Ubuntu 20.04.3 LTS Asus laptop to an Android 10 smartphone, It was working on the 0.21 update but after updating from 0.21 to 0.22 it keeps disconnecting and reconnecting every few seconds even after updating the Android app as well?

Hi, that’s strange. Could you please post the logs from the desktop app?

Restarting the laptop a few times seems to have fixed the issue and AudioRelay is working good again

Having to restart multiple times is definitely strange! If you have the time, I wouldn’t mind getting the logs. :slightly_smiling_face:

My app also happens this all the time.

My log:

2021-10-04 15:46:33,011 INFO [IpcAudio] Audio socket connected
2021-10-04 15:46:33,011 INFO [IpcMessages] Messages socket created
2021-10-04 15:46:33,167 INFO [IpcBackendStatusProbe] Backend is ready
2021-10-04 15:46:33,167 INFO [AR] Requesting startup settings...
2021-10-04 15:46:33,885 INFO [AR] Windows' backend devices: [WindowsAudioDevice(id={0.0.0.00000000}.{3feeac12-ffe3-4cb5-b2b7-b60088b11cde}, type=Render, name=Alto-falantes (Realtek High Definition Audio), isDefault=true, sampleRate=48000, channels=2), WindowsAudioDevice(id={0.0.1.00000000}.{3ed75a72-b033-48f3-8fed-9e32358e91eb}, type=Capture, name=Microphone (ARCANO AM-BLACK-1 ), isDefault=false, sampleRate=48000, channels=1), WindowsAudioDevice(id={0.0.0.00000000}.{0c8b4d0b-516d-4c6c-aa78-4e96c82b9212}, type=Render, name=Realtek Digital Output (Realtek High Definition Audio), isDefault=false, sampleRate=48000, channels=2)]
2021-10-04 15:46:35,317 INFO [AR] Network addresses: NetworkInfo(broadcastAddresses=[192.168.15.255], localAddresses=[192.168.15.11])
2021-10-04 15:47:35,875 INFO [ClientListener] Remote device connected: 192.168.15.10
2021-10-04 15:47:35,920 INFO [IpcWindowsCaptureService] Asking backend to start capture...
2021-10-04 15:47:35,984 INFO [AR] Loading opus.dll...
2021-10-04 15:47:35,992 INFO [AR] Loading native-opus.dll...
2021-10-04 15:47:36,523 INFO [AR] No data emitted by pipeline, sending empty values...
2021-10-04 15:47:38,027 INFO [AR] Audio pipeline is emitting values
2021-10-04 15:48:06,927 ERROR [server_session] Stopping the session due to an error
java.net.SocketTimeoutException: Read timed out
	at sun.nio.ch.NioSocketImpl.timedRead(Unknown Source) ~[?:?]
	at sun.nio.ch.NioSocketImpl.implRead(Unknown Source) ~[?:?]
	at sun.nio.ch.NioSocketImpl.read(Unknown Source) ~[?:?]
	at sun.nio.ch.NioSocketImpl$1.read(Unknown Source) ~[?:?]
	at java.net.Socket$SocketInputStream.read(Unknown Source) ~[?:?]
	at java.net.Socket$SocketInputStream.read(Unknown Source) ~[?:?]
	at com.google.protobuf.AbstractParser.parsePartialDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.google.protobuf.AbstractParser.parseDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.google.protobuf.AbstractParser.parseDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.google.protobuf.AbstractParser.parseDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.azefsw.audioconnect.i.c.q.a(SourceFile:1119) ~[audiorelay.jar:?]
	at com.azefsw.audioconnect.k.h.a.a.c.a(SourceFile:42) ~[audiorelay.jar:?]
	at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.Observable.subscribe(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.Scheduler$DisposeTask.run(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.internal.schedulers.ScheduledRunnable.run(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.internal.schedulers.ScheduledRunnable.call(Unknown Source) [com.azefsw.merged.module:?]
	at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
	at java.lang.Thread.run(Unknown Source) [?:?]
2021-10-04 15:48:06,933 INFO [server_session] Remote device disconnected: 192.168.15.10...
2021-10-04 15:48:06,934 INFO [IpcWindowsCaptureService] Asking backend to stop capture...
2021-10-04 15:48:10,058 INFO [ClientListener] Remote device connected: 192.168.15.10
2021-10-04 15:48:10,077 INFO [IpcWindowsCaptureService] Asking backend to start capture...
2021-10-04 15:48:10,108 INFO [AR] Loading opus.dll...
2021-10-04 15:48:10,110 INFO [AR] Loading native-opus.dll...
2021-10-04 15:48:10,614 INFO [AR] Audio pipeline is emitting values
2021-10-04 15:48:54,124 INFO [AR] No data emitted by pipeline, sending empty values...
2021-10-04 15:49:12,125 ERROR [server_session] Stopping the session due to an error
java.net.SocketTimeoutException: Read timed out
	at sun.nio.ch.NioSocketImpl.timedRead(Unknown Source) ~[?:?]
	at sun.nio.ch.NioSocketImpl.implRead(Unknown Source) ~[?:?]
	at sun.nio.ch.NioSocketImpl.read(Unknown Source) ~[?:?]
	at sun.nio.ch.NioSocketImpl$1.read(Unknown Source) ~[?:?]
	at java.net.Socket$SocketInputStream.read(Unknown Source) ~[?:?]
	at java.net.Socket$SocketInputStream.read(Unknown Source) ~[?:?]
	at com.google.protobuf.AbstractParser.parsePartialDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.google.protobuf.AbstractParser.parseDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.google.protobuf.AbstractParser.parseDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.google.protobuf.AbstractParser.parseDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.azefsw.audioconnect.i.c.q.a(SourceFile:1119) ~[audiorelay.jar:?]
	at com.azefsw.audioconnect.k.h.a.a.c.a(SourceFile:42) ~[audiorelay.jar:?]
	at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.Observable.subscribe(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.Scheduler$DisposeTask.run(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.internal.schedulers.ScheduledRunnable.run(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.internal.schedulers.ScheduledRunnable.call(Unknown Source) [com.azefsw.merged.module:?]
	at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
	at java.lang.Thread.run(Unknown Source) [?:?]
2021-10-04 15:49:12,127 INFO [server_session] Remote device disconnected: 192.168.15.10...
2021-10-04 15:49:12,130 INFO [IpcWindowsCaptureService] Asking backend to stop capture...
2021-10-04 15:49:15,150 INFO [ClientListener] Remote device connected: 192.168.15.10
2021-10-04 15:49:15,159 INFO [IpcWindowsCaptureService] Asking backend to start capture...
2021-10-04 15:49:15,209 INFO [AR] Loading opus.dll...
2021-10-04 15:49:15,211 INFO [AR] Loading native-opus.dll...
2021-10-04 15:49:15,720 INFO [AR] No data emitted by pipeline, sending empty values...
2021-10-04 15:49:46,167 ERROR [server_session] Stopping the session due to an error
java.net.SocketTimeoutException: Read timed out
	at sun.nio.ch.NioSocketImpl.timedRead(Unknown Source) ~[?:?]
	at sun.nio.ch.NioSocketImpl.implRead(Unknown Source) ~[?:?]
	at sun.nio.ch.NioSocketImpl.read(Unknown Source) ~[?:?]
	at sun.nio.ch.NioSocketImpl$1.read(Unknown Source) ~[?:?]
	at java.net.Socket$SocketInputStream.read(Unknown Source) ~[?:?]
	at java.net.Socket$SocketInputStream.read(Unknown Source) ~[?:?]
	at com.google.protobuf.AbstractParser.parsePartialDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.google.protobuf.AbstractParser.parseDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.google.protobuf.AbstractParser.parseDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.google.protobuf.AbstractParser.parseDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(Unknown Source) ~[com.azefsw.merged.module:?]
	at com.azefsw.audioconnect.i.c.q.a(SourceFile:1119) ~[audiorelay.jar:?]
	at com.azefsw.audioconnect.k.h.a.a.c.a(SourceFile:42) ~[audiorelay.jar:?]
	at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.Observable.subscribe(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.Scheduler$DisposeTask.run(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.internal.schedulers.ScheduledRunnable.run(Unknown Source) [com.azefsw.merged.module:?]
	at io.reactivex.internal.schedulers.ScheduledRunnable.call(Unknown Source) [com.azefsw.merged.module:?]
	at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
	at java.lang.Thread.run(Unknown Source) [?:?]
2021-10-04 15:49:46,169 INFO [server_session] Remote device disconnected: 192.168.15.10...
2021-10-04 15:49:46,171 INFO [IpcWindowsCaptureService] Asking backend to stop capture...
2021-10-04 15:49:48,744 INFO [ClientListener] Remote device connected: 192.168.15.10
2021-10-04 15:49:48,796 INFO [IpcWindowsCaptureService] Asking backend to start capture...
2021-10-04 15:49:48,842 INFO [AR] Loading opus.dll...
2021-10-04 15:49:48,844 INFO [AR] Loading native-opus.dll...
2021-10-04 15:49:49,353 INFO [AR] No data emitted by pipeline, sending empty values...
2021-10-04 15:50:19,799 ERROR [server_session] Stopping the session due to an error

Hello!
I have the same issue: audiois disconnecting and reconnection after about 2-3 seconds every 10-20 seconds (not exact values). The phone app says that it is connected, desktop app shows “No connected device yet” when the reconnect happens.
I am on arch 5.14.9 using AudioRelay 0.22.
Installed from .tar.gz
Rebooting doesn affect the performance.

Here is the log:

WARNING: Unknown module: com.azefsw.audioconnect.serialization specified to --add-opens
[MVIKotlin]: Main thread id is undefined, main thread assert is disabled
2021-10-07 14:31:33,827 INFO [AR] Network addresses: NetworkInfo(broadcastAddresses=[192.168.178.255], localAddresses=[192.168.178.32])
2021-10-07 14:31:33,848 INFO [AR] Waiting for devices from PortAudio...
2021-10-07 14:31:33,852 INFO [AR] Checking for update...
2021-10-07 14:31:33,854 INFO [server_manager] Starting the server...
2021-10-07 14:31:33,854 INFO [AR] Loading libnative-portaudio.so...
2021-10-07 14:31:33,866 INFO [PortAudioDeviceBackend] Status initializing
---- JPortAudio version 1246976, PortAudio V19.7.0-devel, revision unknown
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
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 -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
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 -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
2021-10-07 14:31:34,060 INFO [PortAudioDeviceBackend] Status initialized
2021-10-07 14:31:34,105 INFO [AR] Supported: PortAudioDevice(index=0, name=HDA Intel PCH: ALC236 Analog (hw:0,0), type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=2, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.034829931972789115, defaultHighLatency=0.0)
2021-10-07 14:31:34,127 INFO [AR] Supported: PortAudioDevice(index=0, name=HDA Intel PCH: ALC236 Analog (hw:0,0), type=Render, isDefault=false, defaultSampleRate=44100.0, channels=2, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,130 INFO [AR] Unsupported: PortAudioDevice(index=1, name=HDA Intel PCH: HDMI 0 (hw:0,3), type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,144 INFO [AR] Supported: PortAudioDevice(index=1, name=HDA Intel PCH: HDMI 0 (hw:0,3), type=Render, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,144 INFO [AR] Unsupported: PortAudioDevice(index=2, name=HDA Intel PCH: HDMI 1 (hw:0,7), type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,145 INFO [AR] Supported: PortAudioDevice(index=2, name=HDA Intel PCH: HDMI 1 (hw:0,7), type=Render, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,146 INFO [AR] Unsupported: PortAudioDevice(index=3, name=HDA Intel PCH: HDMI 2 (hw:0,8), type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,147 INFO [AR] Supported: PortAudioDevice(index=3, name=HDA Intel PCH: HDMI 2 (hw:0,8), type=Render, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,147 INFO [AR] Unsupported: PortAudioDevice(index=4, name=HDA Intel PCH: HDMI 3 (hw:0,9), type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,148 INFO [AR] Supported: PortAudioDevice(index=4, name=HDA Intel PCH: HDMI 3 (hw:0,9), type=Render, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,149 INFO [AR] Unsupported: PortAudioDevice(index=5, name=HDA Intel PCH: HDMI 4 (hw:0,10), type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,150 INFO [AR] Supported: PortAudioDevice(index=5, name=HDA Intel PCH: HDMI 4 (hw:0,10), type=Render, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,150 INFO [AR] Unsupported: PortAudioDevice(index=6, name=HDA NVidia: HDMI 1 (hw:1,7), type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,160 INFO [AR] Supported: PortAudioDevice(index=6, name=HDA NVidia: HDMI 1 (hw:1,7), type=Render, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,160 INFO [AR] Unsupported: PortAudioDevice(index=7, name=HDA NVidia: HDMI 2 (hw:1,8), type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,161 INFO [AR] Supported: PortAudioDevice(index=7, name=HDA NVidia: HDMI 2 (hw:1,8), type=Render, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,162 INFO [AR] Unsupported: PortAudioDevice(index=8, name=HDA NVidia: HDMI 3 (hw:1,9), type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,163 INFO [AR] Supported: PortAudioDevice(index=8, name=HDA NVidia: HDMI 3 (hw:1,9), type=Render, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,163 INFO [AR] Unsupported: PortAudioDevice(index=9, name=HDA NVidia: HDMI 4 (hw:1,10), type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,164 INFO [AR] Supported: PortAudioDevice(index=9, name=HDA NVidia: HDMI 4 (hw:1,10), type=Render, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,165 INFO [AR] Unsupported: PortAudioDevice(index=10, name=HDA NVidia: HDMI 5 (hw:1,11), type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,166 INFO [AR] Supported: PortAudioDevice(index=10, name=HDA NVidia: HDMI 5 (hw:1,11), type=Render, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,177 INFO [AR] Supported: PortAudioDevice(index=11, name=sysdefault, type=Capture, isDefault=false, defaultSampleRate=48000.0, channels=128, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.021333333333333333, defaultHighLatency=0.0)
2021-10-07 14:31:34,198 INFO [AR] Supported: PortAudioDevice(index=11, name=sysdefault, type=Render, isDefault=false, defaultSampleRate=48000.0, channels=128, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.021333333333333333, defaultHighLatency=0.021333333333333333)
2021-10-07 14:31:34,198 INFO [AR] Unsupported: PortAudioDevice(index=12, name=front, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,223 INFO [AR] Supported: PortAudioDevice(index=12, name=front, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=2, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,223 INFO [AR] Unsupported: PortAudioDevice(index=13, name=surround40, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,225 INFO [AR] Supported: PortAudioDevice(index=13, name=surround40, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=2, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,225 INFO [AR] Unsupported: PortAudioDevice(index=14, name=surround51, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,226 INFO [AR] Supported: PortAudioDevice(index=14, name=surround51, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=2, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,226 INFO [AR] Unsupported: PortAudioDevice(index=15, name=surround71, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,228 INFO [AR] Supported: PortAudioDevice(index=15, name=surround71, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=2, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,228 INFO [AR] Unsupported: PortAudioDevice(index=16, name=hdmi, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:34,237 INFO [AR] Supported: PortAudioDevice(index=16, name=hdmi, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,240 INFO [AR] Showing main window...
2021-10-07 14:31:34,247 INFO [AR] Supported: PortAudioDevice(index=17, name=samplerate, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=128, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.023219954648526078, defaultHighLatency=0.0)
2021-10-07 14:31:34,273 INFO [AR] Supported: PortAudioDevice(index=17, name=samplerate, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=128, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.007755102040816327, defaultHighLatency=0.023219954648526078)
2021-10-07 14:31:34,275 INFO [AR] Supported: PortAudioDevice(index=18, name=speexrate, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=128, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.023219954648526078, defaultHighLatency=0.0)
2021-10-07 14:31:34,277 INFO [AR] Supported: PortAudioDevice(index=18, name=speexrate, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=128, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.007755102040816327, defaultHighLatency=0.023219954648526078)
2021-10-07 14:31:34,293 INFO [AR] Supported: PortAudioDevice(index=19, name=pipewire, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=64, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.034829931972789115, defaultHighLatency=0.0)
2021-10-07 14:31:34,310 INFO [AR] Supported: PortAudioDevice(index=19, name=pipewire, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=64, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,314 INFO [AR] Supported: PortAudioDevice(index=20, name=pulse, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=32, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.034829931972789115, defaultHighLatency=0.0)
2021-10-07 14:31:34,317 INFO [AR] Supported: PortAudioDevice(index=20, name=pulse, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=32, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
2021-10-07 14:31:34,712 INFO [AR] Found no update
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1742
Expression 'AlsaOpen( hostApi, parameters, streamDir, &pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1774
2021-10-07 14:31:35,373 INFO [AR] Unsupported: PortAudioDevice(index=21, name=speex, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=1, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.034829931972789115, defaultHighLatency=0.0), error: -9985, Device unavailable
2021-10-07 14:31:35,375 INFO [AR] Supported: PortAudioDevice(index=21, name=speex, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=1, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1742
Expression 'AlsaOpen( hostApi, parameters, streamDir, &pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1774
2021-10-07 14:31:36,404 INFO [AR] Unsupported: PortAudioDevice(index=22, name=upmix, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.034829931972789115, defaultHighLatency=0.0), error: -9985, Device unavailable
2021-10-07 14:31:36,405 INFO [AR] Supported: PortAudioDevice(index=22, name=upmix, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=8, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1742
Expression 'AlsaOpen( hostApi, parameters, streamDir, &pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1774
2021-10-07 14:31:37,434 INFO [AR] Unsupported: PortAudioDevice(index=23, name=vdownmix, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=6, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.034829931972789115, defaultHighLatency=0.0), error: -9985, Device unavailable
2021-10-07 14:31:37,436 INFO [AR] Supported: PortAudioDevice(index=23, name=vdownmix, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=6, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.008707482993197279, defaultHighLatency=0.034829931972789115)

ALSA lib pcm_dsnoop.c:600:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:600:(snd_pcm_dsnoop_open) unable to open slave

Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1742
Expression 'AlsaOpen( hostApi, parameters, streamDir, &pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1774
2021-10-07 14:31:38,585 INFO [AR] Unsupported: PortAudioDevice(index=24, name=default, type=Capture, isDefault=true, defaultSampleRate=48000.0, channels=128, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.021333333333333333, defaultHighLatency=0.0), error: -9985, Device unavailable
2021-10-07 14:31:38,611 INFO [AR] Supported: PortAudioDevice(index=24, name=default, type=Render, isDefault=true, defaultSampleRate=48000.0, channels=128, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.021333333333333333, defaultHighLatency=0.021333333333333333)
2021-10-07 14:31:38,611 INFO [AR] Unsupported: PortAudioDevice(index=25, name=dmix, type=Capture, isDefault=false, defaultSampleRate=48000.0, channels=0, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=-1.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:38,612 INFO [AR] Supported: PortAudioDevice(index=25, name=dmix, type=Render, isDefault=false, defaultSampleRate=48000.0, channels=2, hostApiIndex=0, hostApiType=ALSA, hostApiName=ALSA, defaultLowLatency=0.021333333333333333, defaultHighLatency=0.021333333333333333)
2021-10-07 14:31:38,612 INFO [AR] Unsupported: PortAudioDevice(index=26, name=Default, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:38,613 INFO [AR] Supported: PortAudioDevice(index=26, name=Default, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=32, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.0, defaultHighLatency=0.0)
2021-10-07 14:31:38,613 INFO [AR] Supported: PortAudioDevice(index=27, name=Default, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=32, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.0, defaultHighLatency=0.0)
2021-10-07 14:31:38,613 INFO [AR] Unsupported: PortAudioDevice(index=27, name=Default, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:38,613 INFO [AR] Unsupported: PortAudioDevice(index=28, name=GP106 High Definition Audio Controller Digital Stereo (HDMI), type=Capture, isDefault=false, defaultSampleRate=48000.0, channels=0, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.98, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:38,613 INFO [AR] Supported: PortAudioDevice(index=28, name=GP106 High Definition Audio Controller Digital Stereo (HDMI), type=Render, isDefault=false, defaultSampleRate=48000.0, channels=2, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.599294, defaultHighLatency=0.98)
2021-10-07 14:31:38,613 INFO [AR] Unsupported: PortAudioDevice(index=29, name=Built-in Audio Analog Stereo, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:38,613 INFO [AR] Supported: PortAudioDevice(index=29, name=Built-in Audio Analog Stereo, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=2, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.0, defaultHighLatency=0.0)
2021-10-07 14:31:38,613 INFO [AR] Supported: PortAudioDevice(index=30, name=Monitor of GP106 High Definition Audio Controller Digital Stereo (HDMI), type=Capture, isDefault=false, defaultSampleRate=48000.0, channels=2, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.0, defaultHighLatency=0.0)
2021-10-07 14:31:38,614 INFO [AR] Unsupported: PortAudioDevice(index=30, name=Monitor of GP106 High Definition Audio Controller Digital Stereo (HDMI), type=Render, isDefault=false, defaultSampleRate=48000.0, channels=0, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:38,614 INFO [AR] Supported: PortAudioDevice(index=31, name=Monitor of Built-in Audio Analog Stereo, type=Capture, isDefault=false, defaultSampleRate=44100.0, channels=2, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.0, defaultHighLatency=0.0)
2021-10-07 14:31:38,614 INFO [AR] Unsupported: PortAudioDevice(index=31, name=Monitor of Built-in Audio Analog Stereo, type=Render, isDefault=false, defaultSampleRate=44100.0, channels=0, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:31:38,614 INFO [AR] Supported: PortAudioDevice(index=32, name=Built-in Audio Analog Stereo, type=Capture, isDefault=false, defaultSampleRate=48000.0, channels=2, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.0, defaultHighLatency=0.0)
2021-10-07 14:31:38,614 INFO [AR] Unsupported: PortAudioDevice(index=32, name=Built-in Audio Analog Stereo, type=Render, isDefault=false, defaultSampleRate=48000.0, channels=0, hostApiIndex=2, hostApiType=PULSEAUDIO, hostApiName=PulseAudio, defaultLowLatency=0.0, defaultHighLatency=0.0), error: -9998, Invalid number of channels
2021-10-07 14:32:06,565 INFO [ClientListener] Remote device connected: 192.168.178.25
2021-10-07 14:32:06,614 INFO [AR] Starting capture on Monitor of GP106 High Definition Audio Controller Digital Stereo (HDMI)...
2021-10-07 14:32:06,615 INFO [AR] Stream opened, latency: 0.0
2021-10-07 14:32:06,623 INFO [AR] Loading libopus.so...
2021-10-07 14:32:06,624 INFO [AR] Loading libnative-opus.so...
2021-10-07 14:32:07,127 INFO [AR] No data emitted by pipeline, sending empty values...
2021-10-07 14:32:07,627 INFO [AR] Audio pipeline is emitting values
2021-10-07 14:32:41,251 INFO [AR] Sentry initialized


//Audio disconnected


2021-10-07 14:32:41,256 ERROR [server_session] Stopping the session due to an error
java.net.SocketTimeoutException: Read timed out
        at sun.nio.ch.NioSocketImpl.timedRead(Unknown Source) ~[?:?]
        at sun.nio.ch.NioSocketImpl.implRead(Unknown Source) ~[?:?]
        at sun.nio.ch.NioSocketImpl.read(Unknown Source) ~[?:?]
        at sun.nio.ch.NioSocketImpl$1.read(Unknown Source) ~[?:?]
        at java.net.Socket$SocketInputStream.read(Unknown Source) ~[?:?]
        at java.net.Socket$SocketInputStream.read(Unknown Source) ~[?:?]
        at com.google.protobuf.AbstractParser.parsePartialDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
        at com.google.protobuf.AbstractParser.parseDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
        at com.google.protobuf.AbstractParser.parseDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
        at com.google.protobuf.AbstractParser.parseDelimitedFrom(Unknown Source) ~[com.azefsw.merged.module:?]
        at com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(Unknown Source) ~[com.azefsw.merged.module:?]
        at com.azefsw.audioconnect.i.c.q.a(SourceFile:1119) ~[audiorelay.jar:?]
        at com.azefsw.audioconnect.k.h.a.a.c.a(SourceFile:42) ~[audiorelay.jar:?]
        at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(Unknown Source) [com.azefsw.merged.module:?]
        at io.reactivex.Observable.subscribe(Unknown Source) [com.azefsw.merged.module:?]
        at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(Unknown Source) [com.azefsw.merged.module:?]
        at io.reactivex.Scheduler$DisposeTask.run(Unknown Source) [com.azefsw.merged.module:?]
        at io.reactivex.internal.schedulers.ScheduledRunnable.run(Unknown Source) [com.azefsw.merged.module:?]
        at io.reactivex.internal.schedulers.ScheduledRunnable.call(Unknown Source) [com.azefsw.merged.module:?]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
        at java.lang.Thread.run(Unknown Source) [?:?]
2021-10-07 14:32:41,261 INFO [server_session] Remote device disconnected: 192.168.178.25...
2021-10-07 14:32:41,261 INFO [AR] Stopping audio capture...
2021-10-07 14:32:44,309 INFO [ClientListener] Remote device connected: 192.168.178.25
2021-10-07 14:32:44,330 INFO [AR] Starting capture on Monitor of GP106 High Definition Audio Controller Digital Stereo (HDMI)...
2021-10-07 14:32:44,330 INFO [AR] Stream opened, latency: 0.0
2021-10-07 14:32:44,331 INFO [AR] Loading libopus.so...
2021-10-07 14:32:44,331 INFO [AR] Loading libnative-opus.so...
2021-10-07 14:32:44,832 INFO [AR] No data emitted by pipeline, sending empty values...
2021-10-07 14:32:45,332 INFO [AR] Audio pipeline is emitting values

Thank you in advance

Thanks for the logs @Lucas and @Xxusername_Andrei.
Could you please confirm that you’re using the version 0.22 on Android?

I am using the latest version from Play Store. It says it is 0.12.1 .

Edit: Disregard the previous message, further investigation is necessary. :frowning:
Could you still try the Android version 0.22? The apk is available here.

Thank you very much!
Installed the 0.22.0. Much better! There is some occasional stuttering. Probably because of my local connection.

Well, the same problem occurs again. App measured 1.840s latency.

I was using the latest version from Play Store which is 0.12.1
I updated the site to 0.22 and stopped disconnecting, anything I’ll come back here and notice.
Thanks