I also can't run 1.15 pre5 with java 10
I'm gonna try with 1.8 now.
edit:
Starting the server with Java 1.8 made it work.
I read somewhere that you needed to use the jre version, I don't know if that's true though.
for those who don't know how, make your batchfile like this:
"%Path_to_java_directory%\java.exe" -Xmx(maximum memory) -Xms(minimum memory) -Xss(set stack size (for 32bit java if i'm not wrong)) -jar ServerFile.jar
In my case, that would be:
"C:\Program Files (x86)\Java\jre1.8.0_121\bin\java.exe" -Xmx1024M -Xms1024M -Xss1m -jar minecraft_server.jar
I have the same bug, it happens when you give an effect to other entities as well.
I tried:
/effect give @e[type=pig,limit=50] glowing
/effect give @e[type=sheep] glowing