Odd Stability Issues


Unstable connection when connected “directly” via WiFi. Connection is stable via USB. Connection is stable via WiFi routed back to a VPN. Connection is stable on 4G while driving around town when connected to a VPN.

On WiFi I can have packet loss issues almost instantly, or they can take an hour to appear. Sometimes the connection ends randomly. None of these issues appear on USB, WiFi via VPN or 4G via VPN.

When a WiFi connection ends, I have to disconnect completely from the network then reconnect. Clearing the app’s data/cache and force stop/restarting it do not work.


“Modern” Windows PC (running 11, had same issues on 10)
Samsung Galaxy Note 10+ 5G - Android 12/OneUI 4.0


Here is the error produced after reproducing the issue, looks very generic though.

2022-03-13 00:53:15,641 INFO Remote device connected:
2022-03-13 00:53:15,648 INFO Received client config, clientVersion: 0.23.1, os: ANDROID, osVersion: Android API 31
2022-03-13 00:53:15,650 INFO Asking backend to start capture. EventSync: true, AudioConfig: AudioConfig(sampleRate=48000, bits=16, channels=2), AudioDevice: Speakers (Realtek(R) Audio),
2022-03-13 00:53:15,678 INFO Loading opus.dll…
2022-03-13 00:53:15,679 INFO Loading native-opus.dll…
2022-03-13 00:53:16,181 INFO No data emitted by pipeline, sending empty values…
2022-03-13 00:53:30,182 INFO Audio pipeline is emitting values
2022-03-13 00:55:05,693 ERROR Stopping the session due to an error
asu: null
at asv.a(SourceFile:17) ~[audiorelay.jar:?]
at aBZ.a(SourceFile:79) ~[audiorelay.jar:?]
at bbn.a(SourceFile:40) [audiorelay.jar:?]
at aXb.b(SourceFile:12284) [audiorelay.jar:?]
at bcU.run(SourceFile:96) [audiorelay.jar:?]
at aXi.run(SourceFile:578) [audiorelay.jar:?]
at bee.run(SourceFile:66) [audiorelay.jar:?]
at bee.call(SourceFile:57) [audiorelay.jar:?]
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) [?:?]
2022-03-13 00:55:05,694 INFO Remote device disconnected:…
2022-03-13 00:55:05,694 INFO Asking backend to stop capture…

I can provide any extra information as it is requested!

Strange indeed.

What’s your router’s model? It’s maybe trying to prevent network congestion by throttling the traffic created by AudioRelay.
You could check its configuration and play around with its Quality Of Service (QoS) settings.
Or whatever performance/network improving setting there is.

If you’re using any custom firewall, I’d try to temporarily disable them and see if it changes anything.

From what you’ve written, I don’t see much else to try.

As for the error, it simply indicates a connection loss.