thestr4ng3r / chiaki

Moved to https://git.sr.ht/~thestr4ng3r/chiaki - Free and Open Source PS4 Remote Play Client
https://git.sr.ht/~thestr4ng3r/chiaki
2.17k stars 373 forks source link

Occasionally Chiaki doesn't take controller input at all #384

Closed Fredrum closed 3 years ago

Fredrum commented 3 years ago

Environment

Describe the bug Now and then when I'm starting up a new session the DS4 (also happens with my xbox controller) Chiaki won't take any controller input at all. Its completely dead. I then have to un-plug and re-plug the usb controller a few times to get it working again. Often I can do that without having to restart the game session.

To Reproduce Steps to reproduce the behavior:

  1. Sorry I don't know how to trigger this one.

Expected behavior Controllers should always work. This is especially bad when it happens over bluetooth mode as then I'll have to actuall turn off bluetooth on the Pi get the USB cable and re-plug a few times and the go back to bluetooth.

Log Files pi@sensitpi:~/chiaki/chiaki/build $ gui/chiaki qt5ct: using qt5ct plugin QEGLPlatformContext: Failed to create context: 3009 [I] Discovery Service detected new host with id 709E29C0519B [I] Logging to file /home/pi/.local/share/Chiaki/Chiaki/log/chiaki_session_2020-11-22_22-25-40-496496.log [I] Chiaki Version 1.3.0 [I] Raspberry Pi Decoder initialized PulseAudioService: pa_context_connect() failed [I] Starting session request [I] Trying to request session from 192.168.1.248:9295 [I] Connected to 192.168.1.248:9295 [I] Sending session request [I] Session request successful [I] Starting ctrl [I] Ctrl connected to 192.168.1.248:9295 [I] Sending ctrl request [I] Ctrl received http header as response [I] Ctrl received ctrl request http response [I] Ctrl connected [I] Ctrl received Login message: success [W] Received Ctrl Message with unknown type 0x6 [W] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [W] 0 00 00 ..
[I] Ctrl received valid Session Id: 1606112741PNHV4J3MNU4WPA3ABIFGHHDEE22CE6TK2FIOGCWTEYASFHM4H222ZGZ4RZKYPNY7 [I] Starting Senkusha [I] Takion connecting (version 7) [I] Takion enabled Don't Fragment Bit [I] Takion sent init [I] Takion received init ack with remote tag 0x144f9281, outbound streams: 0x64, inbound streams: 0x64 [I] Takion sent cookie [I] Takion received cookie ack [I] Takion connected [I] Senkusha sending big [I] Senkusha successfully received bang [I] Senkusha Ping Test with count 10 starting [I] Senkusha enabled echo [I] Senkusha sending Ping 0 of test index 0 [I] Senkusha received Pong, RTT = 0.541 ms [I] Senkusha sending Ping 1 of test index 0 [I] Senkusha received Pong, RTT = 0.524 ms [I] Senkusha sending Ping 2 of test index 0 [I] Senkusha received Pong, RTT = 0.507 ms [I] Senkusha sending Ping 3 of test index 0 [I] Senkusha received Pong, RTT = 0.518 ms [I] Senkusha sending Ping 4 of test index 0 [I] Senkusha received Pong, RTT = 0.441 ms [I] Senkusha sending Ping 5 of test index 0 [I] Senkusha received Pong, RTT = 0.474 ms [I] Senkusha sending Ping 6 of test index 0 [I] Senkusha received Pong, RTT = 0.558 ms [I] Senkusha sending Ping 7 of test index 0 [I] Senkusha received Pong, RTT = 0.515 ms [I] Senkusha sending Ping 8 of test index 0 [I] Senkusha received Pong, RTT = 0.438 ms [I] Senkusha sending Ping 9 of test index 0 [I] Senkusha received Pong, RTT = 0.520 ms [I] Senkusha disabled echo [I] Senkusha determined average RTT = 0.503 ms [I] Senkusha starting MTU in test with min 576, max 1454, retries 3, timeout 5 ms [I] Senkusha MTU request 1454 (min 576, max 1454), id 1, attempt 0 [I] Senkusha MTU 1454 success [I] Senkusha determined inbound MTU 1454 [I] Senkusha starting MTU out test with min 576, max 1454, retries 3, timeout 5 ms [I] Senkusha sent initial client MTU command [I] Senkusha received expected Client MTU Command [I] Senkusha MTU 1454 out ping attempt 0 [I] Senkusha MTU ping 1454 success [I] Senkusha determined outbound MTU 1454 [I] Senkusha sending final Client MTU Command [I] Senkusha is disconnecting [I] Senkusha closed takion [I] Senkusha completed successfully [I] Takion connecting (version 9) [I] Takion sent init [I] Takion received init ack with remote tag 0x30c1c81b, outbound streams: 0x64, inbound streams: 0x64 [I] Takion sent cookie [I] Takion received cookie ack [I] Takion connected [I] StreamConnection sending big [I] BANG received [I] StreamConnection successfully received bang [I] Crypt has become available. Re-checking MACs of 0 packets [D] StreamConnection received audio header: [D] offset 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [D] 0 02 10 00 00 bb 80 00 00 01 e0 00 00 00 01 ..............
[I] Audio Header: [I] channels = 2 [I] bits = 16 [I] rate = 48000 [I] frame size = 480 [I] unknown = 1 [I] ChiakiOpusDecoder initialized [I] Audio Device default opened with 2 channels @ 48000 Hz, buffer size 19200 [I] Video Profiles: [I] 0: 1280x720 [I] StreamConnection successfully received streaminfo [I] Switched to profile 0, resolution: 1280x720 [I] Ctrl received Heartbeat, sending reply [I] Ctrl received Heartbeat, sending reply [I] Ctrl received Heartbeat, sending reply [I] Ctrl received Heartbeat, sending reply [I] Ctrl received Heartbeat, sending reply [I] StreamConnection is disconnecting [I] StreamConnection sending Disconnect [I] StreamConnection was requested to stop [I] StreamConnection closed takion [I] StreamConnection completed successfully [I] Ctrl requested to stop [I] Ctrl stopped [I] Session has quit

Additional context I wonder if this is connected to the other bug I just posted about?