Is there an existing issue for this?
Current Behavior
Not sure if something can be done for this container, but currently there is an issue running Bambu Studio in this container using the Docker NVIDIA runtime -- at least for me. Basically 3D views aren't rendered in Prepare or Preview when using the standard NVIDIA Docker runtime. Only ways I've found around it are:
- Disabling NV GPU runtime for pure software rendering which is pretty brutal.
- Disabling NV GPU runtime and adding the following ENV vars:
environment:
__GLX_VENDOR_LIBRARY_NAME: mesa
__EGL_VENDOR_LIBRARY_FILENAMES: /usr/share/glvnd/egl_vendor.d/50_mesa.json
Which seems to "work", but doesn't seem as performant as the normal NV runtime route.
NVIDIA Driver installed: 550.127.05
Expected Behavior
Run with NVIDIA support using Docker NVIDIA runtime.
Steps To Reproduce
- Create the container and run using Docker NVIDIA runtime.
- Open a model up on and see there is no 3D view in the Prepare tab.
Environment
Debian 12 (TrueNAS Scale)
Docker using compose
CPU architecture
x86-64
Docker creation
Normally I'd run with this..
---
services:
bambustudio:
image: lscr.io/linuxserver/bambustudio:latest
container_name: bambustudio
hostname: bambustudio
runtime: nvidia
security_opt:
- seccomp:unconfined #optional
environment:
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: all
PUID: 1000
PGID: 1000
TZ: MST7MDT
DARK_MODE: true
TITLE: BambuStudio
volumes:
- ./config:/config
devices:
- /dev/dri:/dev/dri
ports:
- 127.0.0.1:9070:3000
# - 3001:3001
networks:
- net
restart: unless-stopped
networks:
net:
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-bambu
Container logs
When using NVIDIA runtime all sorts of messages like (example)
(bambu-studio:912): GLib-GObject-WARNING **: 11:45:14.266: invalid (NULL) pointer instance
(bambu-studio:912): GLib-GObject-CRITICAL **: 11:45:14.266: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(bambu-studio:912): Gtk-CRITICAL **: 11:45:14.266: gtk_gesture_rotate_new: assertion 'GTK_IS_WIDGET (widget)' failed
(bambu-studio:912): Gtk-CRITICAL **: 11:45:14.266: gtk_event_controller_set_propagation_phase: assertion 'GTK_IS_EVENT_CONTROLLER (controller)' failed
(bambu-studio:912): GLib-GObject-WARNING **: 11:45:14.266: invalid (NULL) pointer instance
(bambu-studio:912): GLib-GObject-CRITICAL **: 11:45:14.266: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(bambu-studio:912): GLib-GObject-WARNING **: 11:45:45.112: invalid cast from 'wxPizza' to 'GtkCellLayout'
(bambu-studio:912): Gtk-CRITICAL **: 11:45:45.112: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
Although you see to get these (?) when running without NV runtime and using the ENV vars I gave, yet the 3D views work.
Is there an existing issue for this?
Current Behavior
Not sure if something can be done for this container, but currently there is an issue running Bambu Studio in this container using the Docker NVIDIA runtime -- at least for me. Basically 3D views aren't rendered in Prepare or Preview when using the standard NVIDIA Docker runtime. Only ways I've found around it are:
Which seems to "work", but doesn't seem as performant as the normal NV runtime route.
NVIDIA Driver installed: 550.127.05
Expected Behavior
Run with NVIDIA support using Docker NVIDIA runtime.
Steps To Reproduce
Environment
CPU architecture
x86-64
Docker creation
Container logs
Although you see to get these (?) when running without NV runtime and using the ENV vars I gave, yet the 3D views work.