[Xiaomi Mi Mix 2S ROMs, Kernels, Recoveries, & Othe] unyl-chan:
I got logs of the cast bug. Maybe it would be useful. Thank you.

--------- beginning of system
12-29 13:26:19.616 23173 23203 I WifiDisplayController: Connecting to Wifi display: [TV] Samsung 7 Series (49)
12-29 13:26:19.617 23173 23203 I ExtendedRemoteDisplayHelper: ExtendedRemoteDisplay Not available.
12-29 13:26:19.617 23173 23203 I ExtendedRemoteDisplayHelper: ExtendedRemoteDisplay isAvailable() : Not Available.
12-29 13:26:19.626 23173 23203 I WifiDisplayController: Initiated connection to Wifi display: [TV] Samsung 7 Series (49)
12-29 13:26:19.628 23173 23193 W BroadcastQueue: Permission Denial: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to ProcessRecord{c853ace 27444:eu.thedarken.sdm/u0a89} (pid=27444, uid=10089) requires android.permission.READ_LOGS due to sender android (uid 1000)
12-29 13:26:19.629 23173 23193 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
12-29 13:26:19.630 23173 23193 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
12-29 13:26:19.870 23173 24212 I ActivityManager: Killing 25234:com.android.vending/u0a17 (adj 906): empty #17
12-29 13:26:19.903 23173 23456 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=20, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10017] ], android.os.BinderProxy@87f4e6a)
12-29 13:26:19.903 23173 23431 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ TRACK_DEFAULT id=19, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10017] ], android.os.BinderProxy@a46e455)
12-29 13:26:19.906 23173 23272 D ConnectivityService: releasing NetworkRequest [ TRACK_DEFAULT id=19, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED Unwanted: Uid: 10017] ] (release request)
12-29 13:26:20.924 23173 23203 I WifiDisplayController: Connected to Wifi display: [TV] Samsung 7 Series (49)
12-29 13:26:20.924 23173 23203 I WifiDisplayController: Stopping Wifi display scan.
12-29 13:26:20.928 23173 23203 I ExtendedRemoteDisplayHelper: ExtendedRemoteDisplay isAvailable() : Not Available.
12-29 13:26:20.929 23173 23203 I WifiDisplayController: Listening for RTSP connection on 192.168.49.20:7236 from Wifi display: [TV] Samsung 7 Series (49)
--------- beginning of crash
12-29 13:26:20.931 23173 23203 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.display
12-29 13:26:20.931 23173 23203 E AndroidRuntime: java.lang.IllegalStateException: Could not start listening for remote display connection on "192.168.49.20:7236"
12-29 13:26:20.931 23173 23203 E AndroidRuntime:	at android.media.RemoteDisplay.startListening(RemoteDisplay.java:121)
12-29 13:26:20.931 23173 23203 E AndroidRuntime:	at android.media.RemoteDisplay.listen(RemoteDisplay.java:84)
12-29 13:26:20.931 23173 23203 E AndroidRuntime:	at com.android.server.display.WifiDisplayController.updateConnection(WifiDisplayController.java:863)
12-29 13:26:20.931 23173 23203 E AndroidRuntime:	at com.android.server.display.WifiDisplayController.access$1400(WifiDisplayController.java:73)
12-29 13:26:20.931 23173 23203 E AndroidRuntime:	at com.android.server.display.WifiDisplayController$15.onGroupInfoAvailable(WifiDisplayController.java:960)
12-29 13:26:20.931 23173 23203 E AndroidRuntime:	at android.net.wifi.p2p.WifiP2pManager$Channel$P2pHandler.handleMessage(WifiP2pManager.java:819)
12-29 13:26:20.931 23173 23203 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:106)
12-29 13:26:20.931 23173 23203 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:193)
12-29 13:26:20.931 23173 23203 E AndroidRuntime:	at android.os.HandlerThread.run(HandlerThread.java:65)
12-29 13:26:20.931 23173 23203 E AndroidRuntime:	at com.android.server.ServiceThread.run(ServiceThread.java:44)
12-29 13:26:21.161 23534 23534 E AndroidRuntime: FATAL EXCEPTION: main
12-29 13:26:21.161 23534 23534 E AndroidRuntime: Process: com.android.phone, PID: 23534
12-29 13:26:21.161 23534 23534 E AndroidRuntime: DeadSystemException: The system died; earlier logs will point to the root cause