Results 1 to 14 of 14

Thread: "Unrecognized OpenGL version" under VirtualBox

  1. #1
    Join Date
    Sep 2014
    Posts
    7
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default "Unrecognized OpenGL version" under VirtualBox

    Hi!
    I have a remote build-machine with Jenkins and I'm trying to run GUI application written in Qt 5 (my version is 5.2.1). In Jenkins I installed Xvnc plugin, which uses TightVNC Server, but each build has failed.
    Earlier, there was a problem with loading driver swrast (by libGL), currently in the log there are this lines:

    Qt Code:
    1. Xlib: extension "RANDR" missing on display ":51".
    2. (...)
    3. Xlib: extension "GLX" missing on display ":51".
    4. Terminating xvnc.
    5. $ vncserver -kill :51
    6. Killing Xtightvnc process ID 22513
    To copy to clipboard, switch view to plain text mode 

    When I changed system to use Xvnc4server instead of tightvncserver, the output is:

    Qt Code:
    1. [Warning] QXcbConnection: Failed to initialize XRandr
    2. [Warning] Qt: XKEYBOARD extension not present on the X server.
    3. (...)
    4. [Warning] Unrecognized OpenGL version
    5. [Warning] Unrecognized OpenGL version
    6. Terminating xvnc.
    7. $ vncserver -kill :47
    8. Killing Xvnc4 process ID 26522
    To copy to clipboard, switch view to plain text mode 

    Remote desktop is Ubuntu 14.04 running over VirtualBox, so I installed VBoxAddons but it didn't resolve the problem. Below I'm putting some logs, maybe helpful for you.

    Qt Code:
    1. $ cat /var/log/Xorg.0.log | grep GL -is
    2. [266219.686] (II) LoadModule: "glx"
    3. [266219.686] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/modules/extensions/libglx.so
    4. [266219.687] (II) Module glx: vendor="Advanced Micro Devices, Inc."
    5. [266219.687] Loading extension GLX
    6. [266219.687] (==) Assigned the driver to the xf86ConfigLayout
    7.  
    8.  
    9. $ lsmod | grep box
    10. vboxsf 43786 0
    11. vboxpci 23194 0
    12. vboxnetadp 25670 0
    13. vboxnetflt 27613 0
    14. vboxdrv 339502 3 vboxnetadp,vboxnetflt,vboxpci
    15. vboxvideo 12658 0
    16. vboxguest 248441 8 vboxsf
    17. drm 302817 1 vboxvideo
    18.  
    19. $ lspci | grep VGA
    20. 00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
    21.  
    22. $ glxinfo
    23. Error: unable to open display
    To copy to clipboard, switch view to plain text mode 

    I found informations about warning " Unrecognized OpenGL version" as a bug in older Qt versions, but what is solution for my problem?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    Since this is for a continuous integration system, have you tried using the "minimal" platform plugin instead?
    As far as I understand this even works headless, i.e. wihout VNC

    Cheers,
    _

  3. #3
    Join Date
    Sep 2014
    Posts
    7
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    What do you mean writing about "minimal platform"? Previously I tried to run (over Jenkins) Qt GUI applications without VNC and theoretically it worked, but I had other problem because of this.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    One of the Qt platform abstraction plugins is called "minimal", the output is something like libqminimal.so
    There is also a variant that has OpenGL, "minimalegl" respectively "libqminimalegl.so"

    See qtbase/src/plugins/platforms/minimal and qtbase/src/plugins/platforms/minimalegl

    Cheers,
    _

  5. #5
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    Qt Code:
    1. $ glxinfo
    2. Error: unable to open display
    To copy to clipboard, switch view to plain text mode 
    Did you run this over ssh? What happen if you run this:
    Qt Code:
    1. DISPLAY=:0 glxinfo
    To copy to clipboard, switch view to plain text mode 
    ?
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  6. #6
    Join Date
    Sep 2014
    Posts
    7
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    Yes, I run it over ssh.
    Qt Code:
    1. $DISPLAY=:0 glxinfo
    2. name of display: :0
    3. X Error of failed request: BadRequest (invalid request code or no such operation)
    4. Major opcode of failed request: 155 (GLX)
    5. Minor opcode of failed request: 19 (X_GLXQueryServerString)
    6. Serial number of failed request: 12
    7. Current serial number in output stream: 12
    To copy to clipboard, switch view to plain text mode 

    It looks bad, but I have an access to another remote server with Jenkins (and Ubuntu 12.04 with Qt 4.8) and glxinfo (with DISPLAY=:0) gives the same result. And in spite of it, all works fine. I read here that "Unrecognized OpenGL version" warning is caused by unexpected by Qt format of OpenGL string version (VirtualBox graphic drivers...), is it true?

  7. #7
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    Did you try running the "DISPLAY=:0 glxgears -info" ?
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  8. #8
    Join Date
    Sep 2014
    Posts
    7
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    Yes, I tried it, but result of "DISPLAY=:0 glxgears -info" is the same as "DISPLAY=:0 glxinfo". Maybe there is other way to run GUI Qt application on Jenkins (not using VNC)? I don't know to what extent this is related to Qt, but this is the only forum, where somebody replies.

  9. #9
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    So, have you tried the minimal backends?
    Or do you absolutely have to see the visual output?

    Cheers,
    _

  10. #10
    Join Date
    Sep 2014
    Posts
    7
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    When I'm using the "-platform minimal", my GUI app starts over SSH, but only for one user. If I'm logged on "jenkins" user:
    Qt Code:
    1. No protocol specified
    2.  
    3. (myApp:6080): Gtk-WARNING **: cannot open display: :0
    To copy to clipboard, switch view to plain text mode 
    I did "xhost +localhost", but it didn't resolve the problem.

    Running with "platform -minimalegl" causes:

    Qt Code:
    1. No protocol specified
    2. No protocol specified
    3. libEGL warning: DRI2: xcb_connect failed
    4. No protocol specified
    5. libEGL warning: DRI2: xcb_connect failed
    6. No protocol specified
    7. No protocol specified
    8. libEGL warning: GLX: XOpenDisplay failed
    9. 07:30:34.553 [Warning] Could not initialize egl display
    10.  
    11. 07:30:34.554 [Error] EGL error
    12. Aborted (core dumped)
    To copy to clipboard, switch view to plain text mode 
    when I'm logged on "jenkins", and:
    Qt Code:
    1. 07:31:49.580 [Warning] Opened display 0x15283b0
    2.  
    3. X Error of failed request: BadRequest (invalid request code or no such operation)
    4. Major opcode of failed request: 155 (GLX)
    5. Minor opcode of failed request: 19 (X_GLXQueryServerString)
    6. Serial number of failed request: 13
    7. Current serial number in output stream: 13
    To copy to clipboard, switch view to plain text mode 
    on a second user.

    And one more thing: When I'm running from non-jenkins user with "-platform minimal" it looks ok, but after [Ctrl]+[C] (to stop application), I see on the console:
    Qt Code:
    1. 07:32:35.076 [Warning] WARNING: The web process experienced a crash on ''.
    2. 07:32:35.077 [Warning] WARNING: The web process experienced a crash on ''.
    3. 07:32:35.082 [Warning] This plugin does not support createPlatformOpenGLContext!
    4. 07:32:35.083 [Warning] QtQuick: failed to create OpenGL context
    To copy to clipboard, switch view to plain text mode 

  11. #11
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    Hmm, what about the offscreen platform?

    Cheers,
    _

  12. #12
    Join Date
    Sep 2014
    Posts
    7
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    I tested all available platforms:
    offscreen, kms, linuxfb, minimal:
    Qt Code:
    1. (myApp:22797): Gtk-WARNING **: cannot open display: :0
    To copy to clipboard, switch view to plain text mode 
    kms:
    Qt Code:
    1. pci id for fd 7: 80ee:beef, driver (null)
    2. No protocol specified
    3. pci id for fd 7: 80ee:beef, driver (null)
    4. No protocol specified
    5. pci id for fd 9: 80ee:beef, driver (null)
    6. pci id for fd 9: 80ee:beef, driver (null)
    7. No protocol specified
    8. pci id for fd 9: 80ee:beef, driver (null)
    9. No protocol specified
    10. pci id for fd 10: 80ee:beef, driver (null)
    11. pci id for fd 10: 80ee:beef, driver (null)
    12. No protocol specified
    13. pci id for fd 10: 80ee:beef, driver (null)
    14. No protocol specified
    15. pci id for fd 11: 80ee:beef, driver (null)
    16. pci id for fd 11: 80ee:beef, driver (null)
    17. No protocol specified
    18. pci id for fd 11: 80ee:beef, driver (null)
    19. 08:42:58.322 [Warning] Could not initialize EGL display
    20. 08:42:58.322 [Error] EGL error
    21. Aborted (core dumped)
    To copy to clipboard, switch view to plain text mode 
    xcb:
    Qt Code:
    1. No protocol specified
    2. 08:44:35.494 [Error] QXcbConnection: Could not connect to display :0
    3. Aborted (core dumped)
    To copy to clipboard, switch view to plain text mode 

  13. #13
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    Okay, so to clarify - all your tests from previous post was done through VNC?
    Did you try running your Qt app on local VirtualBox machine?
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  14. #14
    Join Date
    Sep 2014
    Posts
    7
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: "Unrecognized OpenGL version" under VirtualBox

    Sorry for long silence. I resolved the problem by typing "xhost +SI:localuser:jenkins" and using "-platform minimal". Thank you all for your help!

Similar Threads

  1. Replies: 11
    Last Post: 30th March 2015, 06:03
  2. Replies: 1
    Last Post: 28th November 2010, 17:16
  3. Replies: 21
    Last Post: 20th October 2010, 13:25
  4. Replies: 2
    Last Post: 23rd June 2010, 22:00
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.