Bambu-studio: any working method?

I’m having the same issue on latest OrcaSlicer in unstable. On my nvidia machine no viewport, on my dell laptop without gpu it works fine. (still crashes when trying to use mainsail through devices tab)

Does anyone has a working method ?

With the following derivation :

{ lib, stdenv, pkgs, appimageTools, gsettings-desktop-schemas, gtk3, fetchurl, ...}:
let
  version = "02.01.01.52";
  appImage = fetchurl {
    url = "https://github.com/bambulab/BambuStudio/releases/download/v${version}/Bambu_Studio_linux_fedora-v${version}.AppImage";
    sha256 = "sha256-huMKtNMW7UqsiyRuielGbF4wjUH1Jwv2tcQIBSqFqhM=";
  };
in
appimageTools.wrapType2 {
  pname = "bambu-studio";
  inherit version;

  src = appImage;

  profile = ''
    export LC_ALL=C.UTF-8
    export XDG_DATA_DIRS="${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS"
  '';

  extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ (with pkgs; [
    # fixes "unexpected error"
    gsettings-desktop-schemas glib gtk3 zlib

    # needed for icons
    adwaita-icon-theme
  ]);
}

I get a window without content when I do (with or without the environment variables) env WEBKIT_DISABLE_COMPOSITING_MODE=1 WEBKIT_DISABLE_DMABUF_RENDERER=1 ELECTRON_OZONE_PLATFORM_HINT=auto ./result/bin/bambu-studio-appimage

% nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.12.41, NixOS, 25.11 (Xantusia), 25.11pre-git`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.30.2`
 - channels(root): `"nixos, nixpkgs"`
 - nixpkgs: `/nix/store/nglfj5i11zigpbgvw51n5g699y5gi6r9-nixpkgs/nixpkgs`

Doing nix run github:NixOS/nixpkgs#bambu-studio yield no graphical output and just the following in the console :

[2025-09-23 11:05:29.675186] [0x00007f25e1493900] [trace]   Initializing StaticPrintConfigs
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1

(bambu-studio:729354): GLib-GObject-CRITICAL **: 11:05:29.725: invalid (NULL) pointer instance

(bambu-studio:729354): GLib-GObject-CRITICAL **: 11:05:29.725: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

I just got my hands on a P2S so I wanted to share how I got the newest version running on Wayland + Nvidia. I use the following overlays:

  modifications = final: prev: {
    unstable =
      prev.unstable
      // {
        bambu-studio = prev.unstable.bambu-studio.overrideAttrs (old: let
          newVersion = "02.03.00.70";
        in {
          version = newVersion;
          src = prev.fetchFromGitHub {
            owner = "bambulab";
            repo = "BambuStudio";
            rev = "v${newVersion}";
            hash = "sha256-2duNeSBi2WvsAUxkzTbKH+SiliNovc7LVICTzgQkrN8=";
          };

          nativeBuildInputs = (old.nativeBuildInputs or []) ++ [prev.cmake prev.pkg-config];

          postPatch =
            (old.postPatch or "")
            + ''
              # Remove cereal-Links (link does not work, havent seen anything breaking from this change).
              # Disclaimera; This patch is AI generated
              grep -RIl "target_link_libraries" . | while read -r f; do
                sed -i \
                  -e 's/\bcereal::cereal\b//g' \
                  -e 's/[[:space:]]\bcereal\b//g' \
                  "$f"
              done
            '';

          postInstall =
            (old.postInstall or "")
            + ''
              wrapProgram $out/bin/bambu-studio --set GBM_BACKEND dri
            '';

          cmakeFlags =
            (old.cmakeFlags or [])
            ++ [
              "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
            ];
        });
      };
  };

  # When applied, the unstable nixpkgs set (declared in the flake inputs) will
  # be accessible through 'pkgs.unstable'
  unstable-packages = final: _prev: {
    unstable = import inputs.nixpkgs-unstable {
      system = final.system;
      config.allowUnfree = true;
    };
  };

Then I add it using environment.systemPackages = with pkgs; [unstable.bambu-studio].
Depending on the setup, you might have a different way of using overlays. The important part is the override of the current unstable version.

My issue is on Intel only and once I try to sign in the whole application crashes, the flatpak seems to work fine though.