Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
107.76k stars 10.4k forks source link

MacOS DCP PANIC #4757

Open EdwardJunyan opened 5 months ago

EdwardJunyan commented 5 months ago

Environment

scrcpy Version Detail

scrcpy 2.4 <https://github.com/Genymobile/scrcpy>

Dependencies (compiled / linked):
 - SDL: 2.30.0 / 2.30.1
 - libavcodec: 60.31.102 / 60.31.102
 - libavformat: 60.16.100 / 60.16.100
 - libavutil: 58.29.100 / 58.29.100
 - libusb: - / 1.0.27

ADB Version

Android Debug Bridge version 1.0.41
Version 35.0.0-11411520
Installed as /opt/homebrew/bin/adb
Running on Darwin 23.4.0 (arm64)

Describe the bug scrcpy command: scrcpy -KSw --no-audio --window-title='Galaxy S22 Ultra' --video-bit-rate=8M --max-fps=60

scrcpy 2.4 <https://github.com/Genymobile/scrcpy>
* daemon not running; starting now at tcp:5037
* daemon started successfully
INFO: ADB device found:
INFO:     -->   (usb) ************                     device  SM_S9080
/opt/homebrew/Cellar/scrcpy/2.4/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 78.5 MB/s (69007 bytes in 0.001s)
[server] INFO: Device: [samsung] samsung SM-S9080 (Android 14)
INFO: Renderer: metal
INFO: Texture: 1440x3088
[server] INFO: Device screen turned off

After the scrcpy window poped up, I clicked another program window and used another program. When I clicked back to the scrcpy window, the system was stuck, the cursor couldn't move. Then the system crashed and rebooted.

There was no chance to see the terminal output when system crashed, but after rebooting, the system had a crash report.

panic(cpu 2 caller 0xfffffe002a62ce5c): DCP0 PANIC - program_swap: Async Swap request landing on unsupported platform. Force panic
 - iomfb_driver(11)
program_swap: Async Swap request landing on unsupported platform. Force panic

RTKit: RTKit-2419.101.1.release - Client: local-t602xdcp.RELEASE

I found a relative issue. https://discussions.apple.com/thread/255525017

konstantin-saetskiy-voodoo commented 5 months ago

Seems that it is Sonoma 14.4 issue. I had the same reports and kernel panics 5-6 times a day. Formatted my SSD and installed 14.3.1 from the USB - works like a charm.

EdwardJunyan commented 5 months ago

Seems that it is Sonoma 14.4 issue. I had the same reports and kernel panics 5-6 times a day. Formatted my SSD and installed 14.3.1 from the USB - works like a charm.

sure enough I shouldn't have upgraded the system 🤕

digvattul commented 5 months ago

I can confirm this. Kept getting DCP panic about every two hours. Stopped using scrcpy and have been running without crashes for ~24 hours now.

LichaoXu123456789 commented 5 months ago

I have the same issue in my Mac and Sonoma system. The solution is to run Scrcpy in Parallel Desktop, and DCP Panic doesn't show anymore.

digvattul commented 4 months ago

I am still encountering this issue after updating to Sonoma 14.4.1.

kikogassen commented 4 months ago

Same issue here on Sonoma 14.4.1

rajohns08 commented 4 months ago

Yeah still seeing this in 14.4.1 as well

TanZhiL commented 4 months ago

Yeah still seeing this in 14.4.1 as well

igorwojda commented 4 months ago

Same issue here Sonoma 14.4.1

Attaching Crash Report report.log

rom1v commented 4 months ago

Related issue: https://github.com/zed-industries/zed/issues/9493

igorwojda commented 3 months ago

I recommend using the AS Device Mirroring as a temporary solution until the problem is fixed (it's been reliable for me).

image