bambulab / BambuStudio

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

Error on launch: add font of HarmonyOS_Sans_SC_Bold returns 1 #3109

Open joenotjim opened 9 months ago

joenotjim commented 9 months ago

Bambu Studio Version

1.8

Where is the application from?

Bambu Lab github releases

OS version

openSUSE Tumbleweed 20231204

Additional system information

AMD Ryzen 7 PRO 3700U w/ Radeon Vega Mobile Gfx 40 GB DDR4

Printer

Bambu Lab X1C

How to reproduce

Launch AppImage

Actual results

./Downloads/BambuStudio_linux_fedora_v01.08.02.56-20231213.AppImage
[2023-12-14 10:22:20.608904] [0x00007f5c3bd92d40] [trace]   Initializing StaticPrintConfigs
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1

(bambu-studio:24072): GLib-GObject-CRITICAL **: 10:22:20.858: invalid (NULL) pointer instance

(bambu-studio:24072): GLib-GObject-CRITICAL **: 10:22:20.858: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

Expected results

Software should launch

Project file & Debug log uploads

./Downloads/BambuStudio_linux_fedora_v01.08.02.56-20231213.AppImage
[2023-12-14 10:22:20.608904] [0x00007f5c3bd92d40] [trace]   Initializing StaticPrintConfigs
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1

(bambu-studio:24072): GLib-GObject-CRITICAL **: 10:22:20.858: invalid (NULL) pointer instance

(bambu-studio:24072): GLib-GObject-CRITICAL **: 10:22:20.858: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

Checklist of files to include

joenotjim commented 9 months ago

I downloaded the Fedora AppImage (since openSUSE is RPM-based) two weeks ago (BambuStudio_linux_fedora_v01.08.00.62-20231123075101.AppImage). After three rounds of chasing missing libraries, the software launched and appeared to operate successfully. I don't actually have my printer yet, so I didn't do anything beyond opening the software.

After installing OS patches, I now get the error I reported in the bug. I updated to the brand new 1.8 GA and downloaded and installed the HarmonyOS_Sans_SC fonts but the error persists.

Launching the AppImage with --debug 5 does not produce any additional log data.

beanotj commented 9 months ago

Same issue - I have a machine that was not updated and it still works fine. I also tried 1.7 and all versions are broke on Opensuse Tumbleweed after the system updates.

I did start the process of pulling down the repository and trying to compile it on my broken machine. Running into issues getting the correct libraries to be able to compile. Also my machine is definitely not top of the line for compiling.

lanewei120 commented 8 months ago

@beanotj @joenotjim

sorry for the late reply

how about these images; https://flathub.org/apps/com.bambulab.BambuStudio or https://github.com/bambulab/BambuStudio/releases/download/v01.08.03.89/BambuStudio_linux_fedora_v01.08.03.89-20240109.AppImage or https://github.com/bambulab/BambuStudio/releases/download/v01.08.03.89/BambuStudio_linux_ubuntu_v01.08.03.89-20240109.AppImage

joenotjim commented 8 months ago

Both AppImage files are still broken, same error. The Flatpak works though! I should also mention that this issue appears to be from upstream. I get the same error in OrcaSlicer and Prusa Slicer doesn't work either, but with a different error.

beanotj commented 8 months ago

Same results as joenotjim. Awesome that Flatpak works!

Thanks

On Tue, Jan 16, 2024 at 9:12 AM joenotjim @.***> wrote:

Both AppImage files are still broken, same error. The Flatpak works though! I should also mention that this issue appears to be from upstream. I get the same error in OrcaSlicer and Prusa Slicer doesn't work either, but with a different error.

— Reply to this email directly, view it on GitHub https://github.com/bambulab/BambuStudio/issues/3109#issuecomment-1893944672, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK2IFOY7NF7IQXTWMXPOLDYO2KEFAVCNFSM6AAAAABAVD2RWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJTHE2DINRXGI . You are receiving this because you were mentioned.Message ID: @.***>

lanewei120 commented 8 months ago

@beanotj @joenotjim have you installed webkit2gtk4 or webkit2gtk3 ?

joenotjim commented 8 months ago

webkit2gtk4_0-37

Based on my update history, it looks like I had webkit2gtk4_1 v2.42.1-4.1 when I first tried to run the AppImage. I got an error about a missing library that I did not record, but as a result, I installed libwebkit2gtk-4_0-37, which was at v2.42.2-2.1 and resolved the error.

A week or so later, I ran updates, where the following packages: libwebkit2gtk-4_1-0 webkit2gtk-4_1-injected-bundles libwebkit2gtk-4_0-37 webkit2gtk-4_0-injected-bundles were all updated to v2.42.2-3.1, at which point I started getting the null pointer error. They have subsequently been updated to v2.42.4-1.1, and I don't have an easy way to restore the working 2.42.2-2.1 version.

Thank you.

BambulabRobot commented 2 months ago

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

lanewei120 commented 2 months ago

Hello, @joenotjim still has issues with those app images?

image