| Summary: | kwin_x11 (EGL): Creating the OpenGL rendering failed: "Invalid QOpenGLContext::globalShareContext()" | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Dan <dan76> |
| Component: | egl | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED INTENTIONAL | ||
| Severity: | normal | CC: | ahiemstra, nate, serfreeman1337, serg, xaver.hugl |
| Priority: | NOR | ||
| Version First Reported In: | 5.25.2 | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Dan
2022-07-05 22:53:39 UTC
Note that "KWIN_COMPOSE=O2ES" means you're forcing KWin into OpenGLES rendering, which happens to also use EGL as platform layer but has a lot more impact than just the platform layer. The correct environment variable for selecting EGL is `KWIN_OPENGL_INTERFACE=egl`. (In reply to Arjen Hiemstra from comment #1) > Note that "KWIN_COMPOSE=O2ES" means you're forcing KWin into OpenGLES > rendering, which happens to also use EGL as platform layer but has a lot > more impact than just the platform layer. The correct environment variable > for selecting EGL is `KWIN_OPENGL_INTERFACE=egl`. I tried just with "KWIN_OPENGL_INTERFACE=egl`" and I got the same output: kwin_core: Forcing EGL native interface through environment variable kwin_core: Attempting to load the OpenGL scene kwin_platform_x11_standalone: Global share context format: QSurfaceFormat(version 4.6, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions|ResetNotification), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 0, samples -1, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 0, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::CompatibilityProfile) kwin_scene_opengl: Creating the OpenGL rendering failed: "Invalid QOpenGLContext::globalShareContext()" kwin_core: Starting without compositing... I was able to run X11 EGL with following envs: QT_XCB_GL_INTEGRATION=xcb_egl KWIN_OPENGL_INTERFACE=egl (In reply to serfreeman1337 from comment #3) > I was able to run X11 EGL with following envs: > > QT_XCB_GL_INTEGRATION=xcb_egl > KWIN_OPENGL_INTERFACE=egl I tested here with those variables and it seems to run using EGL, but I get the following repeating errors: [7161:7320:1126/135150.233476:ERROR:gl_context_egl.cc(259)] eglCreateContext failed with error EGL_BAD_CONTEXT [7161:7320:1126/135150.233482:ERROR:gpu_channel_manager.cc(753)] ContextResult::kFatalFailure: Failed to create shared context for virtualization. [7161:7320:1126/135150.233484:ERROR:shared_image_stub.cc(470)] SharedImageStub: unable to create context [7161:7320:1126/135150.233487:ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub and I noticed a high CPU usage all the time and the panel is missing. Clsoing this one, since the issue doesn't happen with Plasma 6. |