Skip to content

Bambu Studio fails to start — GLib-GObject-CRITICAL "invalid (NULL) pointer instance", black screen #40

Closed

Description

@MarieFK59

Describe the bug
Bambu Studio crashes at startup, right after [trace] Initializing StaticPrintConfigs, with no UI window ever shown. The KasmVNC/Selkies desktop (labwc + Wayland streaming) starts and works correctly — it's actively capturing and streaming an empty desktop, which is why the browser shows a black screen with the sidebar visible but no app window.

To reproduce

  1. Fresh install via docker-compose (PUID=1000, PGID=1000, shm_size 1gb, empty /config volume)
  2. Open the web UI
  3. Screen is black; sidebar loads fine

Logs
Running /opt/bambustudio/AppRun manually as the abc user reproduces the crash directly:

[trace]   Initializing StaticPrintConfigs

(bambu-studio:PID): GLib-GObject-CRITICAL **: invalid (NULL) pointer instance

(bambu-studio:PID): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

Process exits immediately after, no further output.

Tested

  • Tag latest / 02.08.01 (build v02.08.01.55-ls157, 2026-07-15): crash
  • Tag 02.08.00: identical crash, same binary

Environment

  • Host: Fedora CoreOS, rootless-adjacent Podman (system quadlet, /etc/containers/systemd/)
  • Wayland stack (labwc), CPU has AVX2 so no X11 fallback
  • No GPU passthrough (DRINODE unset. Initializing Software Renderer (Pixman)), CPU H264 encoding

Additional context
Same exact GLib-GObject assertion signature as bambulab/BambuStudio#9217, #9450, #2479 (upstream GTK/GLib compatibility issue, not container-specific).

Activity

  1. github-actions commented on Jul 16, 2026

    @github-actions

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

  2. MarieFK59 commented on Jul 16, 2026

    @MarieFK59
    Author

    Found the actual root cause on my setup — it's SELinux, not Bambu Studio itself.

    Host: Fedora CoreOS with SELinux enforcing, container running via a Podman system quadlet (container_t domain, no SecurityLabelDisable).

    ausearch -m avc showed repeated denials at the exact time of the crash:

    avc: denied { mount } for pid=... comm="bwrap" name="/" dev="devpts" ino=1 scontext=system_u:system_r:container_t:s0:c551,c674 tcontext=system_u:object_r:devpts_t:s0 tclass=filesystem permissive=0
    

    bwrap (used by the sandboxed GTK4 glycin icon loader, and apparently something earlier in the Wayland/labwc startup path too) can't create the namespace/mount it needs under SELinux confinement, which cascades into GLib-GObject-CRITICAL: invalid (NULL) pointer instance right after Initializing StaticPrintConfigs, and the app exits with no window.

    Fix: add --security-opt label=disable (or SecurityLabelDisable=true in a Podman quadlet) to run the container unconfined instead of under container_t. With that alone (no need to force X11 via PIXELFLUX_WAYLAND=false), Bambu Studio starts normally in native Wayland mode on my machine.

    Tried both latest/02.08.01 and 02.08.00 — identical crash on both until the SELinux fix was applied, so this isn't a regression between those two builds. Might be worth a note in the docs for SELinux-enforcing hosts (Fedora, RHEL, CoreOS, etc.), since bwrap sandboxing + SELinux container confinement is a fairly common combination to hit.

  3. MarieFK59 commented on Jul 16, 2026

    @MarieFK59
    Author

    Closing as resolved on my end — root cause was SELinux confinement on the host (Fedora CoreOS), not an image bug. The comment above has the fix for anyone else hitting this on an SELinux-enforcing host.

  4. moved this from Issues to Done in Issue & PR Trackeron Jul 16, 2026
  5. outscale-gjt commented on Oct 21, 2026

    @outscale-gjt

    Hello,

    I am experiencing the same symptoms with the LinuxServer Bambu Studio container, but on Ubuntu 24.04 inside a virtual machine.

    The application briefly displays "Loading configuration...", then the screen turns black and the Bambu Studio process exits with code 255.

    The same issue occurs both with and without GPU access.
    I previously tested with a P6 GPU.

    I also tried running the container with:

    • seccomp:unconfined
    • apparmor:unconfined

    Neither option resolved the problem.

    The application outputs the same GLib-GObject-CRITICAL messages reported in this issue.

    Since the workaround described here concerns SELinux on Fedora CoreOS, could you advise whether there is an equivalent cause or workaround on Ubuntu 24.04?

    Thank you!

  6. jbhenry commented on Nov 2, 2026

    @jbhenry

    I am getting the same error messages while trying to run the .appimage version of Bambu Studio, under Linux Mint 22.3. I can fall back to the 2.7.x version, which still runs as expected.
    Any similar workaround available for this environment?
    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions