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 often crashes #1001

Closed
aoy1 opened this issue Dec 12, 2019 · 18 comments
Closed

Scrcpy often crashes #1001

aoy1 opened this issue Dec 12, 2019 · 18 comments

Comments

@aoy1
Copy link

aoy1 commented Dec 12, 2019

AMD 2700X
GTX1660
WIN10 1909
(Another old Intel machine is more stable)

@aoy1 aoy1 changed the title Using amd CPU, scrcpy often crashes Using AMD CPU, scrcpy often crashes Dec 12, 2019
@rom1v
Copy link
Collaborator

rom1v commented Dec 12, 2019

What do you mean by "crash"? What is printed in the console?

I guess the window closes because the connection with adb is lost (the device is disconnected): #281 #283.

(I edited the title, because it may not be related to AMD or intel CPU)

@rom1v rom1v changed the title Using AMD CPU, scrcpy often crashes Scrcpy often crashes Dec 12, 2019
@aoy1
Copy link
Author

aoy1 commented Dec 12, 2019

What do you mean by "crash"? What is printed in the console?

I guess the window closes because the connection with adb is lost (the device is disconnected): #281 #283.

(I edited the title, because it may not be related to AMD or intel CPU)

The window flickered directly.Sorry, I do n’t understand the code, it ’s for Xiaobai users, I use a software called Scrcpy_GUI_byCZ_V1.6.0.exe, there is no command line.Using a wifi connection

@rom1v
Copy link
Collaborator

rom1v commented Dec 12, 2019

Sorry, I do n’t understand the code

Which code? You don't need to understand code here. If the window closes itself, try another USB port/cable (see #281 #283).

I use a software called Scrcpy_GUI_byCZ_V1.6.0.exe,

I don't know what this is (probably a GUI which executes scrcpy).

If you still encounter the problem, use scrcpy directly and copy-paste what is printed in the console.

@aoy1
Copy link
Author

aoy1 commented Dec 12, 2019

Sorry, I do n’t understand the code

Which code? You don't need to understand code here. If the window closes itself, try another USB port/cable (see #281 #283).

I use a software called Scrcpy_GUI_byCZ_V1.6.0.exe,

I don't know what this is (probably a GUI which executes scrcpy).

If you still encounter the problem, use scrcpy directly and copy-paste what is printed in the console.

Sorry, I'm using gui software, I won't use the command line, so I can't see the console, and I don't know what is printed. The software is really great. I especially like using WiFi connection. If it is convenient, please test the stability of the WiFi connection. thank you very much

@rom1v
Copy link
Collaborator

rom1v commented Dec 12, 2019

Sorry, I'm using gui software, I won't use the command line, so I can't see the console, and I don't know what is printed.

OK, but if you don't want to run scrcpy.exe once to help finding the cause of your problem, I can't help you.

@aoy1
Copy link
Author

aoy1 commented Dec 12, 2019

Sorry, I'm using gui software, I won't use the command line, so I can't see the console, and I don't know what is printed.

OK, but if you don't want to run scrcpy.exe once to help finding the cause of your problem, I can't help you.

OK, I ’ll learn how to use it and give you a reply as soon as possible,
Even better if you can make a GUI

@rom1v
Copy link
Collaborator

rom1v commented Dec 12, 2019

OK, I ’ll learn how to use it and give you a reply as soon as possible,

It's easy: download the release and double-click on scrcpy.exe.

@aoy1
Copy link
Author

aoy1 commented Dec 12, 2019

OK, I ’ll learn how to use it and give you a reply as soon as possible,

It's easy: download the release and double-click on scrcpy.exe.

I mainly test the connection through WiFi. In fact, your instructions are very detailed. It should not be difficult. I will take a closer look. I'm at work now, I will try it when I get home

@aoy1
Copy link
Author

aoy1 commented Dec 12, 2019

image
image

@npes87184
Copy link
Contributor

I am NOT recommend using the wrapper version. Unless it is open source, we cannot assure that the author of the wrapper version not doing anything bad.

Using scrcpy is very easy in windwos, just download it from release page, enable usb debugging on your phone. Finally, double click scrcpy.exe.

@aoy1
Copy link
Author

aoy1 commented Dec 12, 2019

I am NOT recommend using the wrapper version. Unless it is open source, we cannot assure that the author of the wrapper version not doing anything bad.

Using scrcpy is very easy in windwos, just download it from release page, enable usb debugging on your phone. Finally, double click scrcpy.exe.

Thanks for your reminder, but WiFi connection seems a bit difficult

@aoy1
Copy link
Author

aoy1 commented Dec 13, 2019

OK, I ’ll learn how to use it and give you a reply as soon as possible,

It's easy: download the release and double-click on scrcpy.exe.

image
Please help me look, thank you very much.

@rom1v
Copy link
Collaborator

rom1v commented Dec 13, 2019

WARN: Device disconnected

You lost the connection to the device.

To confirm it, just run adb logcat in a separate terminal, it will end at the same time as scrcpy.

@aoy1
Copy link
Author

aoy1 commented Dec 13, 2019

WARN: Device disconnected

You lost the connection to the device.

For example, if you run in a separate terminal adb logcat, it will ends at the same time as scrcpy.

But I did nothing

@aoy1
Copy link
Author

aoy1 commented Dec 13, 2019

WARN: Device disconnected

You lost the connection to the device.
For example, if you run in a separate terminal adb logcat, it will ends at the same time as scrcpy.

But I did nothing

image
This is the interface that I reconnected and displayed.

@rom1v
Copy link
Collaborator

rom1v commented Dec 13, 2019

Oh, you have something on your computer which runs adb 31. Find this program and stop it, or make it use the same adb as scrcpy (41, the latest).

(please copy-paste text of console instead of screenshots)

@aoy1
Copy link
Author

aoy1 commented Dec 13, 2019

Oh, you have something on your computer which runs adb 31. Find this program and stop it, or make it use the same adb as scrcpy (41, the latest).

(please copy-paste text of console instead of screenshots)

By the way, I used an Android simulator. Can I replace adb.exe directly?

@aoy1
Copy link
Author

aoy1 commented Dec 13, 2019

I replaced the adb.exe in Android simulator and it is stable at present. Very happy, the problem has been solved, so cool, thank you. @ @rom1v

@rom1v rom1v closed this as completed Dec 13, 2019
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

3 participants