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

Closed
efifogel opened this issue May 28, 2024 · 4 comments · Fixed by #8453
Closed

Simple drawing fails with Qt6 6.7.1 #8232

efifogel opened this issue May 28, 2024 · 4 comments · Fixed by #8453
Assignees
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.

@sloriot
Copy link
Member

sloriot commented Sep 2, 2024

@efifogel you can test #8453

@lrineau lrineau self-assigned this Sep 3, 2024
sloriot added a commit that referenced this issue Sep 3, 2024
## Summary of Changes

This should fix #8232. I have tested locally. I hope that does not 


## Release Management

* Affected package(s): GraphicsView, Qt6
* Issue(s) solved (if any): fix #8232
* License and copyright ownership: bug fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants