Gazebo9 hangs in the begining without a message
I am working on a project where multiple drones are supposed to fly in the simulation. I use the gazebo9 with ROS kinetic from the original ubuntu repo. However, sometimes the simulator hangs at the begining with a splash screen and the GUI. The splash screen says "Preparing your world...", but the simulation never starts. This happens randomly and I do not see any message in verbose mode. Can you direct me to debug this problem? This seems like a rendering related problem, it could be some simple problem such as race conditions, but I do not know. I want to learn how to attack that problem.