Important: Please read the Qt Code of Conduct -

EGL + QQuickFramebufferObject on Jetson TX1 .. EGL_BAD_ALLOC (0x3003) problem

  • Hi all,

    I got an EGL stream running 'with' an QQuickItem.
    Now I like to not have it fullscreen only, but be able to use it within QML-based GUI (render it to a dedicated area, maybe transform it or add border or such).

    I started of with the 'textureingsnode' example of the qtdeclarative package.

    But now I'm stuck in the early initialization phase when trying to create the window surface.
    My code:

    m_display = (EGLDisplay*)eglGetDisplay(EGL_DEFAULT_DISPLAY);
    Display* disp = QX11Info::display();
    m_window = DefaultRootWindow(disp);
    // m_config is found by iterating the configs and does return the same chosen config as before without using fbo
    // m_display and m_window have non-NULL values here
    m_surface = eglCreateWindowSurface(m_display, m_config, m_window, NULL);
    //-> results in eglError 12291 (3003, EGL_BAD_ALLOC)

    Did anyone try something similar?
    Any hints are appreciated.

    Thanks + Best,

Log in to reply