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

[BUG] No 3D views when using NVIDIA runtime #16

Open
1 task done
Codelica opened this issue Jan 31, 2025 · 1 comment
Open
1 task done

[BUG] No 3D views when using NVIDIA runtime #16

Codelica opened this issue Jan 31, 2025 · 1 comment

Comments

@Codelica
Copy link

Codelica commented Jan 31, 2025

Is there an existing issue for this?

  • I have searched the existing issues

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:

  1. Disabling NV GPU runtime for pure software rendering which is pretty brutal.
  2. 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

  1. Create the container and run using Docker NVIDIA runtime.
  2. 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.

Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Issues
Development

No branches or pull requests

1 participant