Skip to content

Commit

Permalink
docs: Add comments on debugging problems with display variable and gr…
Browse files Browse the repository at this point in the history
…aphic acceleration
  • Loading branch information
2b-t committed May 30, 2024
1 parent 431a8ce commit 787b6d2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/Gui.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen,
Aborted (core dumped)
```

In case graphic user interfaces do not open up correctly be sure to check the `DISPLAY` variable is set correctly. Output `$ echo ${DISPLAY}` on both, the host system as well as inside the container, and make sure they correspond.



### 2.1 Nouveau and AMD driver
Expand Down Expand Up @@ -202,6 +204,22 @@ $ prime-run some_program



#### 2.2.4 Running containers as `privileged`

In some rare instances with hybrid graphics cards, **hardware acceleration might not work correctly** resulting in e.g. [Rviz outputting the following](https://github.com/moby/moby/issues/38442):

```bash
$ rviz
dbus[97]: The last reference on a connection was dropped without closing the connection. This is a bug in an application. See dbus_connection_unref() documentation for details.
Most likely, the application was supposed to call dbus_connection_close(), since this is a private connection.
D-Bus not built with -rdynamic so unable to print a backtrace
Aborted (core dumped)
```

In this case what might help is **running the container as `privileged`**.



### 2.3 Avoiding duplicate configurations

You can already see that there are quite a few common options between the two configurations. While sadly Docker-Compose does not have conditional execution (yet) one might [override or extend an existing configuration file](https://github.com/Yelp/docker-compose/blob/master/docs/extends.md) (see also [`extends`](https://docs.docker.com/compose/extends/) as well this [Visual Studio Code guide](https://code.visualstudio.com/docs/remote/create-dev-container#_extend-your-docker-compose-file-for-development)).
Expand Down

0 comments on commit 787b6d2

Please sign in to comment.