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 just closed when I open it #3041

Open
BaselCS opened this issue Feb 19, 2022 · 9 comments
Open

scrcpy just closed when I open it #3041

BaselCS opened this issue Feb 19, 2022 · 9 comments

Comments

@BaselCS
Copy link

BaselCS commented Feb 19, 2022

  • OS: [win 10]
  • scrcpy version: [1.22]
  • installation method: [ Windows zip file]
  • device model:Huawei p30 lite
  • Android version: [android10 ]

Describe the bug
Whenever I open Scrcpy if my screen close it flash and Scrcpy closed if it's not Scrcpy just Closed
I don't think there is any problem in SDK because I am programming in Flutter and there isn't any problem

@rom1v
Copy link
Collaborator

rom1v commented Feb 19, 2022

Run scrcpy-console.bat to see the error.

@BaselCS
Copy link
Author

BaselCS commented Feb 20, 2022

Screenshot_1

@rom1v
Copy link
Collaborator

rom1v commented Feb 20, 2022

Did you install the 64 bit version while you have a 32 bit system?

@BaselCS
Copy link
Author

BaselCS commented Feb 20, 2022

No, I'm 64 bit

@rom1v
Copy link
Collaborator

rom1v commented Feb 20, 2022

Double-click on open_a_terminal_here.bat and type scrcpy.

If it does not work, what about .\scrcpy.exe? Otherwise, try the 32 bit version.

@BaselCS
Copy link
Author

BaselCS commented Feb 20, 2022

When I tried scrcpy I got:

scrcpy 1.22 <https://github.com/Genymobile/scrcpy> C:\****************\scrcpy-win64-v1.22 - 1\scrcpy-server: 1 file pushed, 0 skipped. 46.4 MB/s (40955 bytes in 0.001s) [server] INFO: Device: HUAWEI MAR-LX1M (Android 10) INFO: Renderer: direct3d INFO: Initial texture: 1080x2312 WARN: Device disconnected [server] ERROR: Exception on thread Thread[main,5,main] android.media.MediaCodec$CodecException: Error 0xfffffc0e at android.media.MediaCodec.native_configure(Native Method) at android.media.MediaCodec.configure(MediaCodec.java:2023) at android.media.MediaCodec.configure(MediaCodec.java:1951) at com.genymobile.scrcpy.ScreenEncoder.configure(ScreenEncoder.java:274) at com.genymobile.scrcpy.ScreenEncoder.internalStreamScreen(ScreenEncoder.java:94) at com.genymobile.scrcpy.ScreenEncoder.streamScreen(ScreenEncoder.java:73) at com.genymobile.scrcpy.Server.scrcpy(Server.java:100) at com.genymobile.scrcpy.Server.main(Server.java:326) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:359)

@rom1v
Copy link
Collaborator

rom1v commented Feb 20, 2022

See #2990

@BaselCS
Copy link
Author

BaselCS commented Feb 20, 2022

Thx it works very well.
But I found the screen goes black whenever I open a thing that needs a password, and I can not write except in English.
These aren't big problems for me I don't need Scrcpy to do it now but I would see it in the future.
thx 4 ur hard work.

@rom1v
Copy link
Collaborator

rom1v commented Feb 20, 2022

It's expected if you use Android 12. See #2129.

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