bambulab / BambuStudio

PC Software for BambuLab and other 3D printers
GNU Affero General Public License v3.0
1.83k stars 258 forks source link

assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed #2479

Open iridesc opened 11 months ago

iridesc commented 11 months ago

Bambu Studio Version

Bambu_Studio_linux_ubuntu-v01.07.04.52_538e9789b3d4e6c6dfd560cdb229231e.AppImage

Where is the application from?

Bambu Lab github releases

OS version

DISTRIB_ID="ManjaroLinux" DISTRIB_RELEASE="23.0.0" DISTRIB_CODENAME="Uranos" DISTRIB_DESCRIPTION="Manjaro Linux"

Additional system information

Linux ird-ms7a40 6.1.49-1-MANJARO #1 SMP PREEMPT_DYNAMIC Sun Aug 27 23:08:04 UTC 2023 x86_64 GNU/Linux

Printer

p1p

How to reproduce

  1. download https://objects.githubusercontent.com/github-production-release-asset-2e65be/511797274/03a93af5-bf54-47f9-8de3-ad7e8f84a2c2?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230907%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230907T171357Z&X-Amz-Expires=300&X-Amz-Signature=99a43e9966e87f10541353bd107f0dfa1eb94d531805f645b0b1352f28505d86&X-Amz-SignedHeaders=host&actor_id=26148052&key_id=0&repo_id=511797274&response-content-disposition=attachment%3B%20filename%3DBambu_Studio_linux_ubuntu-v01.07.04.52.AppImage&response-content-type=application%2Foctet-stream
  2. chmod +x Bambu_Studio_linux_ubuntu-v01.07.04.52_538e9789b3d4e6c6dfd560cdb229231e.AppImage
  3. ./Bambu_Studio_linux_ubuntu-v01.07.04.52_538e9789b3d4e6c6dfd560cdb229231e.AppImage

Actual results

error result in current user: image

with sudo have some error printing but working fine: image

Expected results

like with sudo

Project file & Debug log uploads

[2023-09-08 01:14:58.133203] [0x00007fabedef7480] [trace] Initializing StaticPrintConfigs add font of HarmonyOS_Sans_SC_Bold returns 1 add font of HarmonyOS_Sans_SC_Regular returns 1

(process:31433): GLib-GObject-CRITICAL **: 01:14:58.280: invalid (NULL) pointer instance

(process:31433): GLib-GObject-CRITICAL **: 01:14:58.281: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

Checklist of files to include

iridesc commented 11 months ago

update: after rm -rf .config/BambuStudio it`s started. but when i login, the it's get stuck and exited.... the OrcaSlicer got the same problem. guess i have to use it without login for now.

randerzander commented 11 months ago

I have the same issue using Bambu_Studio_linux_ubuntu-v01.07.04.52.AppImage

viveksood97 commented 11 months ago

I am having the same issue

Achllle commented 9 months ago

Same with 1.7.7.89. Removing ~/.config/BambuStudio did not fix it for me, failing instead with a SegFault

(bambu-studio:164207): Gtk-CRITICAL **: 11:43:42.824: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
EGLDisplay Initialization failed: EGL_BAD_ACCESS
EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
Cannot create EGL context: invalid display (last error: EGL_SUCCESS)
Segmentation fault (core dumped)
noisersup commented 9 months ago

Same here

lanewei120 commented 9 months ago

which OS are you using @noisersup @Achllle @randerzander @viveksood97 ?

wad the homepage shown when crashed? and if yes, did you click login?

thanks

Achllle commented 9 months ago

I'm on Ubuntu 22.04. The app does not launch, only the following message is shown:

To manually specify the system certificate store, set the SSL_CERT_FILE environment variable to the correct CA 

Once you select 'yes', it crashes.

deftdawg commented 9 months ago

@Achllle It's basically crashing as soon as the dialog closes and bambu-studio tries to start doing EGL/OpenGL graphical rendering

Can you run gdb and check if you're also seg-faulting on this function on ImFont::CalcTextSizeA like I am seeing on NixOS:

# Open a gnome-terminal, konsole or xterm
sudo apt install -y gdb # Install GNU Debugger
echo -e "run\nbt\n\n" | LC_ALL=C gdb bambu-studio # Run bambu-studio inside GDB and dump the backtrace

NOTE: You might have to change bambu-studio to be the path to your AppImage or where-ever you're running it from

deftdawg commented 9 months ago

@Achllle the problem I described with EGL/OpenGL has been resolved in the NixOS's bambu-studio PR based on some fixes upstream in prusa slicer to do with overriding the defaults for wgtk3.1... No idea if that was your issue though, as you didn't reply. :laughing:

BambulabRobot commented 3 weeks ago

This issue has been marked as inactive due to no response for 90 days.

lanewei120 commented 2 weeks ago

Hello guys,

Do you still has this issue?

j4k0xb commented 2 weeks ago

Do you still has this issue?

I came across the same error today and the root cause was an empty .config/BambuStudio/BambuStudio.conf file (probably interrupted while saving). Deleting the whole directory fixed everything (including login).

To reproduce:

mv BambuStudio.conf BambuStudio.conf.bak
touch BambuStudio.conf
bambu-studio
[2024-08-12 18:48:16.615045] [0x00007f88ee912480] [trace]   Initializing StaticPrintConfigs
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1

(process:21697): GLib-GObject-CRITICAL **: 18:48:16.646: invalid (NULL) pointer instance

(process:21697): GLib-GObject-CRITICAL **: 18:48:16.646: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed