<?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[X11 Nvidia black window]]></title><description><![CDATA[<p dir="auto">We get a black window when running smallest possible Qt application using OpenGL on Linux with an Nvidia graphics card (proprietary 580.159.03).</p>
<p dir="auto">To rule out environment and driver problems, we have written three corresponding applications using xlib only, xcb only, and a xlib xcb mix. All three of them work on the same Nvidia graphics card in the same environment.<br />
The attached xlib.cpp, xcb.cpp, xcb_xlib.cpp and qt.cpp can be built following the instructions in build_and_run.sh (replace the QT path in the script to where your Qt installation is first).<br />
Replacing EGL_PLATFORM_XCB_KHR with EGL_PLATFORM_X11_KHR in xcb_xlib.cpp, and using xlib display, causes eglCreatePlatformWindowSurfaceEXT to return a nullptr for EGLSurface in xcb_xlib.cpp, exactly what we see in Qt.<br />
Is there something we're missing in qt.cpp to make this work or is this a bug in Qt that can be fixed?<br />
We started looking into the Qt source code, the call to eglCreatePlatformWindowSurfaceEXT(EGL_PLATFORM_X11_KHR, xlib display, [...]) returns 0. If we modify Qt to call eglCreatePlatformWindowSurfaceEXT(EGL_PLATFORM_XCB_KHR, xcb connection, [...]), we instead get a valid surface that can be queried with eglQuerySurface that report the correct size. The window is still black but having a surface is a good start for anyone looking into this.</p>
<p dir="auto"><a href="https://drive.google.com/file/d/1VeEOeEb74BybcQg9nnEJORb_EnWZ78GA/view?usp=drive_link" target="_blank" rel="noopener noreferrer nofollow ugc">Attached source files</a></p>
]]></description><link>https://forum.qt.io/topic/165114/x11-nvidia-black-window</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 22:10:41 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165114.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Sep 2026 11:16:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to X11 Nvidia black window on Wed, 21 Oct 2026 13:37:36 GMT]]></title><description><![CDATA[<p dir="auto">Since the XCB version creates a valid surface while the X11 version returns a null surface, it does sound like the issue could be related to the EGL platform configuration. It would be interesting to see whether the same behavior occurs with a different Nvidia driver version or a minimal Qt example.</p>
]]></description><link>https://forum.qt.io/post/840556</link><guid isPermaLink="true">https://forum.qt.io/post/840556</guid><dc:creator><![CDATA[kavinreed]]></dc:creator><pubDate>Wed, 21 Oct 2026 13:37:36 GMT</pubDate></item><item><title><![CDATA[Reply to X11 Nvidia black window on Tue, 20 Oct 2026 08:06:16 GMT]]></title><description><![CDATA[<p dir="auto">We've reproduced the issue on the following combinations:</p>
<ul>
<li>Ubuntu 26.04, Linux 7.0.0, Quadro P2200, driver version 580.178</li>
<li>Ubuntu 26.04.1 LTS, Linux 7.0.0-38-generic, GeForce RTX 4060, driver version 595.99.02</li>
</ul>
<p dir="auto">In addition, we've seen the problem manifest on several other combinations of Ubuntu/Linux/graphics card/driver versions, with the only common factor being Qt.</p>
]]></description><link>https://forum.qt.io/post/840545</link><guid isPermaLink="true">https://forum.qt.io/post/840545</guid><dc:creator><![CDATA[emfo]]></dc:creator><pubDate>Tue, 20 Oct 2026 08:06:16 GMT</pubDate></item><item><title><![CDATA[Reply to X11 Nvidia black window on Mon, 19 Oct 2026 13:36:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Thank you. I will find that information and post it here asap.</p>
]]></description><link>https://forum.qt.io/post/840542</link><guid isPermaLink="true">https://forum.qt.io/post/840542</guid><dc:creator><![CDATA[emfo]]></dc:creator><pubDate>Mon, 19 Oct 2026 13:36:51 GMT</pubDate></item><item><title><![CDATA[Reply to X11 Nvidia black window on Mon, 19 Oct 2026 13:25:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/axel-spoerl">@<bdi>Axel-Spoerl</bdi></a> the attached sources are a minimal reproducible example.</p>
]]></description><link>https://forum.qt.io/post/840541</link><guid isPermaLink="true">https://forum.qt.io/post/840541</guid><dc:creator><![CDATA[emfo]]></dc:creator><pubDate>Mon, 19 Oct 2026 13:25:06 GMT</pubDate></item><item><title><![CDATA[Reply to X11 Nvidia black window on Sat, 10 Oct 2026 18:15:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">You should also provide the kernel version you are using as well graphics card model.</p>
]]></description><link>https://forum.qt.io/post/840421</link><guid isPermaLink="true">https://forum.qt.io/post/840421</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 10 Oct 2026 18:15:29 GMT</pubDate></item><item><title><![CDATA[Reply to X11 Nvidia black window on Sat, 10 Oct 2026 12:45:59 GMT]]></title><description><![CDATA[<p dir="auto">I am using X11 on Nvidia and I don't have this issue.<br />
Please post a minimal reproducer here.</p>
]]></description><link>https://forum.qt.io/post/840420</link><guid isPermaLink="true">https://forum.qt.io/post/840420</guid><dc:creator><![CDATA[Axel Spoerl]]></dc:creator><pubDate>Sat, 10 Oct 2026 12:45:59 GMT</pubDate></item></channel></rss>