[Xiaomi Redmi Note 5 Pro ROMs, Kernels, Recoveries,] fedyay:
A critical issue has been haunting me for many versions, including clean flashed last one. My phone very rarely getas freezed on screen rotation (youtube, twitch, video player and even homescreen autorotation) and there is no way to get it working unless a force reboot. If I press power buton when phone is frozen it will turn off the screen and will not turn it on again. Here is a piece of logcat which I believe has a reason in it:

03-31 05:56:18.248 1601 1705 W Watchdog: *** WATCHDOG KILLING SYSTEM PROCESS: Blocked in monitor com.android.server.am.ActivityManagerService on foreground thread (android.fg), Blocked in handler on main thread (main), Blocked in handler on ui thread (android.ui), Blocked in handler on display thread (android.display), Blocked in handler on animation thread (android.anim)

03-31 05:56:18.249 1601 1705 W Watchdog: android.fg annotated stack trace:

03-31 05:56:18.249 1601 1705 W Watchdog: at com.android.server.am.ActivityManagerService.monitor(ActivityManagerService.java:17592)

03-31 05:56:18.250 1601 1705 W Watchdog: - waiting to lock <0x03272104> (a com.android.server.am.ActivityManagerService)

03-31 05:56:18.250 1601 1705 W Watchdog: at com.android.server.Watchdog$HandlerChecker.run(Watchdog.java:234)

03-31 05:56:18.250 1601 1705 W Watchdog: at android.os.Handler.handleCallback(Handler.java:883)

03-31 05:56:18.250 1601 1705 W Watchdog: at android.os.Handler.dispatchMessage(Handler.java:100)

03-31 05:56:18.250 1601 1705 W Watchdog: at android.os.Looper.loop(Looper.java:214)

03-31 05:56:18.250 1601 1705 W Watchdog: at android.os.HandlerThread.run(HandlerThread.java:67)

03-31 05:56:18.250 1601 1705 W Watchdog: at com.android.server.ServiceThread.run(ServiceThread.java:44)

03-31 05:56:18.251 1601 1705 W Watchdog: main annotated stack trace:

03-31 05:56:18.251 1601 1705 W Watchdog: at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:15597)

03-31 05:56:18.251 1601 1705 W Watchdog: - waiting to lock <0x03272104> (a com.android.server.am.ActivityManagerService)

03-31 05:56:18.251 1601 1705 W Watchdog: at android.app.ContextImpl.sendBroadcastAsUser(ContextImpl.java:1224)

03-31 05:56:18.251 1601 1705 W Watchdog: at com.android.server.AlarmManagerService$2.lambda$doAlarm$0$AlarmManagerService$2(AlarmManagerService.java:1544)

03-31 05:56:18.251 1601 1705 W Watchdog: at com.android.server.-$$Lambda$AlarmManagerService$2$Eo-D98J-N9R2METkD-12gPs320c.run(Unknown Source:4)

03-31 05:56:18.251 1601 1705 W Watchdog: at android.os.Handler.handleCallback(Handler.java:883)

03-31 05:56:18.251 1601 1705 W Watchdog: at android.os.Handler.dispatchMessage(Handler.java:100)

03-31 05:56:18.251 1601 1705 W Watchdog: at android.os.Looper.loop(Looper.java:214)

03-31 05:56:18.251 1601 1705 W Watchdog: at com.android.server.SystemServer.run(SystemServer.java:570)

03-31 05:56:18.251 1601 1705 W Watchdog: at com.android.server.SystemServer.main(SystemServer.java:381)

03-31 05:56:18.251 1601 1705 W Watchdog: at java.lang.reflect.Method.invoke(Native Method)

03-31 05:56:18.251 1601 1705 W Watchdog: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)

03-31 05:56:18.251 1601 1705 W Watchdog: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:893)

03-31 05:56:18.253 1601 1705 W Watchdog: android.ui annotated stack trace:

03-31 05:56:18.253 1601 1705 W Watchdog: at com.android.server.am.ActivityManagerService.checkContentProviderAccess(ActivityManagerService.java:6524)

03-31 05:56:18.253 1601 1705 W Watchdog: - waiting to lock <0x03272104> (a com.android.server.am.ActivityManagerService)

03-31 05:56:18.253 1601 1705 W Watchdog: at com.android.server.am.ActivityManagerService$LocalService.checkContentProviderAccess(ActivityManagerService.java:17811)

03-31 05:56:18.253 1601 1705 W Watchdog: at com.android.server.content.ContentService.registerContentObserver(ContentService.java:341)

03-31 05:56:18.253 1601 1705 W Watchdog: at android.content.ContentResolver.registerContentObserver(ContentResolver.java:2266)

03-31 05:56:18.253 1601 1705 W Watchdog: at android.content.ContentResolver.registerContentObserver(ContentResolver.java:2254)

03-31 05:56:18.253 1601 1705 W Watchdog: at com.android.server.wm.AppTransition$SettingsObserver.observe(AppTransition.java:2453)

03-31 05:56:18.253 1601 1705 W Watchdog: at com.android.server.wm.AppTransition.<init>(AppTransition.java:288)

03-31 05:56:18.253 1601 1705 W Watchdog: at com.android.server.wm.DisplayContent.<init>(DisplayContent.java:916)

03-31 05:56:18.253 1601 1705 W Watchdog: at com.android.server.wm.RootWindowContainer.createDisplayContent(RootWindowContainer.java:238)

03-31 05:56:18.253 1601 1705 W Watchdog: at com.android.server.wm.ActivityDisplay.createDisplayContent(ActivityDisplay.java:171)

03-31 05:56:18.253 1601 1705 W Watchdog: at com.android.server.wm.ActivityDisplay.<init>(ActivityDisplay.java:166)

03-31 05:56:18.253 1601 1705 W Watchdog: at com.android.server.wm.RootActivityContainer.getActivityDisplayOrCreate(RootActivityContainer.java:315)

03-31 05:56:18.254 1601 1705 W Watchdog: at com.android.server.wm.RootActivityContainer.onDisplayAdded(RootActivityContainer.java:1361)

03-31 05:56:18.254 1601 1705 W Watchdog: - locked <0x01c86a9f> (a com.android.server.wm.WindowManagerGlobalLock)

03-31 05:56:18.254 1601 1705 W Watchdog: at android.hardware.display.DisplayManagerGlobal$DisplayListenerDelegate.handleMessage(DisplayManagerGlobal.java:696)

03-31 05:56:18.254 1601 1705 W Watchdog: at android.os.Handler.dispatchMessage(Handler.java:107)

03-31 05:56:18.254 1601 1705 W Watchdog: at android.os.Looper.loop(Looper.java:214)

03-31 05:56:18.254 1601 1705 W Watchdog: at android.os.HandlerThread.run(HandlerThread.java:67)

03-31 05:56:18.254 1601 1705 W Watchdog: at com.android.server.ServiceThread.run(ServiceThread.java:44)

03-31 05:56:18.254 1601 1705 W Watchdog: at com.android.server.UiThread.run(UiThread.java:43)

03-31 05:56:18.256 1601 1705 W Watchdog: android.display annotated stack trace:

03-31 05:56:18.256 1601 1705 W Watchdog: at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:4901)

03-31 05:56:18.256 1601 1705 W Watchdog: - waiting to lock <0x01c86a9f> (a com.android.server.wm.WindowManagerGlobalLock)

03-31 05:56:18.256 1601 1705 W Watchdog: at android.os.Handler.dispatchMessage(Handler.java:107)

03-31 05:56:18.256 1601 1705 W Watchdog: at android.os.Looper.loop(Looper.java:214)

03-31 05:56:18.256 1601 1705 W Watchdog: at android.os.HandlerThread.run(HandlerThread.java:67)

03-31 05:56:18.256 1601 1705 W Watchdog: at com.android.server.ServiceThread.run(ServiceThread.java:44)

03-31 05:56:18.257 1601 1705 W Watchdog: android.anim annotated stack trace:

03-31 05:56:18.257 1601 1705 W Watchdog: at com.android.server.wm.WindowAnimator.lambda$new$1$WindowAnimator(WindowAnimator.java:96)

03-31 05:56:18.257 1601 1705 W Watchdog: - waiting to lock <0x01c86a9f> (a com.android.server.wm.WindowManagerGlobalLock)

03-31 05:56:18.257 1601 1705 W Watchdog: at com.android.server.wm.-$$Lambda$WindowAnimator$ddXU8gK8rmDqri0OZVMNa3Y4GHk.doFrame(Unknown Source:2)

03-31 05:56:18.257 1601 1705 W Watchdog: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:965)

03-31 05:56:18.257 1601 1705 W Watchdog: at android.view.Choreographer.doCallbacks(Choreographer.java:791)

03-31 05:56:18.257 1601 1705 W Watchdog: at android.view.Choreographer.doFrame(Choreographer.java:722)

03-31 05:56:18.257 1601 1705 W Watchdog: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:952)

03-31 05:56:18.257 1601 1705 W Watchdog: at android.os.Handler.handleCallback(Handler.java:883)

03-31 05:56:18.257 1601 1705 W Watchdog: at android.os.Handler.dispatchMessage(Handler.java:100)

03-31 05:56:18.257 1601 1705 W Watchdog: at android.os.Looper.loop(Looper.java:214)

03-31 05:56:18.257 1601 1705 W Watchdog: at android.os.HandlerThread.run(HandlerThread.java:67)

03-31 05:56:18.257 1601 1705 W Watchdog: at com.android.server.ServiceThread.run(ServiceThread.java:44)

03-31 05:56:18.257 1601 1705 W Watchdog: *** GOODBYE!

Full logcat link: https://drive.google.com/open?id=1afLNghWFRcS-Qan9fWryjAT7sjSC4pGE

I will be very gratefull if anyone can help solving this problem.