Open RadarNyan opened 1 month ago
I've been trying to track this down but do not have enough knowledge of Android development to make anything out of it. All I've found is that this problem is caused by some slow binder calls which block the ControllerHandler thread.
You can try my fork that may have solved the issue: ClassicOldSong/moonlight-android/releases
Uncheck Enable battery status report for gamepad
in the settings.
You can try my fork that may have solved the issue: ClassicOldSong/moonlight-android/releases
Uncheck
Enable battery status report for gamepad
in the settings.
I just installed your fork and unchecked the option, but the problem persists. All inputs still hang for 10 seconds with the same slow binder log.
Thanks, @ClassicOldSong ! I managed to produce a duct tape fix by commenting out
private final HandlerThread backgroundHandlerThread;
private final Handler backgroundThreadHandler;
And every error lines caused by commenting out the above two lines in ControllerHandler.java
, now the problem is gone.
There was a typo in my commit, that option was not actually set... Just pushed a new release, you can try again...
The AI generated string didn't match the actual key of the checkbox...
There was a typo in my commit, that option was not actually set... Just pushed a new release, you can try again...
The AI generated string didn't match the actual key of the checkbox...
Yup, the new upload works.
Describe the bug
Input (phone touchscreen & Xbox controller connected to the phone via Bluetooth) would freeze randomly during streaming, but video/audio are not affected.
Steps to reproduce
Affected games
All.
Other Moonlight clients
PC
Moonlight adjusted settings
No
Moonlight adjusted settings (please complete the following information)
N/A
Moonlight default settings
Yes
Gamepad-related connection issue
No
Gamepad-related input issue
No
Gamepad-related streaming issue
Yes
Android version
Android 12
Device model
POCO X4 GT (Dimensity 8100)
Server PC OS version
Windows 10 21H2
Server PC GeForce Experience version
N/A
Server PC Nvidia GPU driver version
N/A
Server PC antivirus and firewall software
Windows defaults
Screenshots
No response
Relevant log output
Inputs freeze at the first log (about audio) and resumes at the last (so about 10 seconds.)
Additional context
I managed to find an OTG connector and connected the Xbox controller to the phone via USB, but I failed to reproduce the issue, so it's Bluetooth-specific.
I've tried to play the same games with the Steam Link app, and despite the horrible performance and messy steam input mapping system, I haven't experienced any freezing, so this can't be caused by "hardware limitation due to the antenna wiring" as mentioned in the moonlight-streaming troubleshooting page.