Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QT3D crashes on qt3d sample



  • Dear all,
    In the hope than one day, I'll be able to make qtwebgl plugin to work (I was unable to get this working with qt5) I tried with qt6. I got QT6 from the online download, then I have built qt3D for qt6 first, the processe went ok.

    The sample compiled also fine from:
    https://github.com/qt/qt3d tag 6.0
    https://github.com/qt/qt3d tag 6.0.0
    https://github.com/qt/qt3d tag 6.1

    But all the examples ended up failing or crashing with similar errors, now here is the runtime crash log:

    QT_DEBUG_PLUGINS=1 ./simple-cpp 
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt/6.0.1/gcc_64/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/libqeglfs.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforms/libqeglfs.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "eglfs"
            ]
        },
        "archreq": 0,
        "className": "QEglFSIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("eglfs")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/libqlinuxfb.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforms/libqlinuxfb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "linuxfb"
            ]
        },
        "archreq": 0,
        "className": "QLinuxFbIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/libqminimal.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforms/libqminimal.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimal"
            ]
        },
        "archreq": 0,
        "className": "QMinimalIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("minimal")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/libqminimalegl.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforms/libqminimalegl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "minimalegl"
            ]
        },
        "archreq": 0,
        "className": "QMinimalEglIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("minimalegl")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/libqoffscreen.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforms/libqoffscreen.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "offscreen"
            ]
        },
        "archreq": 0,
        "className": "QOffscreenIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("offscreen")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/libqvnc.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforms/libqvnc.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "vnc"
            ]
        },
        "archreq": 0,
        "className": "QVncIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("vnc")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/libqwayland-egl.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforms/libqwayland-egl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland-egl"
            ]
        },
        "archreq": 0,
        "className": "QWaylandEglPlatformIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("wayland-egl")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/libqwayland-generic.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforms/libqwayland-generic.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland"
            ]
        },
        "archreq": 0,
        "className": "QWaylandIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("wayland")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/libqwayland-xcomposite-egl.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforms/libqwayland-xcomposite-egl.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland-xcomposite-egl"
            ]
        },
        "archreq": 0,
        "className": "QWaylandXCompositeEglPlatformIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("wayland-xcomposite-egl")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/libqwayland-xcomposite-glx.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforms/libqwayland-xcomposite-glx.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "wayland-xcomposite-glx"
            ]
        },
        "archreq": 0,
        "className": "QWaylandXCompositeGlxPlatformIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("wayland-xcomposite-glx")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/libqxcb.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforms/libqxcb.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
        "MetaData": {
            "Keys": [
                "xcb"
            ]
        },
        "archreq": 0,
        "className": "QXcbIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("xcb")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/qeglfs.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/qlinuxfb.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/qminimal.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/qminimalegl.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/qoffscreen.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/qvnc.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/qwayland-egl.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/qwayland-generic.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/qwayland-xcomposite-egl.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/qwayland-xcomposite-glx.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforms/qxcb.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "/home/user/projects/build-examples-MyQt6-Release/qt3d/simple-cpp/platforms" ...
    loaded library "/opt/Qt/6.0.1/gcc_64/plugins/platforms/libqxcb.so"
    loaded library "Xcursor"
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt/6.0.1/gcc_64/plugins/platformthemes" ...
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platformthemes/libqgtk3.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platformthemes/libqgtk3.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "gtk3"
            ]
        },
        "archreq": 0,
        "className": "QGtk3ThemePlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("gtk3")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platformthemes/libqxdgdesktopportal.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platformthemes/libqxdgdesktopportal.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "xdgdesktopportal",
                "flatpak",
                "snap"
            ]
        },
        "archreq": 0,
        "className": "QXdgDesktopPortalThemePlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("xdgdesktopportal", "flatpak", "snap")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platformthemes/qgtk3.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platformthemes/qxdgdesktopportal.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "/home/user/projects/build-examples-MyQt6-Release/qt3d/simple-cpp/platformthemes" ...
    loaded library "/opt/Qt/6.0.1/gcc_64/plugins/platformthemes/libqgtk3.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt/6.0.1/gcc_64/plugins/platforminputcontexts" ...
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforminputcontexts/composeplatforminputcontextplugin.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforminputcontexts/ibusplatforminputcontextplugin.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "compose",
                "xim"
            ]
        },
        "archreq": 0,
        "className": "QComposePlatformInputContextPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("compose", "xim")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
        "MetaData": {
            "Keys": [
                "ibus"
            ]
        },
        "archreq": 0,
        "className": "QIbusPlatformInputContextPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("ibus")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/user/projects/build-examples-MyQt6-Release/qt3d/simple-cpp/platforminputcontexts" ...
    loaded library "/opt/Qt/6.0.1/gcc_64/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers" ...
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/assimpsceneimport.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/gltfsceneexport.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/gltfsceneimport.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libassimpsceneimport.a"
    QElfParser: '/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libassimpsceneimport.a' is not an ELF object
    "'/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libassimpsceneimport.a' is not an ELF object" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libassimpsceneimport.prl"
    QElfParser: '/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libassimpsceneimport.prl' is not an ELF object
    "'/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libassimpsceneimport.prl' is not an ELF object" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libassimpsceneimport.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libassimpsceneimport.so, metadata=
    {
        "IID": "org.qt-project.Qt3DRender.QSceneImportFactoryInterface 5.7",
        "MetaData": {
            "Keys": [
                "assimp"
            ]
        },
        "archreq": 0,
        "className": "AssimpSceneImportPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("assimp")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneexport.a"
    QElfParser: '/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneexport.a' is not an ELF object
    "'/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneexport.a' is not an ELF object" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneexport.prl"
    QElfParser: '/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneexport.prl' is not an ELF object
    "'/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneexport.prl' is not an ELF object" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneexport.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneexport.so, metadata=
    {
        "IID": "org.qt-project.Qt3DRender.QSceneExportFactoryInterface 5.9",
        "MetaData": {
            "Keys": [
                "gltfexport"
            ]
        },
        "archreq": 0,
        "className": "GLTFSceneExportPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList()
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneimport.a"
    QElfParser: '/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneimport.a' is not an ELF object
    "'/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneimport.a' is not an ELF object" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneimport.prl"
    QElfParser: '/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneimport.prl' is not an ELF object
    "'/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneimport.prl' is not an ELF object" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneimport.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneimport.so, metadata=
    {
        "IID": "org.qt-project.Qt3DRender.QSceneImportFactoryInterface 5.7",
        "MetaData": {
            "Keys": [
                "gltf"
            ]
        },
        "archreq": 0,
        "className": "GLTFSceneImportPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("gltf")
    QFactoryLoader::QFactoryLoader() checking directory path "/home/user/projects/build-examples-MyQt6-Release/qt3d/simple-cpp/sceneparsers" ...
    loaded library "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libassimpsceneimport.so"
    loaded library "/opt/Qt/6.0.1/gcc_64/plugins/sceneparsers/libgltfsceneimport.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt/6.0.1/gcc_64/plugins/3dinputdevices" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/user/projects/build-examples-MyQt6-Release/qt3d/simple-cpp/3dinputdevices" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt/6.0.1/gcc_64/plugins/xcbglintegrations" ...
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/xcbglintegrations/libqxcb-egl-integration.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/xcbglintegrations/libqxcb-egl-integration.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
        "MetaData": {
            "Keys": [
                "xcb_egl"
            ]
        },
        "archreq": 0,
        "className": "QXcbEglIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("xcb_egl")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so, metadata=
    {
        "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
        "MetaData": {
            "Keys": [
                "xcb_glx"
            ]
        },
        "archreq": 0,
        "className": "QXcbGlxIntegrationPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("xcb_glx")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/xcbglintegrations/qxcb-egl-integration.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/xcbglintegrations/qxcb-glx-integration.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "/home/user/projects/build-examples-MyQt6-Release/qt3d/simple-cpp/xcbglintegrations" ...
    loaded library "/opt/Qt/6.0.1/gcc_64/plugins/xcbglintegrations/libqxcb-glx-integration.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt/6.0.1/gcc_64/plugins/renderers" ...
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/renderers/libopenglrenderer.a"
    QElfParser: '/opt/Qt/6.0.1/gcc_64/plugins/renderers/libopenglrenderer.a' is not an ELF object
    "'/opt/Qt/6.0.1/gcc_64/plugins/renderers/libopenglrenderer.a' is not an ELF object" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/renderers/libopenglrenderer.prl"
    QElfParser: '/opt/Qt/6.0.1/gcc_64/plugins/renderers/libopenglrenderer.prl' is not an ELF object
    "'/opt/Qt/6.0.1/gcc_64/plugins/renderers/libopenglrenderer.prl' is not an ELF object" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/renderers/libopenglrenderer.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/renderers/libopenglrenderer.so, metadata=
    {
        "IID": "org.qt-project.Qt3DRender.QRendererFactoryInterface 5.11",
        "MetaData": {
            "Keys": [
                "opengl"
            ]
        },
        "archreq": 0,
        "className": "OpenGLRendererPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("opengl")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/renderers/librhirenderer.a"
    QElfParser: '/opt/Qt/6.0.1/gcc_64/plugins/renderers/librhirenderer.a' is not an ELF object
    "'/opt/Qt/6.0.1/gcc_64/plugins/renderers/librhirenderer.a' is not an ELF object" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/renderers/librhirenderer.prl"
    QElfParser: '/opt/Qt/6.0.1/gcc_64/plugins/renderers/librhirenderer.prl' is not an ELF object
    "'/opt/Qt/6.0.1/gcc_64/plugins/renderers/librhirenderer.prl' is not an ELF object" 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/renderers/librhirenderer.so"
    Found metadata in lib /opt/Qt/6.0.1/gcc_64/plugins/renderers/librhirenderer.so, metadata=
    {
        "IID": "org.qt-project.Qt3DRender.QRendererFactoryInterface 5.11",
        "MetaData": {
            "Keys": [
                "rhi"
            ]
        },
        "archreq": 0,
        "className": "RhiRendererPlugin",
        "debug": false,
        "version": 393216
    }
    
    
    Got keys from plugin meta data QList("rhi")
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/renderers/openglrenderer.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/opt/Qt/6.0.1/gcc_64/plugins/renderers/rhirenderer.debug"
    "The shared library was not found." 
             not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "/home/user/projects/build-examples-MyQt6-Release/qt3d/simple-cpp/renderers" ...
    loaded library "/opt/Qt/6.0.1/gcc_64/plugins/renderers/libopenglrenderer.so"
    Qt3D.Renderer.OpenGL.Backend: virtual void Qt3DRender::Render::OpenGL::Renderer::initialize() OpenGL context creation failed
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt/6.0.1/gcc_64/plugins/accessiblebridge" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/user/projects/build-examples-MyQt6-Release/qt3d/simple-cpp/accessiblebridge" ...
    Qt3D.Renderer.OpenGL.Backend: bool Qt3DRender::Render::OpenGL::GraphicsContext::makeCurrent(QSurface*) makeCurrent failed
    QFactoryLoader::QFactoryLoader() checking directory path "/opt/Qt/6.0.1/gcc_64/plugins/accessible" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/home/user/projects/build-examples-MyQt6-Release/qt3d/simple-cpp/accessible" ...
    Erreur de segmentation (core dumped)
    

    I have no clue what is going on here. The sample was working with QT5.


  • Lifetime Qt Champion

    Hi,

    What kind of graphics card do you have ?
    Which drivers does it use ?



  • Thank you for your feedback:
    System: 5.8.0-43-generic #49~20.04.1-Ubuntu x86_64 - Ubuntu 20.04.2 LTS
    GPU GeForce GTX 680
    NVIDIA Driver Version: 460.32.03

    I was trying to check which openGL implementation was used on my system but ended up with an error message, although I have libnvidia-gl-460 installed:

    glxinfo | grep OpenGL
    X Error of failed request:  BadValue (integer parameter out of range for operation)
      Major opcode of failed request:  151 (GLX)
      Minor opcode of failed request:  24 (X_GLXCreateNewContext)
      Value in failed request:  0x0
      Serial number of failed request:  99
      Current serial number in output stream:  100
    

    I'll dig in that direction

    Edit: after sudo nvidia-xconfig and a reboot, the example is now working, thanks a lot @SGaist for pointing me in the right direction !


Log in to reply