Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed #2479

Open
1 of 2 tasks
iridesc opened this issue Sep 7, 2023 · 19 comments
Open
1 of 2 tasks

assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed #2479

iridesc opened this issue Sep 7, 2023 · 19 comments
Assignees
Labels
bug Something isn't working inactive customer 90 days wont reply

Comments

@iridesc
Copy link

iridesc commented Sep 7, 2023

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

  • Log file
  • Project file
@iridesc iridesc added the bug Something isn't working label Sep 7, 2023
@iridesc
Copy link
Author

iridesc commented Sep 12, 2023

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
Copy link

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

@viveksood97
Copy link

I am having the same issue

@Achllle
Copy link

Achllle commented Nov 4, 2023

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
Copy link

Same here

@lanewei120
Copy link
Collaborator

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

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

thanks

@Achllle
Copy link

Achllle commented Nov 6, 2023

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
Copy link
Contributor

deftdawg commented Nov 22, 2023

@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
Copy link
Contributor

@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. 😆

@BambulabRobot BambulabRobot added the inactive customer 90 days wont reply label Aug 6, 2024
@BambulabRobot
Copy link

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

@lanewei120
Copy link
Collaborator

Hello guys,

Do you still has this issue?

@j4k0xb
Copy link

j4k0xb commented Aug 12, 2024

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

@tylerburleigh
Copy link

I'm having this issue with the latest flatpak.

$ flatpak run com.bambulab.BambuStudio
$ [2024-10-07 19:12:51.285025] [0x00007198ccf6f3c0] [trace]   Initializing StaticPrintConfigs
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1

(process:4): GLib-GObject-CRITICAL **: 19:12:51.317: invalid (NULL) pointer instance

(process:4): GLib-GObject-CRITICAL **: 19:12:51.317: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

@MackBambu
Copy link
Contributor

You can try deleting the configuration file, as it might be failing to read due to an error in the file.
rm -rf ~/.config/BambuStudio

@tylerburleigh
Copy link

I have tried deleting the config file, no luck.

@dayer4b
Copy link

dayer4b commented Nov 5, 2024

I believe this is affecting me too. I have tried downgrading with no success so far.

@su-sd
Copy link

su-sd commented Nov 14, 2024

I have the same issue on debian 12 using sway without xwayland.

$ flatpak run com.bambulab.BambuStudio --debug 5 
[2024-11-08 01:05:30.396286] [0x00007c0fd8f253c0] [trace]   Initializing StaticPrintConfigs
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1

(bambu-studio:2): GLib-GObject-CRITICAL **: 01:05:30.437: invalid (NULL) pointer instance

(bambu-studio:2): GLib-GObject-CRITICAL **: 01:05:30.437: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

With xwayland (using Xorg) the problem disappears.

@Tnthr
Copy link

Tnthr commented Nov 24, 2024

I had the same issue and as others noted the fail message is unrelated to this fault. The failure to launch might be caused by a corrupted conf file. My hard drive was full and it failed to write the config so both of my BambuStudio.conf and network plugin conf files were corrupted. I deleted those files and everything started working again.

If you are using a flatpak then you'll find the conf files in the below directory.

~/.var/app/com.bambulab.BambuStudio/config/BambuStudio/

MackBambu noted the normal install config file location above.

I would recommend better error handling of the config file being corrupted. Currently it seems to just fail silently.

@matteovidali
Copy link

I was having this issue.
Steps I took to resolve

  1. Delete the ~/.config/BambuStudio directory via rm -rf ~/.config/BambuStudio
  2. Delete the config file from .var/app/com.bambulab.BambuStudio/config/BambuStudio/BambuStudio.conf as mentioned by @Tnthr

Bambu studio now launches while I have only standard user level privaleges as expected, with only the usual amount of gtk critical warnings. :)

Hope this was helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working inactive customer 90 days wont reply
Projects
None yet
Development

No branches or pull requests