Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
109.73k stars 10.55k forks source link

scrcpy shows window for about 5 minutes, then hangs/stops with no response #358

Closed sennight closed 5 years ago

sennight commented 5 years ago

Environment Information:

Logs

Cannot generate logs after scrcpy crashes, adb logcat doesn't generate anything. See issues/steps.

Issue Description:

scrcpy seems to hang/have no response after about 5 minutes of use. This never happened before when I was using my OP3, which had no issues. After switching to this new phone on Android Pie, it seems that, regardless of if I use the console/no-console version of the exe, or if I start the app through command, the window that mirror's my phone will inevitably crash and stop responding.

Furthermore, ending the task through the task manager of the non-responsive window, or closing the window will stop scrcpy, but it will be very laggy when I start the app again. It will appear to not work, but then after a few minutes the mirroring window will appear but again be non-responsive.

I have tried to replicate this issue on my Surface Pro 4, also running windows 10, but the phone, app and mirroring works flawless on my Surface, which means there must be something on my main desktop that is causing the hanging. I did recently install adb drivers to root/flash another phone, so I'm not sure if that may interfere with scrcpy.

Steps to reproduce:

  1. Run scrcpy
  2. Functions fine for a few minutes, flawless
  3. Stops suddenly and without warning, no lagging beforehand, just stops responding
  4. Force quit window through Task Manager or X
  5. Try to run scrcpy again but no response, or very delayed response with window opening without response
rom1v commented 5 years ago

it will be very laggy when I start the app again. It will appear to not work, but then after a few minutes the mirroring window will appear but again be non-responsive. […] which means there must be something on my main desktop that is causing the hanging

Maybe graphical drivers?

sennight commented 5 years ago

Just wanted to leave an update, I wiped my PC clean in a desperate times desperate measures move, and by process of elimination I found out that it was the Corsair iCUE keyboard program that was causing the issues. Specifically, iCUESetup 3.9.93. I uninstalled it and scrcpy is working completely fine again.

Dragonprovidence commented 5 years ago

@sennight, thanks for the hard work. I was struggling with this issue too. I had a Corsair Utility Engine for my keyboard and disabling that did the trick. Just wanted to say thanks.