nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

bambu-studio: cannot login

Open rokokol opened this issue 8 months ago • 5 comments

Nixpkgs version

  • Unstable (26.05)

Describe the bug

When I try to login through google account the browser cannot connect to localhost:13618. When I log in though bambu cloud account, then nothing happens

Steps to reproduce

  1. Install bambu-studio
  2. Log in through google account or bambu cloud account
  3. Аfter entering the password and email address, when I click on login/register, a login window pops up, but when I click Continue to Bambu Studio, nothing happens

Expected behaviour

I should log in into account

Screenshots

Image

Relevant log output

[2026-03-09 21:27:38.306643] [0x00007f33585d19c0] [trace]   Initializing StaticPrintConfigs

(bambu-studio:67423): Gtk-WARNING **: 21:27:38.751: Theme parsing error: gtk.css:1048:16: 'border-spacing' is not a valid property name

(bambu-studio:67423): Gtk-CRITICAL **: 21:27:40.606: gtk_window_resize: assertion 'width > 0' failed

(bambu-studio:67423): Gtk-CRITICAL **: 21:27:40.611: gtk_window_resize: assertion 'width > 0' failed

(bambu-studio:67423): Gtk-CRITICAL **: 21:27:40.611: gtk_window_resize: assertion 'width > 0' failed
1. lo    : 127.0.0.1
2. eno1  : 192.168.0.106
3. docker0: 172.17.0.1

Error: Failed to open Wayland display, fallback to X11. WAYLAND_DISPLAY='wayland-1' DISPLAY=':0'

Additional context

When I use flatpack all works well. Also I use AmneziaVPN and when I turn it on, the google auth says that cannot login instead of error on localhost:13618 https://github.com/NixOS/nixpkgs/issues/498311

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.18.16, NixOS, 26.05 (Yarara), 26.05.20260306.aca4d95
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.31.3
  • nixpkgs: /nix/store/3x925rhb3gjikmqkyqigjcdfqm1hsn6a-source

Notify maintainers

@zhaofengli @dsluijk


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

Is this issue important to you?

Add a :+1: reaction to issues you find important.

rokokol avatar Mar 09 '26 18:03 rokokol

Having same issue, and I find that there is dynamic downloaded so, which might cause issues:

ldd ~/.config/BambuStudio/plugins/libbambu_networking.so

luochen1990 avatar Mar 10 '26 08:03 luochen1990

Having same issue, and I find that there is dynamic downloaded so, which might cause issues:

ldd ~/.config/BambuStudio/plugins/libbambu_networking.so

I had such output:

$  ldd ~/.config/BambuStudio/plugins/libbambu_networking.so
ldd: warning: you do not have execution permission for `/home/rokokol/.config/BambuStudio/plugins/libbambu_networking.so'
	linux-vdso.so.1 (0x00007fecc808e000)
	libpthread.so.0 => /nix/store/l0l2ll1lmylczj1ihqn351af2kyp5x19-glibc-2.42-51/lib/libpthread.so.0 (0x00007fecc8081000)
	libstdc++.so.6 => not found
	libdl.so.2 => /nix/store/l0l2ll1lmylczj1ihqn351af2kyp5x19-glibc-2.42-51/lib/libdl.so.2 (0x00007fecc807c000)
	libc.so.6 => /nix/store/l0l2ll1lmylczj1ihqn351af2kyp5x19-glibc-2.42-51/lib/libc.so.6 (0x00007fecc6e00000)
	/nix/store/l0l2ll1lmylczj1ihqn351af2kyp5x19-glibc-2.42-51/lib64/ld-linux-x86-64.so.2 (0x00007fecc8090000)
	libz.so.1 => not found
	libm.so.6 => /nix/store/l0l2ll1lmylczj1ihqn351af2kyp5x19-glibc-2.42-51/lib/libm.so.6 (0x00007fecc7108000)
	libgcc_s.so.1 => /nix/store/r7vdyf8pwlqsgd5ydak9fmq3q1i5nm3m-xgcc-15.2.0-libgcc/lib/libgcc_s.so.1 (0x00007fecc804d000)

However, when I add stdenv.cc.cc аnd zlib to nix-ld, it does not help. Then I tried

nix-shell -p patchelf stdenv.cc.cc.lib zlib --run '
  GCC_LIB=$(nix-build "<nixpkgs>" -A stdenv.cc.cc.lib --no-out-link)/lib
  Z_LIB=$(nix-build "<nixpkgs>" -A zlib --no-out-link)/lib 
  patchelf --set-rpath "$GCC_LIB:$Z_LIB" ~/.config/BambuStudio/plugins/libbambu_networking.so
'

And it fixed the missing libraries:

$  ldd ~/.config/BambuStudio/plugins/libbambu_networking.so
ldd: warning: you do not have execution permission for `/home/rokokol/.config/BambuStudio/plugins/libbambu_networking.so'
	linux-vdso.so.1 (0x00007f2f3421c000)
	libpthread.so.0 => /nix/store/l0l2ll1lmylczj1ihqn351af2kyp5x19-glibc-2.42-51/lib/libpthread.so.0 (0x00007f2f3420f000)
	libstdc++.so.6 => /nix/store/ihpdbhy4rfxaixiamyb588zfc3vj19al-gcc-15.2.0-lib/lib/libstdc++.so.6 (0x00007f2f32e00000)
	libdl.so.2 => /nix/store/l0l2ll1lmylczj1ihqn351af2kyp5x19-glibc-2.42-51/lib/libdl.so.2 (0x00007f2f3420a000)
	libc.so.6 => /nix/store/l0l2ll1lmylczj1ihqn351af2kyp5x19-glibc-2.42-51/lib/libc.so.6 (0x00007f2f32a00000)
	/nix/store/l0l2ll1lmylczj1ihqn351af2kyp5x19-glibc-2.42-51/lib64/ld-linux-x86-64.so.2 (0x00007f2f3421e000)
	libz.so.1 => /nix/store/vl8jkqpr0l3fac3cxiy4nwc5paiww1lv-zlib-1.3.1/lib/libz.so.1 (0x00007f2f341ec000)
	libm.so.6 => /nix/store/l0l2ll1lmylczj1ihqn351af2kyp5x19-glibc-2.42-51/lib/libm.so.6 (0x00007f2f340f2000)
	libgcc_s.so.1 => /nix/store/ihpdbhy4rfxaixiamyb588zfc3vj19al-gcc-15.2.0-lib/lib/libgcc_s.so.1 (0x00007f2f340c5000)

Nevertheless, I still cannot log in with the same issues

rokokol avatar Mar 10 '26 18:03 rokokol

Nevertheless, I still cannot log in with the same issues

Yes, I found that. I tried the flatpak version (2.5.0.66) and it works well. I'm now using this flatpak for a workaround now and waiting for the update/fix.

luochen1990 avatar Mar 11 '26 06:03 luochen1990

This is still a problem in 25.11.

Caitex212 avatar Apr 24 '26 10:04 Caitex212

Hi everyone, I got it fixed in #522161. Thanks for reporting! (Sorry the fix came so late. I didn't see it because I joined as a maintainer after this issue was created, so I didn't get pinged.)

MiniHarinn avatar May 20 '26 07:05 MiniHarinn