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

Flatpak blender package cant find OpenGL 3.3 #31

Closed
hcw70 opened this issue Aug 5, 2019 · 13 comments
Closed

Flatpak blender package cant find OpenGL 3.3 #31

hcw70 opened this issue Aug 5, 2019 · 13 comments

Comments

@hcw70
Copy link

hcw70 commented Aug 5, 2019

System Information
Operating system: Ubuntu 19.04
Graphics card: NVidia PRIME Laptop (GeForce GTX 960M (GPU 0))

Blender Version
Broken: 2.80 installed via flatpak
Worked: 2.80 installed via download of blender-2.80-linux-glibc217-x86_64.tar.bz2

Short description of error

When starting blender from flatpak i get the error:

Error! Unsupported graphics card or driver.
A graphics card and driver with support for OpenGL 3.3 or higher is required.

Exact steps for others to reproduce the error

On a PRIME laptop with the graphics card mode set to "NVIDIA" try to start blender 2.80.

Complete console printout on startup:


hcw@nvidion:~/Blender/blender-2.8$ flatpak run org.blender.Blender
/run/user/1000/gvfs/ non-existent directory
Read prefs: /home/hcw/.var/app/org.blender.Blender/config/blender/2.80/config/userpref.blend
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Received X11 Error:
error code: 8
request code: 152
minor code: 34
error text: BadMatch (invalid parameter attributes)
Received X11 Error:
error code: 8
request code: 152
minor code: 34
error text: BadMatch (invalid parameter attributes)
Received X11 Error:
error code: 8
request code: 152
minor code: 34
error text: BadMatch (invalid parameter attributes)
Received X11 Error:
error code: 8
request code: 152
minor code: 34
error text: BadMatch (invalid parameter attributes)
Received X11 Error:
error code: 8
request code: 152
minor code: 34
error text: BadMatch (invalid parameter attributes)
Received X11 Error:
error code: 8
request code: 152
minor code: 34
error text: BadMatch (invalid parameter attributes)
Received X11 Error:
error code: 8
request code: 152
minor code: 34
error text: BadMatch (invalid parameter attributes)
Error! Unsupported graphics card or driver.
A graphics card and driver with support for OpenGL 3.3 or higher is required.
The program will now close.
@hcw70
Copy link
Author

hcw70 commented Aug 5, 2019

BTW, the snap version also works ok. Only issue via flatpak.

@bochecha
Copy link
Contributor

bochecha commented Aug 5, 2019

The reason the upstream tarball works is that it runs directly on the host (not in a sandbox) and as a result has direct access to the drivers. The snap might be in that case as well.

You use the proprietary nvidia driver?

If yes, can you run the following on your machine?

$ flatpak list --all | grep -i nvidia

@hcw70
Copy link
Author

hcw70 commented Aug 5, 2019

hcw@nvidion:~$ flatpak list --all | grep -i nvidia
nvidia-390-116	org.freedesktop.Platform.GL.nvidia-390-116		1.4	flathub	system
nvidia-390-77	org.freedesktop.Platform.GL.nvidia-390-77		1.4	flathub	system
nvidia-430-40	org.freedesktop.Platform.GL.nvidia-430-40		1.4	flathub	system

For snap i had to do
snap install --classic blender
So it may have full access.

On the host i use nvidia-driver-430 from ubuntu.

@bochecha
Copy link
Contributor

bochecha commented Aug 5, 2019

For snap i had to do
snap install --classic blender
So it may have full access.

Indeed, that gives it full access, as it runs essentially unsandboxed. Flatpak doesn't have an unsandboxed mode, we need to poke appropriate holes in the sandbox to get things working.

On the host i use nvidia-driver-430 from ubuntu.

Ok, and you have that extension installed: org.freedesktop.Platform.GL.nvidia-430-40

At this point I will need to investigate a bit, not sure why this doesn't work for you. 😕

@hcw70
Copy link
Author

hcw70 commented Aug 5, 2019

Maybe related: flatpak/flatpak#138 ?

@p1u3o
Copy link

p1u3o commented Aug 10, 2019

What does the output of

flatpak run --command=ls org.blender.Blender /usr/lib/x86_64-linux-gnu/GL/ 

give you?

@hcw70
Copy link
Author

hcw70 commented Aug 12, 2019

hcw@nvidion:~$ flatpak run --command=ls org.blender.Blender /usr/lib/x86_64-linux-gnu/GL/ 
glvnd  nvidia-430-40  OpenCL  vulkan

@RexoWeb

This comment has been minimized.

@bochecha
Copy link
Contributor

@RexoWeb that comment is off-topic as the article talks about Windows and doesn't apply to Flatpak.

It's also not something we should recommend: downloading a random OpenGL library from a Google Drive and replacing the normal one with it is terrible security practice. Who knows what that library really does?

Finally, the fact you point to an article on your own website and then yourself add positive reactions to your comment makes me wonder if you're not just a spammer.

Please do not do any of that here any more.

@eszlari
Copy link
Collaborator

eszlari commented Oct 14, 2019

Maybe related to: flatpak/flatpak#869

@plafue
Copy link
Collaborator

plafue commented Jun 10, 2021

Hi there 👋 This issue has been open for a while....

@hcw70 could you please test if the error persists with the latest published version?

@hcw70
Copy link
Author

hcw70 commented Jun 10, 2021

@plafue Blender now starts with version 2.93.0 ok.
But preferences says it is unable to find my NVIDIA gpu.

@hcw70
Copy link
Author

hcw70 commented Jun 10, 2021

Ok, gpu did not work in snap also....
But after reboot, all is fine.
So this was a problem of my gpu....

@hcw70 hcw70 closed this as completed Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants