<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[rviz2黑屏问题]]></title><description><![CDATA[<h1>rviz2黑屏和gazebo无法启动问题</h1>
<h2>背景</h2>
<p dir="auto">windows11，集成显卡，wsl2，ros2的humble，Ubuntu22.04.5</p>
<h2>问题描述</h2>
<p dir="auto">运行rviz2能正常打开，但是中间显示图像为黑屏，gazebo则是直接无法打开<img src="/forum/assets/uploads/files/1763544279761-887a6c67-3d39-4ce3-8935-b8dac8557e58-image-resized.png" alt="887a6c67-3d39-4ce3-8935-b8dac8557e58-image.png" class=" img-fluid img-markdown" /></p>
<h2>尝试的解决方案</h2>
<p dir="auto">目前已经尝试过设置环境变量的方式<br />
export LIBGL_ALWAYS_SOFTWARE=1<br />
是可行的，但是这个方法使用的是cpu加速所以运行rviz和gazebo都是卡卡的，求助大佬有无更好的解决方案</p>
]]></description><link>https://fishros.org.cn/forum/topic/4647/rviz2黑屏问题</link><generator>RSS for Node</generator><lastBuildDate>Sun, 04 Oct 2026 05:20:52 GMT</lastBuildDate><atom:link href="https://fishros.org.cn/forum/topic/4647.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Nov 2025 09:27:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to rviz2黑屏问题 on Mon, 01 Dec 2025 12:38:20 GMT]]></title><description><![CDATA[<h1>前言</h1>
<p dir="auto">关于这个问题，我又在各大网站搜了下，截至2025.12.1，我得到的结果是wsl2中使用硬件（集成显卡intel Arc）去加速rviz和gazebo是不行的。</p>
<h1>进展</h1>
<h2>1.硬件加速没有被调用？</h2>
<p dir="auto">貌似不是的，结合intel网站上的问答和我下午的实测，会有这样的现象，经过一些设置，在运行glxgears的时候会<strong>小概率</strong>触发硬件加速，此时查看GPU0使用率在50%左右，齿轮能正常显示并且转动，大多数情况下是显示黑屏，但我认为这并不是硬件加速未启用而是因为无法被正常显示到屏幕，因为过程中我观察GPU0的使用率也是有的，但相较于前面一种情况很少，大约只有10%，再结合github里面wslg的议题，我总觉得是weston等一些显示部分没有发挥作用，但是我并未去深入了解。</p>
<h2>2.查询该问题时的一些网址</h2>
<p dir="auto">下面给出我在查询过程中的一些网址，感兴趣的朋友可以在看帖的此刻点进去看看，说不定这个问题已经被解决了呢（如果真的解决了记得回来告诉大家，感谢！）</p>
<ul>
<li><a href="https://community.intel.com/t5/Graphics/Ignition-Gazebo-Gazebo-Sim-6-Crash-with-Intel-Iris-Xe-Graphics/m-p/1703159#M143925" target="_blank" rel="noopener noreferrer nofollow ugc">https://community.intel.com/t5/Graphics/Ignition-Gazebo-Gazebo-Sim-6-Crash-with-Intel-Iris-Xe-Graphics/m-p/1703159#M143925</a></li>
<li><a href="https://github.com/microsoft/wslg/issues/554" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/microsoft/wslg/issues/554</a></li>
<li><a href="https://github.com/microsoft/wslg?tab=readme-ov-file" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/microsoft/wslg?tab=readme-ov-file</a></li>
<li><a href="https://community.intel.com/t5/Graphics/Intel-integrated-arc-igpu-in-Core-Ultra-7-not-working-properly/m-p/1578596" target="_blank" rel="noopener noreferrer nofollow ugc">https://community.intel.com/t5/Graphics/Intel-integrated-arc-igpu-in-Core-Ultra-7-not-working-properly/m-p/1578596</a></li>
</ul>
]]></description><link>https://fishros.org.cn/forum/post/19310</link><guid isPermaLink="true">https://fishros.org.cn/forum/post/19310</guid><dc:creator><![CDATA[2030985559]]></dc:creator><pubDate>Mon, 01 Dec 2025 12:38:20 GMT</pubDate></item><item><title><![CDATA[Reply to rviz2黑屏问题 on Sat, 29 Nov 2025 00:53:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fishros.org.cn/forum/uid/25326">@13735512044</a> 目前我只能通过设置软件加速勉强用</p>
]]></description><link>https://fishros.org.cn/forum/post/19303</link><guid isPermaLink="true">https://fishros.org.cn/forum/post/19303</guid><dc:creator><![CDATA[2030985559]]></dc:creator><pubDate>Sat, 29 Nov 2025 00:53:52 GMT</pubDate></item><item><title><![CDATA[Reply to rviz2黑屏问题 on Tue, 25 Nov 2025 05:08:51 GMT]]></title><description><![CDATA[<p dir="auto">我也遇到了这个问题。不知道怎么解决。</p>
]]></description><link>https://fishros.org.cn/forum/post/19296</link><guid isPermaLink="true">https://fishros.org.cn/forum/post/19296</guid><dc:creator><![CDATA[13735512044]]></dc:creator><pubDate>Tue, 25 Nov 2025 05:08:51 GMT</pubDate></item></channel></rss>