Home | Tutorials | Wiki | Issues
Ask Your Question

Windows 10 gzclient crashes on startup

asked 2016-05-12 07:24:57 -0500

azaclauson gravatar image

I've built gazebo from source on Windows 10 as per these instructions.

The gzserver application now starts ok but when attempting to run gzclient I get the gazebo splash screen and then it immediately crashes.

The ogre.log in C:\Users\username.gazebo ends with:

22:26:01: Added resource location '\gz-ws\gazebo\/media/rtshaderlib/' of type 'FileSystem' to resource group 'General' 22:26:01: Creating resource group ShaderGeneratorResourceGroup 22:26:01: Added resource location 'C:/Users/username/AppData/Local/Temp/gazebo-nobody-rtshaderlibcache/' of type 'FileSystem' to resource group 'ShaderGeneratorResourceGroup' 22:26:02: Can't assign material _NULL_ to SubEntity of SkyXMeshEnt because this Material does not exist. Have you forgotten to define it in a .material script?

The preceding log messages in the ogre.log file have a lot of detail about successfully loading the NVidia OpenGL driver.

The specific error message is already mentioned in this forum here. The solution in that case seems to have been to update or change the Ogre version. I tried changing the PluginFolder in plugins.cfg to point to Ogre 1.90 binaries but that caused gzserver to crash on start up.

I have used the specific versions and downloads listed from the Gazebo instructions link so I'm wondering if anyone else has encountered a problem running gzclient on Windows?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-05-17 07:51:49 -0500

azaclauson gravatar image

Well after two weeks of evenings spent twisting and turning I was able to get gazebo to build on Windows 10 with Visual Studio 2013. When I say working it's so far as neither gzserver or gzclient crash on start up and the Gazebo GUI does eventually appear and the menus, buttons etc. work. The gzclient gui did eventually crash when I cancelled a model edit that I inadvertently started.

For anyone else that's going to attempt to build on Windows I'd love to be able to supply a recipe but I've tried and changed so many different things that it would take me another week to get it all straight. A few of the points I would highlight are:

  1. Following the instructions on the wiki http://gazebosim.org/tutorials?tut=in... are almost certainly doomed to fail. The cmake configuration for the nmake makefiles has a few broken paths and missing bits that require moving libraries and include files around until the get correctly located (unfortunately I didn't get far trying to fix issues in the cmake configuration),

  2. Even after I was finally able to get the nmake makefiles to build I had a lot of issues with missing dll's and then after sorting that out (mainly using depends.exe) ogre not being able to find its dll's (sorted out after finding the log file in c:\users\username.gazebo),

  3. After sorting out the dll's and ogre the gzserver process would run ok but the gzclient would still crash and that's the point I originally asked this question. I tried to track the crash down using windbg but the .pdb files from the nmake debug build were missing so I was not able to determine the cause,

  4. I then changed tack and got cmake to create Visual Studio 2013 project files instead of nmake make files. That again took a lot of massaging with include and library directories but I did eventually get it to build. This time I was able to debug both the gzserver and gzclient processes and fix issues with missing environment variable and ogre dependencies not loading.

So that's the point I'm at now. My main reason to try gazebo on Windows was because the performance on my ubuntu virtual machine was very slow. However the windows performance seems about the same so I'm going to switch back to ubuntu as I'm not confident my Windows build is going to be very reliable.

edit flag offensive delete link more

answered 2016-05-12 11:16:35 -0500

nkoenig gravatar image

Thanks for the information. Windows is still a work in progress. I would wait until OSRF releases an official binary for windows.

edit flag offensive delete link more


Will the Gazebo 9 release (just weeks away!) include availability of Windows binaries?

Maurice gravatar imageMaurice ( 2018-01-01 02:12:44 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-05-12 07:24:57 -0500

Seen: 364 times

Last updated: May 17 '16