Commit graph

6 commits

Author SHA1 Message Date
JayKim
423f557c34
Fixup docker build/run (#5139)
* Fix MPFR dep build on docker

* Clean up after docker run
2024-04-30 21:05:59 +08:00
ohmdelta
2c5e78e9c7
Add Docker Build Support (#4485)
init docker
2024-03-17 23:19:01 +08:00
SoftFever
37c54aa4f6 clean up 2023-08-09 13:42:41 +08:00
Cal Heldenbrand
978764433b Fix for MIT-SHM BadAccess X socket permissions
In some X installations using the MIT shared memory
extension for rendering window elements, Bambu
Studio needs direct access to a UNIX socket
for fast rendering.

This fix passes `--ipc host` with docker run
to allow the container to just have direct access
to the host's IPC system.

The error message that this solves is:

```
(bambu-studio:1): Gdk-ERROR **: 00:02:37.498: The program 'bambu-studio' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
  (Details: serial 316 error_code 10 request_code 130 (MIT-SHM) minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
```

Here are some extra links for more information:

https://github.com/osrf/docker_images/issues/21
http://wiki.ros.org/docker/Tutorials/GUI
https://en.wikipedia.org/wiki/MIT-SHM
2023-04-24 09:12:34 +08:00
Cal Heldenbrand
0d6778a9d4 Add privleged mode...
The popover window to select printers acts strange and fuzzes
out.  I see errors trying to access the raw video card device
using libGL, and other errors with dbus access.  Turning on
privileged mode fixes this.
2023-03-02 21:21:30 +08:00
Cal Heldenbrand
a664128714 Add DockerBuild.sh and DockerRun.sh helper scripts 2023-03-02 21:21:30 +08:00