rosrun gazebo gazebo -h

I don't know why that those options would conflict with headless mode. It's possible that the reason you're having problems is because of the -s -1 option that disables shared memory, but I find that unlikely.