moonlight-stream / moonlight-android

GameStream client for Android
GNU General Public License v3.0
4.13k stars 654 forks source link

Gamepad stuttering #868

Closed quartzsaber closed 2 years ago

quartzsaber commented 4 years ago

Both gamepad axis and buttons seem to stutter. For example, when viewed using Dolphin-emu input settings, holding a button is registered as ramdomly releasing button, resulting a random blink on test screen.

It's same with axes, and occurs both in on-screen gamepad and bluetooth one. The on-screen gamepad's visual does not blink, so it looks like the app registers input but does not send it correctly. I'm on LAN, so it's probably not related to packet drop.

I'm using latest nvidia driver and geforce experience. I force re-installed driver first and installed geforce experience from nvidia website.

cgutman commented 4 years ago

I'm not seeing this behavior in my local testing. I wrote a test app that polls XInput controllers as fast as it can and reports when the buttons change.

Can you try streaming this test app through Moonlight and check if you can reproduce the issue with it?

XinputTest.zip

quartzsaber commented 4 years ago

I think updating driver to 452.06 fixed the issue.

I'll re-open the issue later if I see this issue again.

Thank you a lot!

quartzsaber commented 4 years ago

So it wasn't fixed after all.

I was playing Persona 4 on Steam for like 20 minutes. At some random point, this bug started appearing again. I quit the game and launched your sample app, and this bug was still there. It happens with all buttons and all axes.

I can confirm that rebooting computer did NOT fixed this bug, but erasing the moonlight app's data DID fix this bug.

I'll report later if playing the game with default moonlight settings will trigger this bug again.

This is the log for holding button for a brief time. (Around ~1 second)

Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
Gamepad 0: Buttons changed! 0000 -> 0008
Gamepad 0: Buttons changed! 0008 -> 0000
cgutman commented 4 years ago

Next time it happens, can you try to Force Stop the Moonlight app instead of clearing data to see if that resolves it too? Don't just swipe away the app, go into settings where the Clear Data button is and tap Force Stop.

Did you have on-screen controls enabled? Did you have "automatic gamepad presence detection" enabled? What game controller were you testing with?

Do you know how to get logcat logs from Android? If not, I can send you a step-by-step guide.

quartzsaber commented 4 years ago

I figured out how to reproduce it!

It happens when locking the screen (turning it off) while streaming. Once this bug is triggered, it's there until force stopping the app. I'm using MIUI, so maybe that was the issue.

I have on-screen controls enabled, but I don't think this bug is related to that. I was using bluetooth gamepad last week.

I found nothing too interesting in logcat, but I'm posting it just in case.

This is when turning screen off:

2020-09-13 11:00:39.892 521-970/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:6679,c:521) queueBuffer: fps=55.69 dur=1005.59 max=36.26 min=0.47
2020-09-13 11:00:39.915 521-521/? I/SurfaceFlinger: screenshot (Background for -SurfaceView - com.limelight/com.limelight.Game#0)
2020-09-13 11:00:39.923 521-521/? I/SurfaceFlinger: screenshot (SurfaceView - com.limelight/com.limelight.Game#0)
2020-09-13 11:00:39.923 521-521/? I/SurfaceFlinger: screenshot (com.limelight/com.limelight.Game#0)
2020-09-13 11:00:39.973 521-521/? I/BufferQueueConsumer: [com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13657,api:1,p:6679,c:521) setDefaultBufferSize: width=1080 height=2264
2020-09-13 11:00:39.991 6679-7838/? I/com.limelight.LimeLog: Too much pending audio data: 40 ms
2020-09-13 11:00:40.008 521-581/? I/BufferQueueProducer: [com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13657,api:1,p:6679,c:521) disconnect(P): api 1
2020-09-13 11:00:40.008 521-581/? I/BufferQueueConsumer: [com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13657,api:1,p:-1,c:521) getReleasedBuffers: returning mask 0xffffffffffffffff
2020-09-13 11:00:40.009 521-581/? I/BufferQueueProducer: [com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13657,api:1,p:6679,c:521) connect(P): api=1 producer=(6679:com.limelight) producerControlledByApp=true
2020-09-13 11:00:40.024 521-521/? I/BufferQueueConsumer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:6679,c:521) setDefaultBufferSize: width=1080 height=607
2020-09-13 11:00:40.035 521-581/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:6679,c:521) RunningBehind, queued size:2
2020-09-13 11:00:40.044 521-2048/? I/BufferQueueProducer: [com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13657,api:1,p:6679,c:521) queueBuffer: fps=2.41 dur=7891.52 max=7594.79 min=14.03
2020-09-13 11:00:40.056 521-970/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:6679,c:521) RunningBehind, queued size:2
2020-09-13 11:00:40.061 521-1850/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:6679,c:521) RunningBehind, queued size:2
2020-09-13 11:00:40.081 521-1850/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:6679,c:521) RunningBehind, queued size:2
2020-09-13 11:00:40.092 521-1850/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:6679,c:521) RunningBehind, queued size:2
2020-09-13 11:00:40.149 521-2048/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:6679,c:521) RunningBehind, queued size:2
2020-09-13 11:00:40.170 521-1850/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:6679,c:521) RunningBehind, queued size:2
2020-09-13 11:00:40.236 521-521/? I/SurfaceFlinger: screenshot (Background for -SurfaceView - com.limelight/com.limelight.Game#0)
2020-09-13 11:00:40.242 521-521/? I/SurfaceFlinger: screenshot (SurfaceView - com.limelight/com.limelight.Game#0)
2020-09-13 11:00:40.243 521-521/? I/SurfaceFlinger: screenshot (com.limelight/com.limelight.Game#0)
2020-09-13 11:00:40.259 6679-7838/? I/com.limelight.LimeLog: Too much pending audio data: 40 ms
2020-09-13 11:00:40.270 521-2048/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:6679,c:521) disconnect(P): api -1
2020-09-13 11:00:40.270 521-2048/? I/BufferQueueConsumer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:-1,c:521) getReleasedBuffers: returning mask 0xffffffffffffffff
2020-09-13 11:00:40.277 1122-1211/? I/WindowManager: Focus moving from Window{b2742dd u0 com.limelight/com.limelight.Game} to null
2020-09-13 11:00:40.297 521-970/? I/BufferQueueProducer: [com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13657,api:1,p:6679,c:521) disconnect(P): api 1
2020-09-13 11:00:40.298 521-970/? I/BufferQueueConsumer: [com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13657,api:1,p:-1,c:521) getReleasedBuffers: returning mask 0xffffffffffffffff
2020-09-13 11:00:40.299 6679-7834/? W/com.limelight.LimeLog: Dequeue input buffer ran long: 34 ms
2020-09-13 11:00:40.299 521-970/? W/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:-1,c:521) queueBuffer() in a disconnected state
2020-09-13 11:00:40.299 521-970/? E/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:-1,c:521) queueBuffer: BufferQueue has no connected producer
2020-09-13 11:00:40.300 521-970/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:-1,c:521) disconnect(P): api 3
2020-09-13 11:00:40.300 521-970/? E/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:-1,c:521) disconnect: not connected (req=3)
2020-09-13 11:00:40.323 1122-2211/? I/WindowManager: Relayout Window{aaa87de u0 com.limelight/com.limelight.AppView}: oldVis=4 newVis=0 focusMayChange = true
2020-09-13 11:00:40.324 521-970/? I/BufferQueueConsumer: [com.limelight/com.limelight.AppView#0](this:0x7e5f10f000,id:13667,api:0,p:-1,c:521) setConsumerName: com.limelight/com.limelight.AppView#0
2020-09-13 11:00:40.324 521-970/? I/BufferQueueConsumer: [com.limelight/com.limelight.AppView#0](this:0x7e5f10f000,id:13667,api:0,p:-1,c:521) setDefaultBufferSize: width=1080 height=2340
2020-09-13 11:00:40.328 1122-1211/? I/WindowManager: Focus moving from null to Window{aaa87de u0 com.limelight/com.limelight.AppView}
2020-09-13 11:00:40.329 521-970/? I/BufferQueueProducer: [com.limelight/com.limelight.AppView#0](this:0x7e5f10f000,id:13667,api:1,p:6679,c:521) connect(P): api=1 producer=(6679:com.limelight) producerControlledByApp=true
2020-09-13 11:00:40.339 6679-7862/? I/com.limelight.LimeLog: Starting fast poll for DESKTOP-79G9CBD (192.168.42.13, 121.170.91.130, null, null)
2020-09-13 11:00:40.346 521-970/? I/BufferQueueProducer: [com.limelight/com.limelight.AppView#0](this:0x7e5f10f000,id:13667,api:1,p:6679,c:521) disconnect(P): api 1
2020-09-13 11:00:40.346 521-970/? I/BufferQueueConsumer: [com.limelight/com.limelight.AppView#0](this:0x7e5f10f000,id:13667,api:1,p:-1,c:521) getReleasedBuffers: returning mask 0xffffffffffffffff
2020-09-13 11:00:40.350 521-970/? I/BufferQueueProducer: [com.limelight/com.limelight.AppView#0](this:0x7e5f10f000,id:13667,api:1,p:6679,c:521) connect(P): api=1 producer=(6679:com.limelight) producerControlledByApp=true
2020-09-13 11:00:40.548 521-521/? I/BufferQueueConsumer: [com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13657,api:1,p:-1,c:-1) disconnect(C)
2020-09-13 11:00:40.548 521-521/? I/BufferQueueConsumer: [b2742dd com.limelight/com.limelight.Game#0](this:0x7e649ea800,id:13655,api:0,p:-1,c:-1) disconnect(C)
2020-09-13 11:00:40.548 521-521/? I/BufferQueueConsumer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:-1,c:-1) disconnect(C)
2020-09-13 11:00:40.548 521-521/? I/BufferQueue: [com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13657,api:1,p:-1,c:-1) ~BufferQueueCore
2020-09-13 11:00:40.569 1122-1211/? I/WindowManager: Focus moving from Window{aaa87de u0 com.limelight/com.limelight.AppView} to null
2020-09-13 11:00:40.589 521-581/? I/BufferQueueProducer: [com.limelight/com.limelight.AppView#0](this:0x7e5f10f000,id:13667,api:1,p:6679,c:521) disconnect(P): api 1
2020-09-13 11:00:40.589 521-581/? I/BufferQueueConsumer: [com.limelight/com.limelight.AppView#0](this:0x7e5f10f000,id:13667,api:1,p:-1,c:521) getReleasedBuffers: returning mask 0xffffffffffffffff
2020-09-13 11:00:40.773 521-521/? I/BufferQueue: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e64966800,id:13658,api:3,p:-1,c:-1) ~BufferQueueCore
2020-09-13 11:02:05.444 521-970/? I/BufferQueue: [b2742dd com.limelight/com.limelight.Game#0](this:0x7e649ea800,id:13655,api:0,p:-1,c:-1) ~BufferQueueCore

And this is re-connecting: ("연결 수립중" means "Establishing connection")

2020-09-13 11:03:14.560 521-970/? I/BufferQueueProducer: [AtchDlg:com.limelight/com.limelight.AppView#0](this:0x7e64966800,id:13671,api:1,p:6679,c:521) queueBuffer: fps=6.72 dur=2531.12 max=2266.66 min=14.75
2020-09-13 11:03:14.583 521-1850/? I/BufferQueueProducer: [AtchDlg:com.limelight/com.limelight.AppView#0](this:0x7e64966800,id:13671,api:1,p:6679,c:521) disconnect(P): api 1
2020-09-13 11:03:14.583 521-1850/? I/BufferQueueConsumer: [AtchDlg:com.limelight/com.limelight.AppView#0](this:0x7e64966800,id:13671,api:1,p:-1,c:521) getReleasedBuffers: returning mask 0xffffffffffffffff
2020-09-13 11:03:14.585 521-1850/? I/BufferQueueConsumer: [Surface(name=a0ca26a AtchDlg:com.limelight/com.limelight.AppView)/@0x6fad4d1 - animation-leash#0](this:0x7e5f25d000,id:13675,api:0,p:-1,c:521) setConsumerName: Surface(name=a0ca26a AtchDlg:com.limelight/com.limelight.AppView)/@0x6fad4d1 - animation-leash#0
2020-09-13 11:03:14.585 521-1850/? I/BufferQueueConsumer: [Surface(name=a0ca26a AtchDlg:com.limelight/com.limelight.AppView)/@0x6fad4d1 - animation-leash#0](this:0x7e5f25d000,id:13675,api:0,p:-1,c:521) setDefaultBufferSize: width=2340 height=2340
2020-09-13 11:03:14.591 1122-1211/? I/WindowManager: Focus moving from Window{a0ca26a u0 AtchDlg:com.limelight/com.limelight.AppView EXITING} to Window{aaa87de u0 com.limelight/com.limelight.AppView}
2020-09-13 11:03:14.613 521-521/? I/SurfaceFlinger: screenshot (com.limelight/com.limelight.AppView#0)
2020-09-13 11:03:14.615 521-521/? I/SurfaceFlinger: screenshot (AtchDlg:com.limelight/com.limelight.AppView#0)
2020-09-13 11:03:14.689 1122-1211/? I/WindowManager: Focus moving from Window{aaa87de u0 com.limelight/com.limelight.AppView} to null
2020-09-13 11:03:14.718 6679-6679/? I/com.limelight.LimeLog: Using Android O+ native mouse capture
2020-09-13 11:03:14.723 6679-6679/? I/com.limelight.LimeLog: Examining decoder capabilities of OMX.MTK.VIDEO.DECODER.AVC
2020-09-13 11:03:14.723 6679-6679/? I/com.limelight.LimeLog: Decoder OMX.MTK.VIDEO.DECODER.AVC supports required profile
2020-09-13 11:03:14.723 6679-6679/? I/com.limelight.LimeLog: Selected AVC decoder: OMX.MTK.VIDEO.DECODER.AVC
2020-09-13 11:03:14.723 6679-6679/? I/com.limelight.LimeLog: No HEVC decoder found
2020-09-13 11:03:14.726 6679-6679/? I/com.limelight.LimeLog: Counting OSC gamepad
2020-09-13 11:03:14.726 6679-6679/? I/com.limelight.LimeLog: Enumerated 0 gamepads
2020-09-13 11:03:14.726 6679-6679/? I/com.limelight.LimeLog: Examining display mode: 1080x2340x60.330006
2020-09-13 11:03:14.727 6679-6679/? I/com.limelight.LimeLog: Selected display mode: 1080x2340x60.330006
2020-09-13 11:03:14.728 6679-6679/? I/com.limelight.LimeLog: Display refresh rate: 60.330006
2020-09-13 11:03:14.728 6679-6679/? I/com.limelight.LimeLog: Adjusting FPS target for screen to 59
2020-09-13 11:03:14.732 6679-6679/? I/com.limelight.LimeLog: Counting OSC gamepad
2020-09-13 11:03:14.732 6679-6679/? I/com.limelight.LimeLog: Enumerated 0 gamepads
2020-09-13 11:03:14.743 521-970/? W/SurfaceFlinger: Attempting to set client state on removed layer: AtchDlg:com.limelight/com.limelight.AppView#0
2020-09-13 11:03:14.743 521-970/? W/SurfaceFlinger: Attempting to destroy on removed layer: AtchDlg:com.limelight/com.limelight.AppView#0
2020-09-13 11:03:14.749 521-2048/? I/BufferQueueConsumer: [ec59215 com.limelight/com.limelight.Game#0](this:0x7e5f05b000,id:13679,api:0,p:-1,c:521) setConsumerName: ec59215 com.limelight/com.limelight.Game#0
2020-09-13 11:03:14.749 521-2048/? I/BufferQueueConsumer: [ec59215 com.limelight/com.limelight.Game#0](this:0x7e5f05b000,id:13679,api:0,p:-1,c:521) setDefaultBufferSize: width=2340 height=2340
2020-09-13 11:03:14.757 521-521/? I/BufferQueueConsumer: [Surface(name=a0ca26a AtchDlg:com.limelight/com.limelight.AppView)/@0x6fad4d1 - animation-leash#0](this:0x7e5f25d000,id:13675,api:0,p:-1,c:-1) disconnect(C)
2020-09-13 11:03:14.757 521-521/? I/BufferQueueConsumer: [a0ca26a AtchDlg:com.limelight/com.limelight.AppView#0](this:0x7e649ea800,id:13670,api:0,p:-1,c:-1) disconnect(C)
2020-09-13 11:03:14.757 521-521/? I/BufferQueueConsumer: [AtchDlg:com.limelight/com.limelight.AppView#0](this:0x7e64966800,id:13671,api:1,p:-1,c:-1) disconnect(C)
2020-09-13 11:03:14.759 521-521/? I/BufferQueue: [AtchDlg:com.limelight/com.limelight.AppView#0](this:0x7e64966800,id:13671,api:1,p:-1,c:-1) ~BufferQueueCore
2020-09-13 11:03:14.786 1122-3444/? I/WindowManager: Relayout Window{ec59215 u0 com.limelight/com.limelight.Game}: oldVis=4 newVis=0 focusMayChange = true
2020-09-13 11:03:14.787 521-970/? I/BufferQueueConsumer: [com.limelight/com.limelight.Game#0](this:0x7e5f110800,id:13681,api:0,p:-1,c:521) setConsumerName: com.limelight/com.limelight.Game#0
2020-09-13 11:03:14.787 521-970/? I/BufferQueueConsumer: [com.limelight/com.limelight.Game#0](this:0x7e5f110800,id:13681,api:0,p:-1,c:521) setDefaultBufferSize: width=2264 height=1080
2020-09-13 11:03:14.793 521-1850/? I/BufferQueueProducer: [com.limelight/com.limelight.Game#0](this:0x7e5f110800,id:13681,api:1,p:6679,c:521) connect(P): api=1 producer=(6679:com.limelight) producerControlledByApp=true
2020-09-13 11:03:14.797 521-970/? I/BufferQueueConsumer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:0,p:-1,c:521) setConsumerName: SurfaceView - com.limelight/com.limelight.Game#0
2020-09-13 11:03:14.797 521-970/? I/BufferQueueConsumer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:0,p:-1,c:521) setDefaultBufferSize: width=1920 height=1080
2020-09-13 11:03:14.869 1122-1254/? I/WindowManager: Screen frozen for +273ms due to Window{ec59215 u0 com.limelight/com.limelight.Game}
2020-09-13 11:03:14.893 521-580/? I/BufferQueueProducer: [com.limelight/com.limelight.AppView#0](this:0x7e5f10f000,id:13667,api:1,p:6679,c:521) disconnect(P): api 1
2020-09-13 11:03:14.893 521-580/? I/BufferQueueConsumer: [com.limelight/com.limelight.AppView#0](this:0x7e5f10f000,id:13667,api:1,p:-1,c:521) getReleasedBuffers: returning mask 0xffffffffffffffff
2020-09-13 11:03:14.940 521-521/? I/BufferQueueConsumer: [com.limelight/com.limelight.AppView#0](this:0x7e5f10f000,id:13667,api:1,p:-1,c:-1) disconnect(C)
2020-09-13 11:03:14.940 521-521/? I/BufferQueue: [com.limelight/com.limelight.AppView#0](this:0x7e5f10f000,id:13667,api:1,p:-1,c:-1) ~BufferQueueCore
2020-09-13 11:03:16.014 6679-8992/? I/com.limelight.LimeLog: Resumed existing game session
2020-09-13 11:03:16.159 521-580/? I/BufferQueue: [a0ca26a AtchDlg:com.limelight/com.limelight.AppView#0](this:0x7e649ea800,id:13670,api:0,p:-1,c:-1) ~BufferQueueCore
2020-09-13 11:03:16.160 521-1850/? I/BufferQueue: [Surface(name=a0ca26a AtchDlg:com.limelight/com.limelight.AppView)/@0x6fad4d1 - animation-leash#0](this:0x7e5fa42000,id:13672,api:0,p:-1,c:-1) ~BufferQueueCore
2020-09-13 11:03:16.160 521-2048/? I/BufferQueue: [Surface(name=a0ca26a AtchDlg:com.limelight/com.limelight.AppView)/@0x6fad4d1 - animation-leash#0](this:0x7e5f25d000,id:13675,api:0,p:-1,c:-1) ~BufferQueueCore
2020-09-13 11:03:16.654 6679-8992/? I/com.limelight.LimeLog: Decoder blacklisted for adaptive playback
2020-09-13 11:03:16.668 6679-8992/? I/com.limelight.LimeLog: Configuring with format: {mime=video/avc, width=1280, frame-rate=60, height=720}
2020-09-13 11:03:16.669 521-2048/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:3,p:6679,c:521) connect(P): api=3 producer=(6679:com.limelight) producerControlledByApp=true
2020-09-13 11:03:16.669 521-2048/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:3,p:6679,c:521) disconnect(P): api 3
2020-09-13 11:03:16.669 521-2048/? I/BufferQueueConsumer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:3,p:-1,c:521) getReleasedBuffers: returning mask 0xffffffffffffffff
2020-09-13 11:03:16.669 521-2048/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:3,p:6679,c:521) connect(P): api=3 producer=(6679:com.limelight) producerControlledByApp=true
2020-09-13 11:03:16.674 6679-8992/? I/com.limelight.LimeLog: Input format: {mime=video/avc, width=1280, adaptive-playback=1, height=720}
2020-09-13 11:03:16.674 6679-8992/? I/com.limelight.LimeLog: Using codec OMX.MTK.VIDEO.DECODER.AVC for hardware decoding video/avc
2020-09-13 11:03:16.686 6679-8992/? I/com.limelight.LimeLog: Audio channel config: 0xC
2020-09-13 11:03:16.695 6679-8992/? I/com.limelight.LimeLog: Audio track configuration: 1920 true
2020-09-13 11:03:16.742 1122-1211/? I/WindowManager: Focus moving from Window{e371d07 u0 연결 수립중 EXITING} to Window{ec59215 u0 com.limelight/com.limelight.Game}
2020-09-13 11:03:17.229 6679-9038/? I/com.limelight.LimeLog: Patching level_idc to 32
2020-09-13 11:03:17.229 6679-9038/? I/com.limelight.LimeLog: Patching num_ref_frames in SPS
2020-09-13 11:03:17.229 6679-9038/? I/com.limelight.LimeLog: Patching bitstream restrictions
2020-09-13 11:03:17.263 6679-9036/? I/com.limelight.LimeLog: Output format changed
2020-09-13 11:03:17.263 6679-9036/? I/com.limelight.LimeLog: New output format: {crop-right=1279, color-format=2130706433, slice-height=736, mime=video/raw, hdr-static-info=java.nio.HeapByteBuffer[pos=0 lim=25 cap=25], stride=1280, color-standard=4, color-transfer=3, crop-bottom=719, crop-left=0, width=1280, color-range=2, crop-top=0, height=720}
2020-09-13 11:03:18.277 521-970/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:3,p:6679,c:521) queueBuffer: fps=51.33 dur=1012.99 max=37.03 min=1.87
2020-09-13 11:03:18.762 521-1850/? I/BufferQueueProducer: [com.limelight/com.limelight.Game#0](this:0x7e5f110800,id:13681,api:1,p:6679,c:521) queueBuffer: fps=0.51 dur=3910.62 max=3875.04 min=35.59
2020-09-13 11:03:18.933 521-581/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:3,p:6679,c:521) RunningBehind, queued size:2
2020-09-13 11:03:18.979 521-2048/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:3,p:6679,c:521) RunningBehind, queued size:2
2020-09-13 11:03:19.000 521-2048/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:3,p:6679,c:521) RunningBehind, queued size:2
2020-09-13 11:03:19.046 521-970/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:3,p:6679,c:521) RunningBehind, queued size:2
2020-09-13 11:03:19.067 521-970/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:3,p:6679,c:521) RunningBehind, queued size:2
2020-09-13 11:03:19.291 521-581/? I/BufferQueueProducer: [SurfaceView - com.limelight/com.limelight.Game#0](this:0x7e5f044000,id:13682,api:3,p:6679,c:521) queueBuffer: fps=50.30 dur=1013.85 max=36.87 min=3.22
jjoselv commented 4 years ago

Same thing (or similar) happens to me. I'm using a wireless Xbox Controller connected to Steam Link, using https://github.com/moonlight-stream/moonlight-qt/releases/download/v2.2.0/Moonlight-SteamLink-2.2.0.zip (game Rocket League)

Mapping of controls seem wrong (1 button triggers 2 buttons at the same time). For example, Right and left trigger work as expected until fully pressed that for a moment changes to keyboard mapping and back to controler mapping.

Nvidia version: 452.06

quezeltje commented 3 years ago

Wow thank you for noticing it's the screen turning off that causes it. I hope they fix it soon. It's quite a hassle if you play bits trough the day. At least now I can play again knowing I have to reset the app xD (might make an automation for that)

So yeah, basically every time I turn off the screen while gaming it won't remove the old controller but it will back out of the game. So everytime I do this it adds a simultaneous controller. If you back out first and then turn off the screen the problem is not there. Altho once the problem occurs you do have to reset the app for it to work properly.

jjoselv commented 3 years ago

I'm not locking any screen, since is streaming from my pc to my Steam Link...

quezeltje commented 3 years ago

I'm not locking any screen, since is streaming from my pc to my Steam Link...

I suppose moonlight isn't in between then? This problem is (I think) only on android.

jjoselv commented 3 years ago

I use moonlight in my Steam Link

El sáb., 12 dic. 2020 12:30 p. m., quezeltje notifications@github.com escribió:

I'm not locking any screen, since is streaming from my pc to my Steam Link...

I suppose moonlight isn't in between then? This problem is (I think) only on android.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/moonlight-stream/moonlight-android/issues/868#issuecomment-743742457, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWWGL4HXP6SJQ5MLN4HRHDSUNH7HANCNFSM4QA2DPGA .

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

anunknowperson commented 2 years ago

This issue still exists with last moonlight version on MI 9T MIUI.