Skip to content

MacOS DCP PANIC #4757

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

Open
2 tasks done
EdwardJunyan opened this issue Mar 13, 2024 · 12 comments
Open
2 tasks done

MacOS DCP PANIC #4757

EdwardJunyan opened this issue Mar 13, 2024 · 12 comments

Comments

@EdwardJunyan
Copy link

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

Environment

  • OS: macOS Sonoma 14.4 (23E214)
  • scrcpy version: 2.4
  • installation method: brew
  • device model: Samsung Galaxy S22U
  • Android version: 14 (OneUI 6.0)

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

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
Copy link
Author

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
Copy link

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
Copy link

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
Copy link

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

@kikogassen
Copy link

Same issue here on Sonoma 14.4.1

@rajohns08
Copy link

Yeah still seeing this in 14.4.1 as well

1 similar comment
@TanZhiL
Copy link

TanZhiL commented Apr 2, 2024

Yeah still seeing this in 14.4.1 as well

@igorwojda
Copy link

Same issue here Sonoma 14.4.1

  • scrcpy 2.4
  • running pure scrcpy command

Attaching Crash Report
report.log

@rom1v
Copy link
Collaborator

rom1v commented Apr 4, 2024

Related issue: zed-industries/zed#9493

@igorwojda
Copy link

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

image

@digvattul
Copy link

Have been using scrcpy again for a few weeks after updating to macOS 15.1 (Sequoia). No crashes so far.

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

9 participants