Black screen with 3d acceleration enabled for Gazebo and Rviz (Robotic)

Jean-MichelL

Bit poster
Hi,
I just updated my parallels Desktop to 17.1.1 update. Since this update, 3d acceleration seems to work better as I now have a normal background (before the update I had a black background). However I still have to major problems:
-Gazebo displays a black screen when I enable 3d acceleration
-RVIZ displays a black screen when I enable 3d acceleration
Without 3d acceleration, black screen problem vanishes and I manage to have 15 FPS, but with an M1Pro, I am sure I can get a solid 40 FPS and even more.
 

Attachments

  • Screen Shot 2021-11-30 at 3.29.50 PM.png
    Screen Shot 2021-11-30 at 3.29.50 PM.png
    83.1 KB · Views: 34
I'm having the same issue even on the latest update: Version 17.1.1 (51537). I was really hoping that this update fixes it, especially since it seems to tackle this specific issue from the notes.
 

Attachments

  • Screen Shot 2021-12-31 at 9.52.23 AM.png
    Screen Shot 2021-12-31 at 9.52.23 AM.png
    348.1 KB · Views: 22
I have the same issue. This is pretty much a deal breaker because I use Gazebo for my project quiet often. Hopefully, there will be a fix.
 
Hi everyone,
I finally managed to solve this issue without using the LIBGL_ALWAY_SOFTWARE suggested here which sacrifices the wonderful graphic power from M1 Pro/Max chips.
Firstly, if you've already exported the LIBGL_ALWAY_SOFTWARE variable to 1 in the terminal or in the .bashrc file, please comment it out or set it back to 0 or unset it.
Then either set the OGRE_RTT_MODE manually as below or put it in the .bashrc file.
export OGRE_RTT_MODE=Copy
It permanently solves everything, I can get pretty good fps in very complicated Gazebo simulation, stably 60fps, as compared to only 8fps with software rendering enforced.
Cheers, and enjoy it!
PS: I really can't believe how bad does Parallel team handles this. I raised 2 tickets about this issue to the support team but they didn't reach back to me until after 2 weeks. The reply is like nothing helpful, one of which let me re-install the Parallel tools but with the link for the Windows machine. I stated so clearly it happened on Linux Guest OS and also the kernel error message.. Really nothing to say about it.

I have the same issue. This is pretty much a deal breaker because I use Gazebo for my project quiet often. Hopefully, there will be a fix.
 
Hi everyone,
I finally managed to solve this issue without using the LIBGL_ALWAY_SOFTWARE suggested here which sacrifices the wonderful graphic power from M1 Pro/Max chips.
Firstly, if you've already exported the LIBGL_ALWAY_SOFTWARE variable to 1 in the terminal or in the .bashrc file, please comment it out or set it back to 0 or unset it.
Then either set the OGRE_RTT_MODE manually as below or put it in the .bashrc file.
export OGRE_RTT_MODE=Copy
It permanently solves everything, I can get pretty good fps in very complicated Gazebo simulation, stably 60fps, as compared to only 8fps with software rendering enforced.
Cheers, and enjoy it!
PS: I really can't believe how bad does Parallel team handles this. I raised 2 tickets about this issue to the support team but they didn't reach back to me until after 2 weeks. The reply is like nothing helpful, one of which let me re-install the Parallel tools but with the link for the Windows machine. I stated so clearly it happened on Linux Guest OS and also the kernel error message.. Really nothing to say about it.
THIS IS THE GREATEST NEWS SINCE I HAVE MY MAC! I pass from 12 fps to 62 fps and I'm almost sure it is capped and could be better. thank you!
 
Hi everyone,
I finally managed to solve this issue without using the LIBGL_ALWAY_SOFTWARE suggested here which sacrifices the wonderful graphic power from M1 Pro/Max chips.
Firstly, if you've already exported the LIBGL_ALWAY_SOFTWARE variable to 1 in the terminal or in the .bashrc file, please comment it out or set it back to 0 or unset it.
Then either set the OGRE_RTT_MODE manually as below or put it in the .bashrc file.
export OGRE_RTT_MODE=Copy
It permanently solves everything, I can get pretty good fps in very complicated Gazebo simulation, stably 60fps, as compared to only 8fps with software rendering enforced.
Cheers, and enjoy it!
PS: I really can't believe how bad does Parallel team handles this. I raised 2 tickets about this issue to the support team but they didn't reach back to me until after 2 weeks. The reply is like nothing helpful, one of which let me re-install the Parallel tools but with the link for the Windows machine. I stated so clearly it happened on Linux Guest OS and also the kernel error message.. Really nothing to say about it.
Thank you so much! Yeah, I agree that Parallel team's customer support is pretty much using template for trouble shooting and not trying to understand the problem itself. Before the problem was solved, I also find myself using WSL2 quiet a lot with the latest Windows 11 and everything just works right out of the box. The WSL2 also supports GPU passthrough if you have a dedicated Nvidia GPU (This is off topic, but I am just leaving it here just in case you guys need to run something graphically intensive, or need to do machine learning)
 
Hi everyone,
I finally managed to solve this issue without using the LIBGL_ALWAY_SOFTWARE suggested here which sacrifices the wonderful graphic power from M1 Pro/Max chips.
Firstly, if you've already exported the LIBGL_ALWAY_SOFTWARE variable to 1 in the terminal or in the .bashrc file, please comment it out or set it back to 0 or unset it.
Then either set the OGRE_RTT_MODE manually as below or put it in the .bashrc file.
export OGRE_RTT_MODE=Copy
It permanently solves everything, I can get pretty good fps in very complicated Gazebo simulation, stably 60fps, as compared to only 8fps with software rendering enforced.
Cheers, and enjoy it!
PS: I really can't believe how bad does Parallel team handles this. I raised 2 tickets about this issue to the support team but they didn't reach back to me until after 2 weeks. The reply is like nothing helpful, one of which let me re-install the Parallel tools but with the link for the Windows machine. I stated so clearly it happened on Linux Guest OS and also the kernel error message.. Really nothing to say about it.

I did that but I am still having the same issue. I still have the black screen on the gazebo. Is there other things that you have tried before the
export OGRE_RTT_MODE=Copy ???
 
THIS IS THE GREATEST NEWS SINCE I HAVE MY MAC! I pass from 12 fps to 62 fps and I'm almost sure it is capped and could be better. thank you!


What did you do specifically?

export OGRE_RTT_MODE=Copy

I typed that command and ran gazebo with rviz. I am still having the same issue.
 
I have a Macbook Pro M1 with 8 GB ram, and use the most recent Parallels version (19). export OGRE_RTT_MODE = COPY method didn't work for me, with 3D Acceleration I get an error directly from Gazebo. I use Ubuntu 22.04.3 Desktop from arm64 image, didn't install from Parallels itself (which has 22.04.2). Can that be the reason? Did anyone has used gazebo successfully with M1? Note that I have gazebo garden that I installed from binary build.
 
Hi everyone,
I finally managed to solve this issue without using the LIBGL_ALWAY_SOFTWARE suggested here which sacrifices the wonderful graphic power from M1 Pro/Max chips.
Firstly, if you've already exported the LIBGL_ALWAY_SOFTWARE variable to 1 in the terminal or in the .bashrc file, please comment it out or set it back to 0 or unset it.
Then either set the OGRE_RTT_MODE manually as below or put it in the .bashrc file.
export OGRE_RTT_MODE=Copy
It permanently solves everything, I can get pretty good fps in very complicated Gazebo simulation, stably 60fps, as compared to only 8fps with software rendering enforced.
Cheers, and enjoy it!
PS: I really can't believe how bad does Parallel team handles this. I raised 2 tickets about this issue to the support team but they didn't reach back to me until after 2 weeks. The reply is like nothing helpful, one of which let me re-install the Parallel tools but with the link for the Windows machine. I stated so clearly it happened on Linux Guest OS and also the kernel error message.. Really nothing to say about it.
Unfortunately, this trick isn't working anymore. I have a MacBook Pro M1 MAX and I installed Ubuntu 22.04. with the Parallels version 18.2.0. For my work I am using zsh as a shell and the only thing I have done so far in Ubuntu was to successfully install ROS2. The workaround using export LIBGL_ALWAY_SOFTWARE = 1 and forcing it to render on software does work, but this is not useful for more complex projects. Does anybody have a suggestion what I could try to make it render on my Apple hardware?
 
Hello, so I have struggled with the same problem quite recently. I am running Gazebo Garden built from source on Ubuntu 22.04 with Parallels 20. Even though the workaround with export LIBGL_ALWAY_SOFTWARE = 1 keeps on working, it still has the mentioned FPS cap, which makes it not interesting at all. However, I was able to run at 60 fps by running gz sim --render-engine ogre, which uses ogre1 instead of ogre2. There are some losses in the rendering quality but it might still be useful.
 
Back
Top