Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
5.15.7, 6.4.2
-
None
Description
QML runtime "qmlscene" has been deprecated. Nevertheless, it should not crash, as long as it is still around. To reproduce run the attached QML code. These are the results:
X11, Qt6:
qt.tools.qmlscene.deprecated: Warning: qmlscene is deprecated and will be removed in a future version of Qt. Please use qml instead.
QEGLPlatformContext: eglMakeCurrent failed: 3009
QRhiGles2: Failed to make context current. Expect bad things to happen.
Failed to create RHI (backend 2)
Failed to create QRhi on the render thread; scenegraph is not functional
Failed to initialize graphics backend for OpenGL.
Aborted (core dumped)
X11, Qt5:
QEGLPlatformContext: eglMakeCurrent failed: 3009 - many times and window is completely transparent (inner green rectangle is not shown)
Wayland, Weston: transparent part is black
Wayland Qt compositor: transparent part is black, only if QT_WAYLAND_DISABLE_WINDOWDECORATION=1
Here's the setup:
qt.scenegraph.general: Using QRhi with backend OpenGL Graphics API debug/validation layers: 0 QRhi profiling and debug markers: 0 Shader/pipeline cache collection: 0 qt.scenegraph.general: threaded render loop qt.scenegraph.general: Using sg animation driver qt.scenegraph.general: Animation Driver: using vsync: 16.67 ms qt.scenegraph.general: Using sg animation driver qt.scenegraph.general: Animation Driver: using vsync: 16.67 ms qt.rhi.general: Created OpenGL context QSurfaceFormat(version 3.2, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QColorSpace(), profile QSurfaceFormat::NoProfile) qt.rhi.general: OpenGL VENDOR: AMD RENDERER: Radeon RX550/550 Series (POLARIS12, DRM 3.42.0, 5.15.0-60-generic, LLVM 12.0.0) VERSION: OpenGL ES 3.2 Mesa 21.2.6 qt.scenegraph.general: MSAA sample count for the swapchain is 1. Alpha channel requested = no. qt.scenegraph.general: rhi texture atlas dimensions: 512x512
This is a follow up of QTBUG-79157