3Dickulus / FragM

Derived from https://github.com/Syntopia/Fragmentarium/
GNU General Public License v3.0
344 stars 30 forks source link

No XVisualInfo for format QSurfaceFormat ... Aborted #175

Closed claudeha closed 3 years ago

claudeha commented 3 years ago

Describe the bug

FragM crashes on startup with a message in the terminal.

$ ./Fragmentarium-2.5.5
No XVisualInfo for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(SingleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile))
Falling back to using screens root_visual.
Aborted

To Reproduce

It crashes on my old laptop: Debian Buster with NVIDIA G 105M hardware and (almost) the latest proprietary drivers for that hardware, just seen there is an update available...:

nvidia-legacy-340xx-driver:
  Installed: 340.108-3~deb10u1
  Candidate: 340.108-3~deb10u1
  Version table:
     340.108-10~bpo10+1 100
        100 http://deb.debian.org/debian buster-backports/non-free amd64 Packages
 *** 340.108-3~deb10u1 500
        500 http://deb.debian.org/debian buster/non-free amd64 Packages
        100 /var/lib/dpkg/status

Expected behavior FragM to start.

Desktop (please complete the following information):

Additional context

Works fine on my desktop (Debian Bullseye, AMD RX 580).

git bisect on laptop reported:

338455b2c8c0fcad4bd9636adefa22e679b0771e is the first bad commit
commit 338455b2c8c0fcad4bd9636adefa22e679b0771e
Author: 3Dickulus <3Dickulus@users.noreply.github.com>
Date:   Sun Mar 21 16:30:23 2021 -0700

    fixed FindOpenGL.cmake requires OpenGL_GL_PREFERENCE "LEGACY" or "GLVND"
    when both libraries are found on the system, defaults to "GLVND"

 Fragmentarium-Source/CMakeLists.txt | 8 ++++++++
 1 file changed, 8 insertions(+)

Following that hint I unticked GL_PREFERENCE_GLVND in cmake-gui .. and rebuilt, which seems to have fixed it for me, just reporting in case anyone runs into this...

3Dickulus commented 3 years ago

Thanks @claudeha