Archived issue #0031574
Cannot run application using viewer Qt5/OCCT 7.3
Description
After a system upgrade form ubuntu bionic to focal, I recompiled my program but it does not run. As soon as a viewer is created the propgram stops with the message:
X Error of failed request: GLXBadDrawable
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 46
Current serial number in output stream: 46
This error appears in the function Xv_Window.
I use the proprietary Nvidia driver for Linux (error appears in all version tested: 390, 440). The application works with the Nouveau driver.
The problem also appears with the "Tutorial" sample from OCC.
X Error of failed request: GLXBadDrawable
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 46
Current serial number in output stream: 46
This error appears in the function Xv_Window.
I use the proprietary Nvidia driver for Linux (error appears in all version tested: 390, 440). The application works with the Nouveau driver.
The problem also appears with the "Tutorial" sample from OCC.
Steps to reproduce
1. Install Ubuntu focal 20.04 with its OCCT 7.3 -dev packages
2. Install NVidia driver 440 (recommended)
3. Compile OCCT "Tutorial" sample
2. Install NVidia driver 440 (recommended)
3. Compile OCCT "Tutorial" sample
Public activity
10 archived notes
Participants are labeled by their role within this record.
If NVIDIA driver fails, while Mesa driver works as expected, then why issue is reported to OCCT project?
Because the problem only occurs with OCC programs.
Other programs that require GLX work fine.
Other programs that require GLX work fine.
> Because the problem only occurs with OCC programs.
Well, that doesn't necessarily indicate that the problem is within the OCCT-based program. At least provided stack trace does not indicating problem location.
Have you tried CAD Assistant, by the way - does it crashes with the same error?
Well, that doesn't necessarily indicate that the problem is within the OCCT-based program. At least provided stack trace does not indicating problem location.
Have you tried CAD Assistant, by the way - does it crashes with the same error?
Ok, I downloaded the CAD assistant AppImage from here: https://www.opencascade.com/content/cad-assistant
That worked without any problem.
That worked without any problem.
So, it looks like a problem specific to Qt5 Widgets sample.
Could you build up-to-date OCCT development branch (master branch in git) and check is it is still reproducible?
Could you build up-to-date OCCT development branch (master branch in git) and check is it is still reproducible?
I just download and built the latest commit (4db6748)
The tutorial example works with this version as well.
The tutorial example works with this version as well.
It looks like the issue has to do with Qt and it's build options.
I used a self-compiled Qt-5.14 and it does not work with that in Ubuntu Focal (though the same version worked in Bionic).
It works in Focal only if I use the system-provided Qt-5.12.
Weird.
I used a self-compiled Qt-5.14 and it does not work with that in Ubuntu Focal (though the same version worked in Bionic).
It works in Focal only if I use the system-provided Qt-5.12.
Weird.
This might be related to Qt porting onto Wayland instead of X11.
I haven't checked their current state, but I think there might be new configure options for Qt.
I haven't checked their current state, but I think there might be new configure options for Qt.
I finally managed to get across this issue.
It seems that some features of Qt5 related to GLX support were skipped because a package was not installed.
I installed "libxcb-glx0-dev" and rebuilt Qt5. Now it is working.
Thank you!
It seems that some features of Qt5 related to GLX support were skipped because a package was not installed.
I installed "libxcb-glx0-dev" and rebuilt Qt5. Now it is working.
Thank you!
Dear Commenter 1,
please close the bug as not reproducible.
please close the bug as not reproducible.