bambu-studio: crash when login to bambu lab cloud
Nixpkgs version
- Unstable (25.11)
Describe the bug
When login in the bambulab cloud, the app segfault and closes. Login info is not stored.
Steps to reproduce
- start bambu-studio
- click on login
- enter credentials
- the app crashes
Expected behaviour
app shall perform login
Screenshots
No response
Relevant log output
(bambu-studio:13027): Gtk-CRITICAL **: 16:17:44.401: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
after dlopen, network_module is 0x37d24340
1. lo : 127.0.0.1
2. wlan0 : [redacted]
** (bambu-studio:13027): CRITICAL **: 16:17:47.592: Cannot register URI scheme wxfs more than once
** (bambu-studio:13027): CRITICAL **: 16:17:47.592: Cannot register URI scheme memory more than once
free(): invalid pointer
zsh: abort (core dumped) bambu-studio
Additional context
No response
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.12.44, NixOS, 25.11 (Xantusia), 25.11.20250903.c6a788f - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.28.4 - channels(root):
"" - nixpkgs:
/nix/store/b0vlbbvnq40yca0r0dx39092inxzlp5i-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- [x] I assert that this is a bug and not a support request.
- [x] I assert that this is not a duplicate of an existing issue.
- [x] I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a :+1: reaction to issues you find important.
This happens with both 2.x as well as the older 1.x versions before the upgrade. Happens on different window managers, so it's not related to a particular WM environment.
Keeps happening to me +1
This seems to be happening for a while now https://github.com/bambulab/BambuStudio/issues/6522
Even though this may not be a real solution for some: I wanted to state that I switched to orca-slicer for now, as it supports bambu lab printers to the same degree as bambu-studio
Even though this may not be a real solution for some: I wanted to state that I switched to orca-slicer for now, as it supports bambu lab printers to the same degree as bambu-studio
Only on lan mode right ?
Even though this may not be a real solution for some: I wanted to state that I switched to orca-slicer for now, as it supports bambu lab printers to the same degree as bambu-studio
Only on lan mode right ?
No, weirdly enough, it supports the network plugin from bambu
I have tested a little bit and it seems the issue lies in the integration of the same network plugin into bambu studio, but it works in orca just fine. You can use all the cloud features.
Even though this may not be a real solution for some: I wanted to state that I switched to orca-slicer for now, as it supports bambu lab printers to the same degree as bambu-studio
Only on lan mode right ?
No, weirdly enough, it supports the network plugin from bambu
I have tested a little bit and it seems the issue lies in the integration of the same network plugin into bambu studio, but it works in orca just fine. You can use all the cloud features.
Hum ok last time I tired it did not work. From what I understand they added a mechanism to prevent third parties to access the printer.
Your printer is up to date ?
Tested OrcaSlicer and the camera is not working with a network error.
Ok I have tested it a little more and you are right. It only works good in lan only mode. Also you need to enable developer mode. I have previously on accident only tested parts that by chance worked via Cloud (Lamp, Nozzle).
Hey folks, I managed to solve this for myself. I made an Overlay with the AppImage build, but I am certain that there is a better approach - e.g. to patch the base package :) After some debugging I saw that every networking-related thing made it crash - login to the cloud, LAN mode connection to the printer and etc. After some more debugging, I found dout that the webkitgtk_4.1 is necessary and also glib-networking. I am not sure about the GST packages (got them from some forum), but they did decrease the amount of errors in the console.
So now I can login in Bambu Studio + Makerworld, and also LAN connectivity to my printer works.
If someone can test further which of these packages is needed to make the base package work, that would be great!
/etc/nixos/overlays/bambu.nix
self: super: {
bambu-studio = super.appimageTools.wrapType2 rec {
name = "BambuStudio";
pname = "bambu-studio";
version = "02.02.02.56";
ubuntu_version = "24.04_PR-8184";
src = super.fetchurl {
url = "https://github.com/bambulab/BambuStudio/releases/download/v${version}/Bambu_Studio_ubuntu-${ubuntu_version}.AppImage";
sha256 = "sha256-ziipEMz58lG/+uxubCd53c6BjJ9W3doJ9/Z8VJp+Za4=";
};
profile = ''
export SSL_CERT_FILE="${super.cacert}/etc/ssl/certs/ca-bundle.crt"
export GIO_MODULE_DIR="${super.glib-networking}/lib/gio/modules/"
'';
extraPkgs = pkgs: with pkgs; [
cacert
glib
glib-networking
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
webkitgtk_4_1
];
};
}
Hey folks, I managed to solve this for myself. I made an Overlay with the AppImage build, but I am certain that there is a better approach - e.g. to patch the base package :) After some debugging I saw that every networking-related thing made it crash - login to the cloud, LAN mode connection to the printer and etc. After some debugging, I saw that the
webkitgtk_4.1is necessary and theglib-networking. I am not sure about the GST packages (got them from some forum), but they did decrease the amount of errors in the console.So now I can login in Bambu Studio + Makerworld, and also LAN connectivity to my printer works.
If someone can test further which of these packages is needed to make the base package work, that would be great!
/etc/nixos/overlays/bambu.nix self: super: { bambu-studio = super.appimageTools.wrapType2 rec { name = "BambuStudio"; pname = "bambu-studio"; version = "02.02.02.56"; ubuntu_version = "24.04_PR-8184"; src = super.fetchurl { url = "https://github.com/bambulab/BambuStudio/releases/download/v${version}/Bambu_Studio_ubuntu-${ubuntu_version}.AppImage"; sha256 = "sha256-ziipEMz58lG/+uxubCd53c6BjJ9W3doJ9/Z8VJp+Za4="; }; profile = '' export SSL_CERT_FILE="${super.cacert}/etc/ssl/certs/ca-bundle.crt" export GIO_MODULE_DIR="${super.glib-networking}/lib/gio/modules/" ''; extraPkgs = pkgs: with pkgs; [ cacert glib glib-networking gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good webkitgtk_4_1 ]; }; }
That is an interesting solution. Maybe we shall change the official package to use the AppImage instead of building it from scratch then.
Hey folks, I managed to solve this for myself. I made an Overlay with the AppImage build, but I am certain that there is a better approach - e.g. to patch the base package :) After some debugging I saw that every networking-related thing made it crash - login to the cloud, LAN mode connection to the printer and etc. After some debugging, I saw that the
webkitgtk_4.1is necessary and theglib-networking. I am not sure about the GST packages (got them from some forum), but they did decrease the amount of errors in the console. So now I can login in Bambu Studio + Makerworld, and also LAN connectivity to my printer works. If someone can test further which of these packages is needed to make the base package work, that would be great!/etc/nixos/overlays/bambu.nix self: super: { bambu-studio = super.appimageTools.wrapType2 rec { name = "BambuStudio"; pname = "bambu-studio"; version = "02.02.02.56"; ubuntu_version = "24.04_PR-8184"; src = super.fetchurl { url = "https://github.com/bambulab/BambuStudio/releases/download/v${version}/Bambu_Studio_ubuntu-${ubuntu_version}.AppImage"; sha256 = "sha256-ziipEMz58lG/+uxubCd53c6BjJ9W3doJ9/Z8VJp+Za4="; }; profile = '' export SSL_CERT_FILE="${super.cacert}/etc/ssl/certs/ca-bundle.crt" export GIO_MODULE_DIR="${super.glib-networking}/lib/gio/modules/" ''; extraPkgs = pkgs: with pkgs; [ cacert glib glib-networking gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good webkitgtk_4_1 ]; }; }That is an interesting solution. Maybe we shall change the official package to use the AppImage instead of building it from scratch then.
Works fine for me! Thanks :)
Otherwise +1 for the issue.
I was having the same problem, and this resolved it.
The overlay also solved the issues for me as well. Wondering if that should be the new package definition.
Thanks to @itwasonlyabug ! I've not done anything revolutionary here, but will share for ease. This is updated to get the latest version, with support for the new P2S printer. Note I haven't changed anything substantial.
I've used it for about 10 minutes, done some design and slicing, and initiated a print and had the camera running - all worked well.
self: super: {
bambu-studio = super.appimageTools.wrapType2 rec {
name = "BambuStudio";
pname = "bambu-studio";
version = "02.03.00.70";
ubuntu_version = "24.04_PR-8184";
src = super.fetchurl {
url = "https://github.com/bambulab/BambuStudio/releases/download/v${version}/Bambu_Studio_ubuntu-${ubuntu_version}.AppImage";
sha256 = "sha256:60ef861e204e7d6da518619bd7b7c5ab2ae2a1bd9a5fb79d10b7c4495f73b172";
};
profile = ''
export SSL_CERT_FILE="${super.cacert}/etc/ssl/certs/ca-bundle.crt"
export GIO_MODULE_DIR="${super.glib-networking}/lib/gio/modules/"
'';
extraPkgs = pkgs: with pkgs; [
cacert
glib
glib-networking
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
webkitgtk_4_1
];
};
}
Thanks to @itwasonlyabug ! I've not done anything revolutionary here, but will share for ease. This is updated to get the latest version, with support for the new P2S printer. Note I haven't changed anything substantial.
I've used it for about 10 minutes, done some design and slicing, and initiated a print and had the camera running - all worked well.
self: super: { bambu-studio = super.appimageTools.wrapType2 rec { name = "BambuStudio"; pname = "bambu-studio"; version = "02.03.00.70"; ubuntu_version = "24.04_PR-8184"; src = super.fetchurl { url = "https://github.com/bambulab/BambuStudio/releases/download/v${version}/Bambu_Studio_ubuntu-${ubuntu_version}.AppImage"; sha256 = "sha256:60ef861e204e7d6da518619bd7b7c5ab2ae2a1bd9a5fb79d10b7c4495f73b172"; }; profile = '' export SSL_CERT_FILE="${super.cacert}/etc/ssl/certs/ca-bundle.crt" export GIO_MODULE_DIR="${super.glib-networking}/lib/gio/modules/" ''; extraPkgs = pkgs: with pkgs; [ cacert glib glib-networking gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good webkitgtk_4_1 ]; }; }
I'm using this version as well. Early in my testing but no issues so far. The appimage build seems a lot easier to maintain than the package.nix as it exists in upstream right now with its multiple patches. Any downsides to this? If not I'll throw a PR up to unstable.
I am also using the appimage one, however i encountered that the appimage demands en_GB locale to be set and i was unable to change it by setting any of the locale envvars in profile. the following snippet worked for me (after logout/login)
i18n.defaultLocale = lib.mkForce "en_GB.UTF-8";
i18n.supportedLocales = [
"en_GB.UTF-8/UTF-8"
"en_US.UTF-8/UTF-8"
];
I am also using the appimage one, however i encountered that the appimage demands en_GB locale to be set and i was unable to change it by setting any of the locale envvars in profile. the following snippet worked for me (after logout/login)
i18n.defaultLocale = lib.mkForce "en_GB.UTF-8"; i18n.supportedLocales = [ "en_GB.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" ];
Whats the symptom without those locality settings? These are NixOS options on your host and not added to the derivation or something right?
Things seem to be working fine for me here:
nix-repl> nixosConfigurations.<my host>.config.i18n.defaultLocale
"en_US.UTF-8"
nix-repl> nixosConfigurations.<my host>.config.i18n.supportedLocales
[
"C.UTF-8/UTF-8"
"en_US.UTF-8/UTF-8"
]
I am also using the appimage one, however i encountered that the appimage demands en_GB locale to be set and i was unable to change it by setting any of the locale envvars in profile. the following snippet worked for me (after logout/login)
I too ran into this issue launching the app image (updated to the latest version at time of writing). It happens if you first run the (current) nixpkgs version and then try to launch the appimage.
Turns out ~/.config/BambuStudio/BambuStudio.conf contained a language key set to en in my case - which is interpreted as en_GB. Either change it to en_US or delete all of ~/.config/BambuStudio to fix it.
Can confirm that the appImage variant works. I ran into the locale problem as well, but just deleting the "language" key from ~/.config/BambuStudio/BambuStudio.conf entirely made it work fine.