Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Failed to create OpenGL context for format QSurfaceFormat
Qt 6.11 is out! See what's new in the release blog

Failed to create OpenGL context for format QSurfaceFormat

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FrancoisBilberry
    wrote on last edited by
    #1

    Hi all,

    I have an app compiled for aarch64.
    Running it return the following error :

    Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile  0)
    

    Here is the backtrace :

    Thread 1 "CoreEngine" received signal SIGABRT, Aborted.
    0x0000007fb70b6528 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
    54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
    (gdb) backtrace
    #0  0x0000007fb70b6528 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
    #1  0x0000007fb70b79e0 in __GI_abort () at abort.c:89
    #2  0x0000007fb747fbd4 in QMessageLogger::fatal(char const*, ...) const () from /usr/local/qt5/lib/libQt5Core.so.5
    #3  0x0000007fa35fa59c in QSGRenderLoop::handleContextCreationFailure(QQuickWindow*, bool) () from /usr/local/Qt-5.7.1/lib/libQt5Quick.so.5
    #4  0x0000007fa3601c50 in ?? () from /usr/local/Qt-5.7.1/lib/libQt5Quick.so.5
    #5  0x0000000000566ad0 in ?? ()
    Backtrace stopped: previous frame inner to this frame (corrupt stack?)
    

    Do you have any idea ?
    It seems as a pbm with XCB & opengl driver.
    the same app is ok on PC.
    The difference is that i compiled my own QT5.7.1 on the target.
    Maybe i missed some parameterS ? but i dont think so.

    Thank you.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What is your target exactly ?

      What parameters did you pass to configure when you cross-compiled Qt ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved