Open johnwason opened 10 months ago
Can you describe your test environment? In a sense, are you starting gzserver
and then trying to start gzclient
several times, or for every test you are launching a new gzserver
and gzclient
?
I was starting one instance each of the client and server at a time, using either the gazebo
command or gzserver
followed by gzclient
. I was trying to figure out if there was an issue with gzclient
connecting too soon. I also tinkered with the environmental variables for GAZEBO_IP
and IGN_IP
along with other variables to see if it was a networking issue. The problem may not happen with an empty world. I have been using version 11.12 without seeing this problem. I was not able to reliably reproduce it either.
After a lot of trial and error, it appears the problem is that if the gzclient window spawns on a secondary monitor it will hang on startup. If it spawns on the main monitor, it seems to work. I have a three monitor setup so it will spawn on different screens depending on how Windows is feeling at that moment. Once the window has spawned on the main monitor it can be moved to a different monitor. The easiest solution is to disable extra monitors when using gazebo. I don't know if this is a problem with the Nvidia drivers for my RTX 3090 or if it is a problem with Ogre/Gazebo. If someone else has a multi-monitor setup it would be interesting to experiment.
I finally found the problem!
It has something to do with NahimicOSD.dll
, which is a filter driver that is inserting itself into programs to provide some kind of useless on screen display. Apparently it comes with Alienware systems, along with a lot of other computers device drivers. It is loading an old version of DirectX which is causing the problem. DirectX is not being loaded by Gazebo.
This appears to be a similar problem: https://github.com/prusa3d/PrusaSlicer/issues/5573
Solution to issue cannot be found in the documentation.
Issue
gazebo client will hang on open intermittently on Windows with the most recent 11.13 builds. It will start up normally for a few times, and then will randomly refuse to start several times, until randomly starting normally again. I tried installing version 11.12 and it seems to work normally. I tested in a clean environment with no other packages installed beyond gazebo and its dependencies.
It looks similar to this problem: https://github.com/ms-iot/ROSOnWindows/issues/47
This problem is intermittent so it is very difficult to determine what conditions cause it.
Installed packages
Environment info