[Magisk] HelpMeruth:
2 issues:

when i click on the magisk superuser tab the app crashes,

When apps requests root magisk doesnt remember it resulting in multiple root requests from the same app.

Xiaomi mi5, android 8.1.

Adb crash:

01-01 12:38:45.564 3129 3129 E AndroidRuntime: Process: com.topjohnwu.magisk, PID: 3129
01-01 12:38:45.564 3129 3129 E AndroidRuntime: android.database.sqlite.SQLiteDiskIOException: disk I/O error (code 7434)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:737)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.database.sqlite.SQLiteSession.executeForChangedRowCount(SQLiteSession.java:754)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:64)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.database.sqlite.SQLiteDatabase.delete(SQLiteDatabase.java:1576)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at com.topjohnwu.magisk.database.SuDatabaseHelper.deletePolicy(Unknown Source:21)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at com.topjohnwu.magisk.database.SuDatabaseHelper.getPolicyList(Unknown Source:66)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at com.topjohnwu.magisk.SuperuserFragment.onCreateView(Unknown Source:30)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.support.v4.app.Fragment.performCreateView(Unknown Source:12)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveToState(Unknown Source:618)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(Unknown Source:32)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveToState(Unknown Source:46)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.support.v4.app.BackStackRecord.executeOps(Unknown Source:169)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.executeOps(Unknown Source:41)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(Unknown Source:103)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(Unknown Source:97)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.execSingleAction(Unknown Source:31)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.support.v4.app.BackStackRecord.commitNow(Unknown Source:6)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at com.topjohnwu.magisk.MainActivity.displayFragment(Unknown Source:26)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at com.topjohnwu.magisk.MainActivity.navigate(Unknown Source:32)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at com.topjohnwu.magisk.MainActivity.lambda$onNavigationItemSelected$0$MainActivity(Unknown Source:4)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at com.topjohnwu.magisk.MainActivity$$Lambda$0.run(Unknown Source:4)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:790)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6499)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:442)
01-01 12:38:45.564 3129 3129 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

Magisk internal log:

01-27 00:11:14.906 449 449 I Magisk : * Creating /sbin overlay
01-27 00:11:14.906 449 449 I Magisk : * Mounting mirrors
01-27 00:11:14.907 449 449 I Magisk : mount: /dev/block/bootdevice/by-name/system -> /sbin/.core/mirror/system
01-27 00:11:14.907 449 449 I Magisk : link: /sbin/.core/mirror/system/vendor -> /sbin/.core/mirror/vendor
01-27 00:11:14.907 449 449 I Magisk : bind_mount: /data/adb/magisk -> /sbin/.core/mirror/bin
01-27 00:11:14.907 449 449 I Magisk : * Setting up internal busybox
01-27 00:11:14.917 449 449 I Magisk : Magisk v15.1(1510) daemon started
01-27 00:11:14.919 449 457 I Magisk : ** post-fs mode running
01-27 01:11:15.077 449 466 I Magisk : ** post-fs-data mode running
01-27 01:11:15.077 449 466 I Magisk : * Mounting /data/adb/magisk.img
01-27 01:11:15.131 449 466 I Magisk : * Running post-fs-data.d scripts
01-27 01:11:15.131 449 466 I Magisk : * Running module post-fs-data scripts
01-27 01:11:15.131 449 466 I Magisk : * Loading modules
01-27 01:11:15.131 449 478 I Magisk : * Starting MagiskHide
01-27 01:11:15.131 449 478 I Magisk : hide_utils: Hiding sensitive props
01-27 01:11:15.132 449 478 I Magisk : hide_list: [com.google.android.gms.unstable]
01-27 01:11:15.157 449 478 I Magisk : proc_monitor: init ns=mnt:[4026531840]
01-27 01:11:17.160 449 823 I Magisk : ** late_start service mode running
01-27 01:11:17.160 449 823 I Magisk : * Running service.d scripts
01-27 01:11:17.160 449 823 I Magisk : * Running module service scripts
01-01 12:32:47.302 449 478 I Magisk : proc_monitor: zygote ns=mnt:[4026533756] zygote64 ns=mnt:[4026533766]
01-01 12:33:06.371 449 478 I Magisk : proc_monitor: com.google.android.gms.unstable (PID=3271 ns=mnt:[4026533899])
01-01 12:33:06.378 3278 3278 I Magisk : hide_daemon: Permissive detected, hide the state