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

libGL errors #17

Open
probonopd opened this issue Nov 3, 2021 · 2 comments
Open

libGL errors #17

probonopd opened this issue Nov 3, 2021 · 2 comments

Comments

@probonopd
Copy link

probonopd commented Nov 3, 2021

Thanks for this very useful piece of software 👍

Running e.g., linux-chrome on FreeBSD 12.2 with a Nvidia GPU takes up to 100% CPU usage.

  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
 2611 user          9  40   10    41G   133M futex    0   0:52 105.42% CompositorTileW

Some other applications (e.g., the Olive 2 AppImage) fail to run entirely with the message

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

On the command line, Chrome floods the terminal with

[ERROR:gpu_channel.cc(449)] GpuChannel: Failed to create SharedImageStub
[ERROR:gpu_channel_manager.cc(746)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[ERROR:shared_image_stub.cc(460)] SharedImageStub: unable to create context

repeated all the time.

I suspect something is wrong resulting in libGL being software rendered rather than hardware rendered. Can this be fixed?

@mrclksr
Copy link
Owner

mrclksr commented Nov 4, 2021

Try to install the Nvidia Gl libraries under the chroot (replace VERSION (390, 418, 430, 435, 440) accordingly):

# chroot /compat/ubuntu /bin/bash -c "apt install -y libnvidia-gl-VERSION"

Unfortunately, I can't test it myself.

@probonopd
Copy link
Author

Thanks. With VERSION=440, installation succeeded but the result did not change.
100% CPU consumption while Chrome is open.

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

2 participants