opengl problem with nvidia on-demand solvable with MESA_LOADER_DRIVER_OVERRIDE=i965
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
matlab-support (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I am using nvidia prime with the on-demand profile. When I run matlab I get the following error inside matlab (see attached pic):
```
com.jogamp.
at jogamp.
at jogamp.
at java.lang.
Caused by: java.lang.
at jogamp.
at jogamp.
at jogamp.
... 2 more
```
If I run opengl info:
```
MATLAB has experienced a low-level graphics error, and may not have drawn correctly.
Read about what you can do to prevent this issue at Resolving Low-Level Graphics Issues then restart MATLAB.
To share details of this issue with MathWorks technical support,
please include this file with your service request.
SupportsDep
```
In the Arch wiki I found a solution, that is to set the environmental variable to override the mesa driver. That is, everything runs as it should if I run in terminal:
```
export MESA_LOADER_
```
So I would suggest to add an option to matlab-support to add the following line in the matlab.desktop file:
```
Exec=env MESA_LOADER_
```
Also, if I use the performance profile of nvidia everything is fine.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: matlab-support 0.0.21.1 [modified: usr/share/
ProcVersionSign
Uname: Linux 5.4.0-21-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu26
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Sun Apr 12 09:45:41 2020
InstallationDate: Installed on 2020-04-05 (6 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200402)
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: matlab-support
UpgradeStatus: No upgrade log present (probably fresh install)