Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrcpy exits with error on device screen on/off #5104

Open
MangoTCF opened this issue Jul 17, 2024 · 7 comments
Open

scrcpy exits with error on device screen on/off #5104

MangoTCF opened this issue Jul 17, 2024 · 7 comments

Comments

@MangoTCF
Copy link

MangoTCF commented Jul 17, 2024

Environment

  • OS: Arch linux 6.9.9-zen1-1-zen
  • Scrcpy version: 2.5
  • Installation method: paru -S
  • Device model: [Xiaomi] POCO 23013PC75G (Android 14)
  • Android version: 14

Describe the bug

scrcpy exits with ERROR: Controller error when i turn my phone screen on/off (lock/unlock my phone?)

mango@mtcf in ~ λ scrcpy --keyboard=disabled --mouse=disabled --no-video-playback -Vverbose -w \

scrcpy 2.5 <https://github.com/Genymobile/scrcpy>
INFO: No video playback, no recording, no V4L2 sink: video disabled
INFO: ADB device found:
INFO:     --> (tcpip)  192.168.0.15:5555               device  23013PC75G
DEBUG: Device serial: 192.168.0.15:5555
DEBUG: Using server: /usr/share/scrcpy/scrcpy-server
/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 126.4 MB/s (69624 bytes in 0.001s)
[server] INFO: Device: [Xiaomi] POCO 23013PC75G (Android 14)
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
DEBUG: Using icon: /usr/share/icons/hicolor/256x256/apps/scrcpy.png
[server] DEBUG: Using audio encoder: 'c2.android.opus.encoder'
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 24.1.3-arch1.1
INFO: Trilinear filtering disabled
DEBUG: Demuxer 'audio': starting thread
VERBOSE: [Audio] Inserting initial buffering silence: 240 samples
VERBOSE: [Audio] Inserting initial buffering silence: 240 samples
VERBOSE: [Audio] Inserting initial buffering silence: 240 samples
VERBOSE: [Audio] Inserting initial buffering silence: 240 samples
VERBOSE: [Audio] Inserting initial buffering silence: 240 samples
VERBOSE: [Audio] Inserting initial buffering silence: 240 samples
VERBOSE: [Audio] Buffering: target=2400 avg=2592.000244 cur=2640 compensation=-192
VERBOSE: [Audio] Buffering: target=2400 avg=2520.346924 cur=2575 compensation=-120
VERBOSE: [Audio] Buffering: target=2400 avg=2493.369141 cur=2304 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2475.840820 cur=2064 compensation=0
VERBOSE: [Audio] Buffering: target=2400 avg=2477.398438 cur=2064 compensation=0
DEBUG: User requested to quit
DEBUG: quit...
DEBUG: Demuxer 'audio': end of frames
DEBUG: Receiver stopped
[server] DEBUG: Controller stopped
[server] DEBUG: Device message sender stopped
[server] DEBUG: Audio encoder stopped
DEBUG: Server disconnected
DEBUG: Server terminated

Please do not post screenshots of your terminal, just post the content as text instead.

@rom1v
Copy link
Collaborator

rom1v commented Jul 17, 2024

@itsm3v1nc3
Copy link

Hi, Same issue as mine.
see the attached screenshot below. I tried the #2995 & #1382 still having an error.
image

@18637
Copy link

18637 commented Jul 22, 2024

This is perhaps a UI 6.1 issue? After updating one phone to UI6.1 it now does the same.

image

The same phone on UI6.0 does not have this issue?

I will note that I ma not using the latest Scrcpy server to get around a ADB push issue.

@rom1v
Copy link
Collaborator

rom1v commented Jul 22, 2024

I will note that I ma not using the latest Scrcpy server to get around a ADB push issue.

What's the problem with adb push?

If the reason is that latest adb do not work on Windows 7, you can replace the adb-related files in the latest scrcpy version.

@18637
Copy link

18637 commented Jul 22, 2024

No, this was the issue.
#4638
I ended up getting by, by removing the push from Scrcpy, pushing manually and not cleaning up the server when done. But I just have not had a chance to modify the latest version.

@MangoTCF
Copy link
Author

My issue manifests only when connecting the phone over wireless debugging. I tried to to adb tcpip 5555 bit it still disconnects on lock/unlock

@18637
Copy link

18637 commented Aug 16, 2024

My issue manifests only when connecting the phone over wireless debugging. I tried to to adb tcpip 5555 bit it still disconnects on lock/unlock

Yes, that is the same for me. @MangoTCF only happed on a device that is running the latest android update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants