MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0031574Community[OCCT] OCCT:Visualizationpublic2020-05-20 16:372020-05-28 13:01
Reporterhanneskr 
Assigned Tobugmaster 
PrioritynormalSeveritymajor 
StatusclosedResolutionunable to reproduce 
PlatformLinuxOSUbuntuOS Version20.04
Product Version[OCCT] 7.3.0 
Target VersionFixed in Version 
Summary0031574: Cannot run application using viewer Qt5/OCCT 7.3
DescriptionAfter 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.
Steps To Reproduce1. Install Ubuntu focal 20.04 with its OCCT 7.3 -dev packages
2. Install NVidia driver 440 (recommended)
3. Compile OCCT "Tutorial" sample
TagsNo tags attached.
Test case number
Attached Filespng file icon occt750dev_ubuntu20_04_qtiesample.png (93,121 bytes) 2020-05-20 19:14

- Relationships

-  Notes
(0092268)
kgv (developer)
2020-05-20 19:10

If NVIDIA driver fails, while Mesa driver works as expected, then why issue is reported to OCCT project?
(0092270)
hanneskr (reporter)
2020-05-20 19:21
edited on: 2020-05-20 19:24

Because the problem only occurs with OCC programs.

Other programs that require GLX work fine.

(0092271)
kgv (developer)
2020-05-20 19:31
edited on: 2020-05-20 19:32

> 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?

(0092277)
hanneskr (reporter)
2020-05-20 23:14

Ok, I downloaded the CAD assistant AppImage from here: https://www.opencascade.com/content/cad-assistant [^]

That worked without any problem.
(0092278)
kgv (developer)
2020-05-20 23:26
edited on: 2020-05-20 23:26

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?

(0092279)
hanneskr (reporter)
2020-05-21 01:05

I just download and built the latest commit (4db6748)

The tutorial example works with this version as well.
(0092302)
hanneskr (reporter)
2020-05-22 12:49

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.
(0092303)
kgv (developer)
2020-05-22 13:22

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.
(0092352)
hanneskr (reporter)
2020-05-27 08:54

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!
(0092382)
kgv (developer)
2020-05-28 11:33

Dear bugmaster,

please close the bug as not reproducible.

- Issue History
Date Modified Username Field Change
2020-05-20 16:37 hanneskr New Issue
2020-05-20 16:37 hanneskr Assigned To => kgv
2020-05-20 19:10 kgv Note Added: 0092268
2020-05-20 19:10 kgv Assigned To kgv => hanneskr
2020-05-20 19:10 kgv Status new => feedback
2020-05-20 19:14 kgv File Added: occt750dev_ubuntu20_04_qtiesample.png
2020-05-20 19:21 hanneskr Note Added: 0092270
2020-05-20 19:24 hanneskr Note Edited: 0092270 View Revisions
2020-05-20 19:31 kgv Note Added: 0092271
2020-05-20 19:32 kgv Note Edited: 0092271 View Revisions
2020-05-20 23:14 hanneskr Note Added: 0092277
2020-05-20 23:26 kgv Note Added: 0092278
2020-05-20 23:26 kgv Note Edited: 0092278 View Revisions
2020-05-21 01:05 hanneskr Note Added: 0092279
2020-05-22 12:49 hanneskr Note Added: 0092302
2020-05-22 13:22 kgv Note Added: 0092303
2020-05-27 08:54 hanneskr Note Added: 0092352
2020-05-28 11:32 kgv Resolution open => unable to reproduce
2020-05-28 11:33 kgv Note Added: 0092382
2020-05-28 11:33 kgv Assigned To hanneskr => bugmaster
2020-05-28 13:01 bugmaster Status feedback => closed


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker