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

Crashing when unlocking #2995

Closed
2 tasks done
DimitrakisT opened this issue Feb 3, 2022 · 2 comments
Closed
2 tasks done

Crashing when unlocking #2995

DimitrakisT opened this issue Feb 3, 2022 · 2 comments

Comments

@DimitrakisT
Copy link

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: Windows 10
  • scrcpy version: 1.22
  • installation method: Windows release
  • device model: Redmi Note 8 pro
  • Android version: 10

Describe the bug
I just migrated to v 1.22, and I have the following issue (didn't have it with 1.18):

  • Connect the USB cable to the phone
  • Launch scrcpy (launches and displays the lockscreen)
  • unlock the phone (using pin in scrcpy window)
    x scrcpy stops

If now I relaunch scrcpy, everything works normally. It is only the 1st time that scrcpy closes
The console displays: WARN: Device disconnected

Thanks

@rom1v
Copy link
Collaborator

rom1v commented Feb 3, 2022

Crashing when unlocking

The console displays: WARN: Device disconnected

It's not a "crash", it's an adb disconnection (every other adb connection would also close at the same time, for example adb shell or adb logcat).

This probably happens because some USB mode is enabled only when unlocked (MTP, etc), so unlocking resets the USB/adb connection. See #1382 (comment)

@DimitrakisT
Copy link
Author

DimitrakisT commented Feb 3, 2022

Thanks.
Please close the incident!

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

2 participants