Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple drawing fails with Qt6 6.7.1 #8232

Open
efifogel opened this issue May 28, 2024 · 3 comments
Open

Simple drawing fails with Qt6 6.7.1 #8232

efifogel opened this issue May 28, 2024 · 3 comments
Milestone

Comments

@efifogel
Copy link
Member

Issue Details

Issue #8058 is very similar, it reported that simple drawing did not work with 6.8.
It also reported on some problems with find_package of CGAL with Qt6.
The latter was fixed, and it turned out that 6.8 hasn't been officially published, so it was closed.
However, it makes me think that the same reason that caused the segmentation with 6.8 is also the reason for the segmentation with 6.7. (This piece of info may be useless...)

All the example programs that use the simple drawing mechanism end with a segmentation fault, e.g., Polygon/draw_polygon, Arrangement_2/draw_arrangement, Surface_mesh/sm_draw_small_faces. Other programs that are based on Qt6 work fine. This is, of course, not a proof that the problem is in our code, but it's suspicious.

I've experienced the same behavior on two separate machines running Ubuntu 22.04.

Here is the trace of the stack:
stack_qt_issue.txt

Source Code

Environment

  • Operating system Linux, 64 bits):
  • Compiler: g++ 11.4.0
  • Release or debug mode: both
  • Specific flags used (if any):
  • CGAL version: latest
  • Boost version: 1.82
  • Other libraries versions if used (Eigen, TBB, etc.):
@lrineau
Copy link
Member

lrineau commented May 28, 2024

The stack looks strangely similar to #8209.

@lrineau
Copy link
Member

lrineau commented Jun 20, 2024

Actually, I now have exactly the same issue on my Linux machine (with Qt 6.7.1 as well). For all examples involving the basic viewer, I have a segfault. The issue is that QOpenGLContext::currentContext() returns a null pointer.

@lrineau lrineau added this to the 6.0 milestone Jun 20, 2024
@gdamiand
Copy link
Member

I have no problem with Qt 6.2 nor 6.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants