Glad it's working for you. are you running 19 or 18.1 Magisk?
It's not a module; I disabled them all.
Do you have TWRP installed and which version?
I might try without TWRP. Just boot into TWRP and install with no modules active.
I'm reluctant to wipe my device.
Also Zram would not disable for me. It just spins also.
So my update.
ElementalX 3.15 and Magisk 19 do play nice.
What doesn't play nice is some of the settings you can mess with in the EX Kernel Manager app.
I removed the app and the settings and the rebooting stopped.
I reinstalled the app and tried to shut off ZRAM and the rebooting started again.
So they play nice but be careful of the settings in the EX Kernel Manager because you can cause some issues with the settings.
It also appears that they have implemented ZRAM in a way that makes it difficult if not impossible to stop.
I tried from the command line to resize and stop ZRAM. No effect on either EX or the stock kernel.
I'll need to dig more to try and figure out how they are starting the service and how to stop it.
The normal commands don't work.
Witch file should I edit?It is safe.
no random reboots on my phone.
Stay away from settings that control ZRam; they can cause issues if you try to disable it.
If you want to disable ZRam use the following method:
Add these two build prop lines , save and reboot,