[Magisk] AlxMAX:
I have attempted to update otonieru's ENABLE DOZE on Google Play Services module from v3 to v4 and the Magisk Manager 5.1.1 crashes. Then, I have tried to uninstall v3, which went well, then install v4, which made the manager crash again. The file I have used was EnableDozeforGMS-Rev4-by_otonieru.zip which was only 8.5 kB in size. A second launch of the manager makes it crash again without doing anything. Another launch stabilizes it. On the logcat side, I get this when I attempt to install the Enable Doze module (either from the storage or attempting to donload it via the manager):

08-11 01:16:49.496: E/AndroidRuntime(8340): FATAL EXCEPTION: main
08-11 01:16:49.496: E/AndroidRuntime(8340): Process: com.topjohnwu.magisk, PID: 8340
08-11 01:16:49.496: E/AndroidRuntime(8340): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.ref.Reference.get()' on a null object reference
08-11 01:16:49.496: E/AndroidRuntime(8340):	at com.topjohnwu.magisk.a.i.f(Unknown Source)
08-11 01:16:49.496: E/AndroidRuntime(8340):	at com.topjohnwu.magisk.a.b.a(Unknown Source)
08-11 01:16:49.496: E/AndroidRuntime(8340):	at com.topjohnwu.magisk.a.b.onPostExecute(Unknown Source)
08-11 01:16:49.496: E/AndroidRuntime(8340):	at android.os.AsyncTask.finish(AsyncTask.java:667)
08-11 01:16:49.496: E/AndroidRuntime(8340):	at android.os.AsyncTask.-wrap1(AsyncTask.java)
08-11 01:16:49.496: E/AndroidRuntime(8340):	at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684)
08-11 01:16:49.496: E/AndroidRuntime(8340):	at android.os.Handler.dispatchMessage(Handler.java:102)
08-11 01:16:49.496: E/AndroidRuntime(8340):	at android.os.Looper.loop(Looper.java:154)
08-11 01:16:49.496: E/AndroidRuntime(8340):	at android.app.ActivityThread.main(ActivityThread.java:6186)
08-11 01:16:49.496: E/AndroidRuntime(8340):	at java.lang.reflect.Method.invoke(Native Method)
08-11 01:16:49.496: E/AndroidRuntime(8340):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
08-11 01:16:49.496: E/AndroidRuntime(8340):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
08-11 01:16:49.500: W/ActivityManager(2347): Force finishing activity com.topjohnwu.magisk/.FlashActivity

Bhind the white rectangle saying the application has crashed, I was able to see something about an url malformed (have a look at the attachment).

At the second launch, I get this:

08-11 01:23:07.599: E/InputEventSender(8792): Exception dispatching finished signal.
08-11 01:23:07.599: E/MessageQueue-JNI(8792): Exception in MessageQueue callback: handleReceiveCallback
08-11 01:23:07.601: E/MessageQueue-JNI(8792): java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at java.util.ArrayList.addAll(ArrayList.java:562)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at com.topjohnwu.magisk.MagiskFragment.ad(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at com.topjohnwu.magisk.MagiskFragment.a(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v4.app.Fragment.b(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v4.app.m.a(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v4.app.m.e(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v4.app.m.a(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v4.app.c.g(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v4.app.m.b(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v4.app.m.a(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v4.app.m.b(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v4.app.m.b(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v4.app.c.e(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at com.topjohnwu.magisk.MainActivity.a(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at com.topjohnwu.magisk.MainActivity.c(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at com.topjohnwu.magisk.MainActivity.onBackPressed(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.app.Activity.onKeyUp(Activity.java:2726)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.KeyEvent.dispatch(KeyEvent.java:2717)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.app.Activity.dispatchKeyEvent(Activity.java:3030)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v7.app.e.dispatchKeyEvent(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v7.view.i.dispatchKeyEvent(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v7.app.h$b.dispatchKeyEvent(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.support.v7.view.i.dispatchKeyEvent(Unknown Source)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:322)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4337)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4308)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3859)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3912)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3878)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4005)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3886)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4062)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3859)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3912)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3878)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3886)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3859)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3912)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3878)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4038)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:4199)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2400)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1964)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1955)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2377)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.os.MessageQueue.nativePollOnce(Native Method)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.os.MessageQueue.next(MessageQueue.java:323)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.os.Looper.loop(Looper.java:136)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at android.app.ActivityThread.main(ActivityThread.java:6186)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at java.lang.reflect.Method.invoke(Native Method)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
08-11 01:23:07.601: E/MessageQueue-JNI(8792):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
08-11 01:23:07.601: D/AndroidRuntime(8792): Shutting down VM
08-11 01:23:07.603: E/AndroidRuntime(8792): FATAL EXCEPTION: main
08-11 01:23:07.603: E/AndroidRuntime(8792): Process: com.topjohnwu.magisk, PID: 8792
08-11 01:23:07.603: E/AndroidRuntime(8792): java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference
08-11 01:23:07.603: E/AndroidRuntime(8792):	at java.util.ArrayList.addAll(ArrayList.java:562)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at com.topjohnwu.magisk.MagiskFragment.ad(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at com.topjohnwu.magisk.MagiskFragment.a(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v4.app.Fragment.b(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v4.app.m.a(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v4.app.m.e(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v4.app.m.a(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v4.app.c.g(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v4.app.m.b(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v4.app.m.a(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v4.app.m.b(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v4.app.m.b(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v4.app.c.e(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at com.topjohnwu.magisk.MainActivity.a(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at com.topjohnwu.magisk.MainActivity.c(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at com.topjohnwu.magisk.MainActivity.onBackPressed(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.app.Activity.onKeyUp(Activity.java:2726)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.KeyEvent.dispatch(KeyEvent.java:2717)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.app.Activity.dispatchKeyEvent(Activity.java:3030)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v7.app.e.dispatchKeyEvent(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v7.view.i.dispatchKeyEvent(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v7.app.h$b.dispatchKeyEvent(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.support.v7.view.i.dispatchKeyEvent(Unknown Source)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:322)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4337)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4308)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3859)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3912)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3878)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4005)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3886)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4062)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3859)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3912)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3878)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3886)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3859)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3912)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3878)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4038)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:4199)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2400)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1964)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1955)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2377)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.os.MessageQueue.nativePollOnce(Native Method)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.os.MessageQueue.next(MessageQueue.java:323)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.os.Looper.loop(Looper.java:136)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at android.app.ActivityThread.main(ActivityThread.java:6186)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at java.lang.reflect.Method.invoke(Native Method)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
08-11 01:23:07.603: E/AndroidRuntime(8792):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

The firmware I use is CyanogenMod 14.1, built on August 10th, 2017. Although it may seem like an error on the module packager side, I think the Magisk Manager has a problem too with the validation.