Lenovo z5 cast

Lenovo z5 cast
none 5.0 1

Bug description:

Hi
I use a very good mokee ROM on the Lenovo z5, everything is fine, but only the cast does not work, and when the TV is detected for connection, I want to connect, suddenly the phone restarts. Thank you for resolving this issue as soon as possible. Thank you very much.

Affected version:

MK100.0-jd2018-202108200818-NIGHTLY.zip

Steps to replicate:

First we turn on Wi-Fi.
We enter the cast section
In this section, the name of the TV for connection is displayed.
Select the TV to send the image.
The connection is written on the TV screen
Suddenly the phone restarts.
This problem has been present in all versions of mokee for this phone.