[Xiaomi Mi 8 ROMs, Kernels, Recoveries, & Other Dev] Schwinni:
Since a few days my phone crashes from time to time. It doesn't do a complete reboot, but the UI restarts and I have to unlock the phone again (not the SIM card).

I saved the logs with SysLog as soon as I noticed the crash.

For one crash I know the exact time, because it happend when my alarm bell was ringing.

logcat.log shows:

06-03 07:25:01.424 V/SettingsProvider(11784): Notifying for 0: content://settings/system/next_alarm_formatted
06-03 07:25:01.425 D/ConditionProviders.SCP(11784): onReceive android.app.action.NEXT_ALARM_CLOCK_CHANGED
06-03 07:25:01.425 D/ConditionProviders.SCP(11784): evaluateSubscriptionLocked cal=ScheduleCalendar[mDays={1, 2, 3, 4, 5, 6, 7}, mSchedule=ScheduleInfo{days=[1, 2, 3, 4, 5, 6, 7], startHour=22, startMinute=0, endHour=7, endMinute=0, exitAtAlarm=true, nextAlarm=Mon Jun 03 07:25:00 GMT+02:00 2019 (1559539500000)}], now=Mon Jun 03 07:25:01 GMT+02:00 2019 (1559539501425), nextUserAlarmTime=Thu Jan 01 01:00:00 GMT+01:00 1970 (0)
06-03 07:25:01.426 D/ConditionProviders.SCP(11784): notifyCondition condition://android/schedule?days=1.2.3.4.5.6.7&start=22.0&end=7.0&exitAtAlarm=true STATE_FALSE reason=!meetsSchedule
06-03 07:25:01.427 D/ConditionProviders.SCP(11784): Scheduling evaluate for Mon Jun 03 22:00:00 GMT+02:00 2019 (1559592000000), in +14h34m58s575ms, now=Mon Jun 03 07:25:01 GMT+02:00 2019 (1559539501425)
06-03 07:25:01.516 I/ActivityManager(11784): START u0 {act=fullscreen_activity dat=content://com.android.deskclock/instances/1 flg=0x10040000 cmp=com.android.deskclock/.alarms.AlarmActivity} from uid 10065
06-03 07:25:01.522 I/DreamManagerService(11784): Gently waking up from dream.
06-03 07:25:01.522 I/DreamManagerService(11784): Performing gentle wake from dream.
06-03 07:25:01.529 W/LocalDisplayAdapter(11784): Unable to find color mode 0, ignoring request.
06-03 07:25:01.535 I/DreamManagerService(11784): Leaving dreamland.
06-03 07:25:01.535 I/PowerManagerService(11784): Sleeping (uid 1000)...
06-03 07:25:01.536 I/DreamManagerService(11784): Performing gentle wake from dream.
06-03 07:25:01.536 I/DreamController(11784): Stopping dream: name=ComponentInfo{com.android.systemui/com.android.systemui.doze.DozeService}, isTest=false, canDoze=true, userId=0
06-03 07:25:01.579 I/PowerManagerService(11784): Waking up from sleep (uid=1000 reason=android.server.wm:TURN_ON)...
06-03 07:25:01.579 W/UsageStatsService(11784): Event reported without a package name
06-03 07:25:01.589 I/DisplayPowerController(11784): Blocking screen on until initial contents have been drawn.
06-03 07:25:01.613 I/DisplayManagerService(11784): Display device changed state: "Integrierter Bildschirm", ON
06-03 07:25:01.615 V/FingerprintService(11784): stop client com.android.systemui
06-03 07:25:01.619 W/LocalDisplayAdapter(11784): Unable to find color mode 0, ignoring request.
06-03 07:25:01.676 W/FingerprintService(11784): client com.android.systemui is no longer authenticating
06-03 07:25:01.677 V/FingerprintService(11784): Done with client: com.android.systemui
06-03 07:25:01.677 V/FingerprintService(11784): handleError(client=com.android.systemui, error = 5)
06-03 07:25:01.814 I/DisplayPowerController(11784): Unblocked screen on after 226 ms
06-03 07:25:01.816 W/PowerManagerService(11784): Screen on took 236 ms
06-03 07:25:04.658 D/ConnectivityService(11784): Switching to new default network: NetworkAgentInfo{ ni{[type: MOBILE[LTE], state: CONNECTED/CONNECTED, reason: connected, extra: internet.eplus.de, failover: false, available: true, roaming: false]} network{156} nethandle{673420595213} lp{{InterfaceName: rmnet_data1 LinkAddresses: [xxx.xxx.xxx.xxx/29,] Routes: [0.0.0.0/0 -> xxx.xxx.xxx.xxx rmnet_data1,xxx.xxx.xxx.xxx/29 -> 0.0.0.0 rmnet_data1,] DnsAddresses: [xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx,] UsePrivateDns: false PrivateDnsServerName: null Domains: null MTU: 1410 TcpBufferSizes: 2097152,4194304,8388608,262144,524288,1048576}} nc{[ Transports: CELLULAR Capabilities: SUPL&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&NOT_CONGESTED&NOT_SUSPENDED Unwanted: LinkUpBandwidth>=51200Kbps LinkDnBandwidth>=102400Kbps Specifier: <1>]} Score{50} everValidated{true} lastValidated{true} created{true} lingering{false} explicitlySelected{false} acceptUnvalidated{false} everCaptivePortalDetected{false} lastCaptivePortalDetected{false} clat{null} }
06-03 07:25:04.702 E/AndroidRuntime(11784): *** FATAL EXCEPTION IN SYSTEM PROCESS: ConnectivityServiceThread
06-03 07:25:04.702 E/AndroidRuntime(11784): java.lang.IllegalStateException: command '1258 network permission network clear 156' failed with '400 1258 setPermissionForNetworks() failed (No such file or directory)'
06-03 07:25:04.702 E/AndroidRuntime(11784):	at com.android.server.NetworkManagementService.setNetworkPermission(NetworkManagementService.java:2687)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at com.android.server.ConnectivityService.updateCapabilities(ConnectivityService.java:4954)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at com.android.server.ConnectivityService.rematchNetworkAndRequests(ConnectivityService.java:5389)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at com.android.server.ConnectivityService.rematchAllNetworksAndRequests(ConnectivityService.java:5521)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at com.android.server.ConnectivityService.updateNetworkScore(ConnectivityService.java:5681)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at com.android.server.ConnectivityService.access$1600(ConnectivityService.java:198)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at com.android.server.ConnectivityService$NetworkStateTrackerHandler.maybeHandleNetworkAgentMessage(ConnectivityService.java:2208)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at com.android.server.ConnectivityService$NetworkStateTrackerHandler.handleMessage(ConnectivityService.java:2342)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at android.os.Handler.dispatchMessage(Handler.java:106)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at android.os.Looper.loop(Looper.java:193)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at android.os.HandlerThread.run(HandlerThread.java:65)
06-03 07:25:04.702 E/AndroidRuntime(11784): Caused by: com.android.server.NativeDaemonConnector$NativeDaemonFailureException: command '1258 network permission network clear 156' failed with '400 1258 setPermissionForNetworks() failed (No such file or directory)'
06-03 07:25:04.702 E/AndroidRuntime(11784):	at com.android.server.NativeDaemonConnector.executeForList(NativeDaemonConnector.java:515)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:411)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at com.android.server.NativeDaemonConnector.execute(NativeDaemonConnector.java:406)
06-03 07:25:04.702 E/AndroidRuntime(11784):	at com.android.server.NetworkManagementService.setNetworkPermission(NetworkManagementService.java:2684)
06-03 07:25:04.702 E/AndroidRuntime(11784):	... 10 more
06-03 07:25:04.990 E/AndroidRuntime(12113): FATAL EXCEPTION: main
06-03 07:25:04.990 E/AndroidRuntime(12113): Process: com.android.phone, PID: 12113
06-03 07:25:04.990 E/AndroidRuntime(12113): DeadSystemException: The system died; earlier logs will point to the root cause
06-03 07:25:05.233 I/wificond( 8596): wificond is starting up...
06-03 07:25:06.436 I/SystemServer( 8687): InitBeforeStartServices
06-03 07:25:06.436 I/SystemServer( 8687): Entered the Android system server!
06-03 07:25:06.606 I/SystemServer( 8687): StartServices
06-03 07:25:06.606 I/SystemServer( 8687): Reading configuration...
06-03 07:25:06.606 I/SystemServer( 8687): ReadingSystemConfig
06-03 07:25:06.607 I/SystemServer( 8687): StartInstaller

[MENTION=1187148]infrag[/MENTION], do you want the complete logs? If so, shall I PM you the links (I would give you the complete logs without purged private information)?

Best regards

Chris