Results 1 to 14 of 14

Thread: "Unrecognized OpenGL version" under VirtualBox

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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.

  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

    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,
    _

  3. #3
    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.

  4. #4
    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?

  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

    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.

  6. #6
    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.

  7. #7
    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,
    _

  8. #8
    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 

  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

    Hmm, what about the offscreen platform?

    Cheers,
    _

  10. #10
    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 

  11. #11
    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.

  12. #12
    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
  •  
Qt is a trademark of The Qt Company.