[Google Pixel 3 ROMs, Kernels, Recoveries, & Other ] k0rner:
Screen Cast related crash

It looks like on the latest version of this rom (and couple of previous ones),

trying to start a screen cast session is causing a "hot reboot".

Steps to reproduce:

- Have a device capable of receiving a Screen Cast on the same network (e.g. some Smart TV device, etc)

- Go to Settings - Connected Devices - Connection Preferences - Cast

- Select a device which has been found.

As a result, the phone performs a "hot reboot" and the following error is generated in logcat:

12-30 22:15:05.751 1327 1396 I WifiDisplayController: Connected to Wifi display: [HTS] Living room
12-30 22:15:05.751 1327 1396 I WifiDisplayController: Stopping Wifi display scan.
12-30 22:15:05.754 1327 1396 I WifiDisplayController: Listening for RTSP connection on 192.168.49.1:7236 from Wifi display: [HTS] Living room
12-30 22:15:05.759 1009 1009 E MediaPlayerService: listenForRemoteDisplay is no longer supported!
12-30 22:15:05.761 1327 1396 E RemoteDisplay: Media player service rejected request to listen for remote display '192.168.49.1:7236'.
12-30 22:15:05.762 1327 1396 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: android.display
12-30 22:15:05.762 1327 1396 E AndroidRuntime: java.lang.IllegalStateException: Could not start listening for remote display connection on "192.168.49.1:7236"
12-30 22:15:05.762 1327 1396 E AndroidRuntime: at android.media.RemoteDisplay.startListening(RemoteDisplay.java:123)
12-30 22:15:05.762 1327 1396 E AndroidRuntime: at android.media.RemoteDisplay.listen(RemoteDisplay.java:85)
12-30 22:15:05.762 1327 1396 E AndroidRuntime: at com.android.server.display.WifiDisplayController.updateConnection(WifiDisplayController.java:819)
12-30 22:15:05.762 1327 1396 E AndroidRuntime: at com.android.server.display.WifiDisplayController.access$1200(WifiDisplayController.java:70)
12-30 22:15:05.762 1327 1396 E AndroidRuntime: at com.android.server.display.WifiDisplayController$15.onGroupInfoAvailable(WifiDisplayController.java:916)
12-30 22:15:05.762 1327 1396 E AndroidRuntime: at android.net.wifi.p2p.WifiP2pManager$Channel$P2pHandler.handleMessage(WifiP2pManager.java:985)
12-30 22:15:05.762 1327 1396 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
12-30 22:15:05.762 1327 1396 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
12-30 22:15:05.762 1327 1396 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:67)
12-30 22:15:05.762 1327 1396 E AndroidRuntime: at com.android.server.ServiceThread.run(ServiceThread.java:44)
12-30 22:15:05.763 1327 1396 I am_crash: [1327,0,system_server,-1,java.lang.IllegalStateException,Could not start listening for remote display connection on "192.168.49.1:7236",RemoteDisplay.java,123]
12-30 22:15:05.765 1327 1396 I DropBoxManagerService: add tag=system_server_crash isTagEnabled=true flags=0x2
12-30 22:15:05.773 1327 1396 I Process : Sending signal. PID: 1327 SIG: 9
12-30 22:15:05.858 12450 12450 I adbd : Framework disconnect
12-30 22:15:05.861 939 939 I lowmemorykiller: lmkd data connection dropped
12-30 22:15:05.862 939 939 I lowmemorykiller: closing lmkd data connection
12-30 22:15:05.864 877 877 I ContextHubHal: Context hub service died for hubId 0
12-30 22:15:05.864 1019 1882 D BufferPoolAccessor: bufferpool2 0x2a2f8cb630 : 0(0 size) total buffers - 0(0 size) used buffers - 3/5 (recycle/alloc) - 2/4 (fetch/transfer)
12-30 22:15:05.864 1019 1873 D BufferPoolAccessor: bufferpool2 0x2a2f8cb830 : 0(0 size) total buffers - 0(0 size) used buffers - 8/14 (recycle/alloc) - 6/13 (fetch/transfer)
12-30 22:15:05.864 1019 1882 D BufferPoolAccessor: Destruction - bufferpool2 0x2a2f8cb630 cached: 0/0M, 0/0% in use; allocs: 5, 60% recycled; transfers: 4, 50% unfetced
12-30 22:15:05.865 1019 1873 D BufferPoolAccessor: Destruction - bufferpool2 0x2a2f8cb830 cached: 0/0M, 0/0% in use; allocs: 14, 57% recycled; transfers: 13, 54% unfetced
12-30 22:15:05.865 1019 2036 D BufferPoolAccessor: bufferpool2 0x2a2f8cc230 : 0(0 size) total buffers - 0(0 size) used buffers - 12/15 (recycle/alloc) - 3/14 (fetch/transfer)
12-30 22:15:05.865 1019 2036 D BufferPoolAccessor: Destruction - bufferpool2 0x2a2f8cc230 cached: 0/0M, 0/0% in use; allocs: 15, 80% recycled; transfers: 14, 79% unfetced
12-30 22:15:05.865 1019 1882 D BufferPoolAccessor: bufferpool2 0x2a2f8bd430 : 0(0 size) total buffers - 0(0 size) used buffers - 17/19 (recycle/alloc) - 2/18 (fetch/transfer)
12-30 22:15:05.865 1019 1882 D BufferPoolAccessor: Destruction - bufferpool2 0x2a2f8bd430 cached: 0/0M, 0/0% in use; allocs: 19, 89% recycled; transfers: 18, 89% unfetced
12-30 22:15:05.865 1010 1112 W statsd : statscompanion service died
12-30 22:15:05.865 615 615 I ServiceManager: service 'package' died
12-30 22:15:05.865 823 2968 E /system/bin/netd: unlinkToDeath: removed reference to death recipient but unlink failed.
12-30 22:15:05.866 12076 12186 W Sensors : sensorservice died [0x78e923f540]
12-30 22:15:05.866 1010 1112 W statsd : Reset statsd upon system server restarts.
12-30 22:15:05.866 615 615 I ServiceManager: service 'package_native' died
12-30 22:15:05.866 615 615 I ServiceManager: service 'notification' died
12-30 22:15:05.866 615 615 I ServiceManager: service 'devicestoragemonitor' died
12-30 22:15:05.866 615 615 I ServiceManager: service 'location' died
12-30 22:15:05.866 615 615 I ServiceManager: service 'country_detector' died
12-30 22:15:05.866 615 615 I ServiceManager: service 'time_detector' died
12-30 22:15:05.866 615 615 I ServiceManager: service 'search' died
12-30 22:15:05.866 615 615 I ServiceManager: service 'wallpaper' died
12-30 22:15:05.866 615 615 I ServiceManager: service 'audio' died
12-30 22:15:05.866 615 615 I ServiceManager: service 'DockObserver' died
12-30 22:15:05.866 615 615 I ServiceManager: service 'midi' died
12-30 22:15:05.866 8682 8699 W Sensors : sensorservice died [0x78e4738ec0]
12-30 22:15:05.866 615 615 I ServiceManager: service 'adb' died
12-30 22:15:05.866 663 663 D SurfaceFlinger: Setting power mode 2 on display 0
12-30 22:15:05.867 8814 8944 W Sensors : sensorservice died [0x78e93ba860]
12-30 22:15:05.867 2265 7888 W Sensors : sensorservice died [0x78e45b0480]
12-30 22:15:05.867 2265 7888 W Sensors : sensorservice died [0x78e45b0480]
12-30 22:15:05.867 8516 8534 W Sensors : sensorservice died [0x78e4abf1a0]
12-30 22:15:05.868 933 1570 W AudioFlinger: power manager service died !!!
12-30 22:15:05.868 933 1570 I chatty : uid=1041(audioserver) Binder:933_3 identical 4 lines
12-30 22:15:05.868 933 1570 W AudioFlinger: power manager service died !!!
12-30 22:15:05.869 1019 2036 D BufferPoolAccessor: bufferpool2 0x2a2f8c1a30 : 0(0 size) total buffers - 0(0 size) used buffers - 23/25 (recycle/alloc) - 2/24 (fetch/transfer)
12-30 22:15:05.869 1019 2036 D BufferPoolAccessor: Destruction - bufferpool2 0x2a2f8c1a30 cached: 0/0M, 0/0% in use; allocs: 25, 92% recycled; transfers: 24, 92% unfetced
12-30 22:15:05.869 615 615 I ServiceManager: service 'usb' died
12-30 22:15:05.869 8116 11944 W Sensors : sensorservice died [0x7887ee1520]
12-30 22:15:05.869 615 615 I ServiceManager: service 'serial' died
12-30 22:15:05.870 1673 11563 W Sensors : sensorservice died [0x78e98c8f00]
12-30 22:15:05.870 615 615 I ServiceManager: service 'hardware_properties' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'color_display' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'jobscheduler' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'soundtrigger' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'trust' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'backup' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'appwidget' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'role' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'voiceinteraction' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'diskstats' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'runtime' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'network_time_update_service' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'dreams' died
12-30 22:15:05.870 615 615 I ServiceManager: service 'graphicsstats' died
12-30 22:15:05.871 615 615 I ServiceManager: service 'print' died
12-30 22:15:05.868 9109 11483 W Sensors : sensorservice died [0x7979c5e180]
12-30 22:15:05.871 1019 1873 D BufferPoolAccessor: bufferpool2 0x2a2f8c6a30 : 0(0 size) total buffers - 0(0 size) used buffers - 12/15 (recycle/alloc) - 3/14 (fetch/transfer)
12-30 22:15:05.871 1019 1873 D BufferPoolAccessor: Destruction - bufferpool2 0x2a2f8c6a30 cached: 0/0M, 0/0% in use; allocs: 15, 80% recycled; transfers: 14, 79% unfetced
12-30 22:15:05.872 881 881 E LocSvc_GnssBatchingInterface: serviceDied] service died. cookie: 0, who: 0x7818811be0
12-30 22:15:05.872 881 881 E LocSvc_APIClientBase: locAPIStopSession:495] session -1 is not exist.
12-30 22:15:05.873 881 881 E GnssHal_GnssGeofencing: serviceDied] service died. cookie: 0, who: 0x7818811b20
12-30 22:15:05.873 881 881 E LocSvc_GnssNiInterface: serviceDied] service died. cookie: 0, who: 0x7818811b60
12-30 22:15:05.873 881 881 E LocSvc_GnssInterface: serviceDied] service died. cookie: 0, who: 0x78188118e0
12-30 22:15:05.873 881 881 E LocSvc_APIClientBase: locAPIStopTracking:369] invalid session: 0.
12-30 22:15:05.873 881 1803 D PerMgrLib: GPS unvoting for modem
12-30 22:15:05.871 615 615 I ServiceManager: service 'companiondevice' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'restrictions' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'media_session' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'media_resource_monitor' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'media_router' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'fingerprint' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'biometric' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'shortcut' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'launcherapps' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'crossprofileapps' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'pocket' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'lineagehardware' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'lineagelivedisplay' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'media_projection' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'slice' died
12-30 22:15:05.874 615 615 I ServiceManager: service 'media.camera.proxy' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'statscompanion' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'incidentcompanion' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'imms' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'autofill' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'clipboard' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'app_binding' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'bluetooth_manager' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'connmetrics' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'netd_listener' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'contexthub' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'telecom' died
12-30 22:15:05.875 903 949 D PerMgrSrv: GPS removing vote for modem
12-30 22:15:05.875 615 615 I ServiceManager: service 'mount' died
12-30 22:15:05.875 903 949 D PerMgrSrv: modem num voters is 4
12-30 22:15:05.875 615 615 I ServiceManager: service 'storagestats' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'uimode' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'lock_settings' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'testharness' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'oem_lock' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'deviceidle' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'device_policy' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'statusbar' died
12-30 22:15:05.875 615 615 I ServiceManager: service 'attention' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'app_prediction' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'content_suggestions' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'network_management' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'network_score' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'ipsec' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'textservices' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'textclassification' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'netstats' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'netpolicy' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'wifi' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'wifirtt' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'wifiaware' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'wifiscanner' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'wifip2p' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'ethernet' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'connectivity' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'servicediscovery' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'system_update' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'updatelock' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'sensorservice' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'persistent_data_block' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'overlay' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'sensor_privacy' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'battery' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'batteryproperties' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'usagestats' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'webviewupdate' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'binder_calls_stats' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'looper_stats' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'rollback' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'bugreport' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'sec_key_att_app_id_provider' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'scheduling_policy' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'telephony.registry' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'account' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'content' died
12-30 22:15:05.876 615 615 I ServiceManager: service 'settings' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'device_config' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'dropbox' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'external_vibrator_service' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'vibrator' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'dynamic_system' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'consumer_ir' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'alarm' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'inputflinger' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'window' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'input' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'vrmanager' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'pinner' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'network_watchlist' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'input_method' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'accessibility' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'permission' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'processinfo' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'otadexopt' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'user' died
12-30 22:15:05.877 615 615 I ServiceManager: service 'activity' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'device_identifiers' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'uri_grants' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'activity_task' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'batterystats' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'appops' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'power' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'thermalservice' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'recovery' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'display' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'procstats' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'meminfo' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'gfxinfo' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'dbinfo' died
12-30 22:15:05.878 615 615 I ServiceManager: service 'cpuinfo' died
12-30 22:15:05.879 1007 1138 I ServiceManager: Waiting for service 'package_native' on '/dev/binder'...
12-30 22:15:05.923 858 858 I Zygote : Process 1327 exited due to signal 9 (Killed)
12-30 22:15:05.923 858 858 E Zygote : Exit zygote because system server (pid 1327) has terminated
12-30 22:15:06.054 615 615 I ServiceManager: service 'media.audio_flinger' died
12-30 22:15:06.055 615 615 I ServiceManager: service 'media.audio_policy' died
12-30 22:15:06.055 615 615 I ServiceManager: service 'media.sound_trigger_hw' died
12-30 22:15:06.055 615 615 I ServiceManager: service 'media.aaudio' died
12-30 22:15:06.054 1009 1808 W AudioSystem: AudioPolicyService server died!