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

failed to open on Ubuntu 22.04.2 #1868

Closed
2 tasks done
ryancpu opened this issue May 28, 2023 · 36 comments
Closed
2 tasks done

failed to open on Ubuntu 22.04.2 #1868

ryancpu opened this issue May 28, 2023 · 36 comments
Assignees
Labels
bug Something isn't working

Comments

@ryancpu
Copy link

ryancpu commented May 28, 2023

Bambu Studio Version

Bambu_Studio_linux_ubuntu_v01.06.02.04-20230427094209.AppImage

Where is the application from?

Bambu Lab github releases

OS version

Ubuntu 22.04

Additional system information

No response

Printer

Bambu X1 carbon

How to reproduce

try to run appimage

Actual results

bambu screenshot

Expected results

seg fault

Project file & Debug log uploads

not able to open so so project file

Checklist of files to include

  • Log file
  • Project file
@ryancpu ryancpu added the bug Something isn't working label May 28, 2023
@bambu123
Copy link
Collaborator

Please also provide the core dump file.

@bambu123 bambu123 self-assigned this May 29, 2023
@ryancpu
Copy link
Author

ryancpu commented May 29, 2023

file:///var/lib/systemd/coredump/core.bambustu_main.1000.4ff935a8e40547a3a00bc25d7b1f04a1.88606.1685399079000000.zst

@bambu123
Copy link
Collaborator

file:///var/lib/systemd/coredump/core.bambustu_main.1000.4ff935a8e40547a3a00bc25d7b1f04a1.88606.1685399079000000.zst

Maybe this file, please send it to us zipped.

@ryancpu
Copy link
Author

ryancpu commented May 30, 2023

@bambu123
Copy link
Collaborator

bambu123 commented May 30, 2023

core.bambustu_main.1000.4ff935a8e40547a3a00bc25d7b1f04a1.88606.1685399079000000.zip

Sorry, I can't restore the crash stack from this file.

Could you please help debuging the appimage? To do:

$ gdb Bambu_Studio_linux_ubuntu_v01.06.02.04-20230427094209.AppImage
run

then send the console output back here.

@ryancpu
Copy link
Author

ryancpu commented May 30, 2023

when I execute "$ gdb ./Bambu_Studio_linux_ubuntu_v01.06.02.04-20230427094209.AppImage"

it's probably not much help unless I'm doing it wrong

GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
https://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./Bambu_Studio_linux_ubuntu_v01.06.02.04-20230427094209.AppImage...
(No debugging symbols found in ./Bambu_Studio_linux_ubuntu_v01.06.02.04-20230427094209.AppImage)
(gdb)

@bambu123
Copy link
Collaborator

bambu123 commented May 30, 2023 via email

@ryancpu
Copy link
Author

ryancpu commented May 30, 2023

(gdb) run
Starting program: /home/11111111/3d printing/bambu_official/Bambu_Studio_linux_ubuntu_v01.06.02.04-20230427094209.AppImage
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 118946]
process 118943 is executing new program: /usr/bin/bash
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 118951]
process 118943 is executing new program: /tmp/.mount_Bambu_o9eBoV/bin/bambu-studio
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[2023-05-30 17:24:08.215778] [0x00007fffed499980] [trace] Initializing StaticPrintConfigs
[New Thread 0x7fffec8b1640 (LWP 118961)]
[Thread 0x7fffec8b1640 (LWP 118961) exited]
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1
[New Thread 0x7fffec8b1640 (LWP 118962)]
[New Thread 0x7fffe7fff640 (LWP 118963)]
[Detaching after vfork from child process 118964]
[Detaching after vfork from child process 118966]
[New Thread 0x7fffe77fe640 (LWP 118968)]
[New Thread 0x7fffe6ffd640 (LWP 118969)]
[Thread 0x7fffe77fe640 (LWP 118968) exited]
[Thread 0x7fffe6ffd640 (LWP 118969) exited]
[New Thread 0x7fffe6ffd640 (LWP 118970)]
[New Thread 0x7fffe77fe640 (LWP 118971)]
[Thread 0x7fffe6ffd640 (LWP 118970) exited]
[Thread 0x7fffe77fe640 (LWP 118971) exited]
[New Thread 0x7fffe77fe640 (LWP 118972)]
[New Thread 0x7fffe6ffd640 (LWP 118973)]
[Thread 0x7fffe77fe640 (LWP 118972) exited]
[Thread 0x7fffe6ffd640 (LWP 118973) exited]
[New Thread 0x7fffe6ffd640 (LWP 118974)]
[New Thread 0x7fffe77fe640 (LWP 118975)]
[Thread 0x7fffe6ffd640 (LWP 118974) exited]
[Thread 0x7fffe77fe640 (LWP 118975) exited]
[New Thread 0x7fffe77fe640 (LWP 118976)]
[New Thread 0x7fffe6ffd640 (LWP 118977)]
[Thread 0x7fffe77fe640 (LWP 118976) exited]
[Thread 0x7fffe6ffd640 (LWP 118977) exited]
[New Thread 0x7fffe6ffd640 (LWP 118978)]
[New Thread 0x7fffe77fe640 (LWP 118979)]
[Thread 0x7fffe6ffd640 (LWP 118978) exited]
[Thread 0x7fffe77fe640 (LWP 118979) exited]
[New Thread 0x7fffe77fe640 (LWP 118980)]
[New Thread 0x7fffe6ffd640 (LWP 118981)]
[New Thread 0x7fffe4a2b640 (LWP 118982)]
[Thread 0x7fffe77fe640 (LWP 118980) exited]
[Thread 0x7fffe6ffd640 (LWP 118981) exited]
[New Thread 0x7fffe6ffd640 (LWP 119026)]
[New Thread 0x7fffe77fe640 (LWP 119027)]
[Thread 0x7fffe6ffd640 (LWP 119026) exited]
[Thread 0x7fffe77fe640 (LWP 119027) exited]
[New Thread 0x7fffe77fe640 (LWP 119028)]
[New Thread 0x7fffe6ffd640 (LWP 119029)]
[Thread 0x7fffe77fe640 (LWP 119028) exited]
[Thread 0x7fffe6ffd640 (LWP 119029) exited]
[New Thread 0x7fffe6ffd640 (LWP 119030)]
[New Thread 0x7fffe77fe640 (LWP 119031)]
[Thread 0x7fffe6ffd640 (LWP 119030) exited]
[Thread 0x7fffe77fe640 (LWP 119031) exited]
loading network module at /home/11111111/.config/BambuStudio/plugins/libbambu_networking.so
error, dlerror is /home/1111111/.config/BambuStudio/plugins/libbambu_networking.so: cannot open shared object file: No such file or directory
after dlopen, network_module is (nil)

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:12.969: gtk_window_resize: assertion 'height > 0' failed
[New Thread 0x7fffe77fe640 (LWP 119032)]
[New Thread 0x7fffe6ffd640 (LWP 119033)]
[Thread 0x7fffe77fe640 (LWP 119032) exited]
[Thread 0x7fffe6ffd640 (LWP 119033) exited]
[New Thread 0x7fffe6ffd640 (LWP 119034)]
[New Thread 0x7fffe77fe640 (LWP 119035)]
[Thread 0x7fffe6ffd640 (LWP 119034) exited]
[Thread 0x7fffe77fe640 (LWP 119035) exited]
[New Thread 0x7fffe77fe640 (LWP 119036)]
[New Thread 0x7fffe6ffd640 (LWP 119037)]
[Thread 0x7fffe77fe640 (LWP 119036) exited]
[Thread 0x7fffe6ffd640 (LWP 119037) exited]
[New Thread 0x7fffe6ffd640 (LWP 119038)]
[New Thread 0x7fffe77fe640 (LWP 119039)]
[Thread 0x7fffe6ffd640 (LWP 119038) exited]
[Thread 0x7fffe77fe640 (LWP 119039) exited]
[New Thread 0x7fffe77fe640 (LWP 119040)]
[New Thread 0x7fffe6ffd640 (LWP 119041)]
[Thread 0x7fffe77fe640 (LWP 119040) exited]
[Thread 0x7fffe6ffd640 (LWP 119041) exited]

(bambu-studio:118943): GLib-GObject-WARNING **: 17:24:13.001: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.001: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:118943): GLib-GObject-WARNING **: 17:24:13.002: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.002: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:118943): GLib-GObject-WARNING **: 17:24:13.003: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.004: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:118943): GLib-GObject-WARNING **: 17:24:13.005: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.005: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:118943): GLib-GObject-WARNING **: 17:24:13.011: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.011: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:118943): GLib-GObject-WARNING **: 17:24:13.012: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.012: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
[New Thread 0x7fffe6ffd640 (LWP 119042)]
[New Thread 0x7fffe77fe640 (LWP 119043)]
[New Thread 0x7fffd4a1a640 (LWP 119044)]
[New Thread 0x7fff85ffd640 (LWP 119045)]
[Detaching after vfork from child process 119046]
[Detaching after vfork from child process 119047]
[New Thread 0x7fff857fc640 (LWP 119048)]
[New Thread 0x7fff84ffb640 (LWP 119049)]
[Thread 0x7fff857fc640 (LWP 119048) exited]
[Thread 0x7fff84ffb640 (LWP 119049) exited]

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.065: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.068: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.068: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.069: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.069: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.069: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.069: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.069: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.069: gtk_widget_set_size_request: assertion 'width >= -1' failed
[New Thread 0x7fff84ffb640 (LWP 119058)]
[New Thread 0x7fff857fc640 (LWP 119059)]
[Thread 0x7fff84ffb640 (LWP 119058) exited]
[Thread 0x7fff857fc640 (LWP 119059) exited]
[New Thread 0x7fff857fc640 (LWP 119060)]
[New Thread 0x7fff84ffb640 (LWP 119061)]
[Thread 0x7fff857fc640 (LWP 119060) exited]
[Thread 0x7fff84ffb640 (LWP 119061) exited]

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.082: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.082: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.082: gtk_widget_set_size_request: assertion 'width >= -1' failed
[New Thread 0x7fff84ffb640 (LWP 119063)]
[New Thread 0x7fff857fc640 (LWP 119064)]
[New Thread 0x7fff7cfff640 (LWP 119065)]
[New Thread 0x7fff6f675640 (LWP 119066)]
[New Thread 0x7fff6ee74640 (LWP 119067)]
[New Thread 0x7fff6e673640 (LWP 119068)]
[New Thread 0x7fff6de72640 (LWP 119069)]
[New Thread 0x7fff6d671640 (LWP 119070)]
[New Thread 0x7fff6ce70640 (LWP 119071)]
[New Thread 0x7fff4ffff640 (LWP 119072)]
[New Thread 0x7fff4f7fe640 (LWP 119073)]
[New Thread 0x7fff4effd640 (LWP 119074)]
[New Thread 0x7fff4e7fc640 (LWP 119075)]
[New Thread 0x7fff4dffb640 (LWP 119076)]
[New Thread 0x7fff4d7fa640 (LWP 119077)]
[New Thread 0x7fff4cff9640 (LWP 119078)]
[New Thread 0x7fff37fff640 (LWP 119079)]
[New Thread 0x7fff377fe640 (LWP 119080)]
[New Thread 0x7fff36ffd640 (LWP 119081)]
[New Thread 0x7fff367fc640 (LWP 119082)]

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.301: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.309: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.309: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.309: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:118943): Gtk-CRITICAL **: 17:24:13.309: gtk_widget_set_size_request: assertion 'width >= -1' failed
bambu-studio: malloc.c:2617: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.

Thread 1 "bambustu_main" received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737174411648) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.

(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737174411648) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140737174411648) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140737174411648, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff111d476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff11037f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007ffff117bf4a in __malloc_assert
(assertion=assertion@entry=0x7ffff12b99a8 "(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)", file=file@entry=0x7ffff12b46ac "malloc.c", line=line@entry=2617, function=function@entry=0x7ffff12ba218 <PRETTY_FUNCTION.8> "sysmalloc")
at ./malloc/malloc.c:307
#6 0x00007ffff117e9b7 in sysmalloc (nb=nb@entry=3088, av=av@entry=0x7ffff12f4c80 <main_arena>) at ./malloc/malloc.c:2617
#7 0x00007ffff117f95d in _int_malloc (av=av@entry=0x7ffff12f4c80 <main_arena>, bytes=bytes@entry=3072) at ./malloc/malloc.c:4407
#8 0x00007ffff11801b9 in __GI___libc_malloc (bytes=3072) at ./malloc/malloc.c:3329
#9 0x00005555588b40ac in wxImage::Create(int, int, bool) ()
#10 0x00005555564e3738 in Slic3r::GUI::BitmapCache::insert_raw_rgba(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int, unsigned int, unsigned char const*, bool) ()
#11 0x00005555564e4ccb in Slic3r::GUI::BitmapCache::load_svg(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int, unsigned int, bool, bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, float) ()
#12 0x00005555568de9c1 in create_scaled_bitmap(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, wxWindow*, int, bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool, bool) ()
#13 0x00005555568df554 in ScalableBitmap::ScalableBitmap(wxWindow*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int, bool, bool) ()
#14 0x0000555556828613 in Slic3r::GUI::Tab::add_options_page(wxString const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool) ()
#15 0x0000555556829428 in Slic3r::GUI::TabPrint::build() ()
#16 0x0000555556823228 in Slic3r::GUI::Tab::create_preset_tab() ()
#17 0x00005555566c52a9 in Slic3r::GUI::MainFrame::add_created_tab(Slic3r::GUI::Tab*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()
#18 0x00005555566c53f8 in Slic3r::GUI::MainFrame::create_preset_tabs() ()
#19 0x00005555566d24bd in Slic3r::GUI::MainFrame::init_tabpanel() ()
#20 0x00005555566d37f8 in Slic3r::GUI::MainFrame::MainFrame() ()
#21 0x00005555566934a8 in Slic3r::GUI::GUI_App::on_init_inner() ()
#22 0x000055555669469a in Slic3r::GUI::GUI_App::OnInit() ()
#23 0x0000555558b99617 in wxEntry(int&, wchar_t**) ()
#24 0x000055555665c14b in Slic3r::GUI::GUI_Run(Slic3r::GUI::GUI_InitParams&) ()
#25 0x0000555555e162b7 in Slic3r::CLI::run(int, char**) ()
#26 0x0000555555d71b99 in main ()
(gdb)

@bambu123
Copy link
Collaborator

@ryancpu
Thank you very much! The stack is very clear.
But it shows that the fault is the in the system library or maybe a random fault.
To make it clear, I need you to repeat the above steps.
A second case: remove the ~/.config/BambuStudio directory and try it again.
And compare with the old versions of BambuStudio.

@ryancpu
Copy link
Author

ryancpu commented May 31, 2023

I deleted the .config file and it still crashed. I will delete the config file again and provide a new gdb output

GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
https://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./Bambu_Studio_linux_ubuntu_v01.06.02.04-20230427094209.AppImage...
(No debugging symbols found in ./Bambu_Studio_linux_ubuntu_v01.06.02.04-20230427094209.AppImage)
(gdb) run
Starting program: /home/111111/3d printing/bambu_official/Bambu_Studio_linux_ubuntu_v01.06.02.04-20230427094209.AppImage
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 131540]
process 131537 is executing new program: /usr/bin/bash
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 131545]
process 131537 is executing new program: /tmp/.mount_Bambu_ip9fTO/bin/bambu-studio
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[2023-05-30 21:26:34.582172] [0x00007fffed499980] [trace] Initializing StaticPrintConfigs
[New Thread 0x7fffec8b1640 (LWP 131549)]
[Thread 0x7fffec8b1640 (LWP 131549) exited]
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1
[New Thread 0x7fffec8b1640 (LWP 131550)]
[New Thread 0x7fffe7fff640 (LWP 131551)]
[Detaching after vfork from child process 131552]
[Detaching after vfork from child process 131554]
[New Thread 0x7fffe77fe640 (LWP 131556)]
[New Thread 0x7fffe6ffd640 (LWP 131557)]
[Thread 0x7fffe77fe640 (LWP 131556) exited]
[Thread 0x7fffe6ffd640 (LWP 131557) exited]
[New Thread 0x7fffe6ffd640 (LWP 131558)]
[New Thread 0x7fffe77fe640 (LWP 131559)]
[Thread 0x7fffe6ffd640 (LWP 131558) exited]
[Thread 0x7fffe77fe640 (LWP 131559) exited]
[New Thread 0x7fffe77fe640 (LWP 131560)]
[New Thread 0x7fffe6ffd640 (LWP 131561)]
[Thread 0x7fffe77fe640 (LWP 131560) exited]
[Thread 0x7fffe6ffd640 (LWP 131561) exited]
[New Thread 0x7fffe6ffd640 (LWP 131562)]
[New Thread 0x7fffe77fe640 (LWP 131563)]
[Thread 0x7fffe6ffd640 (LWP 131562) exited]
[Thread 0x7fffe77fe640 (LWP 131563) exited]
[New Thread 0x7fffe77fe640 (LWP 131564)]
[New Thread 0x7fffe6ffd640 (LWP 131565)]
[Thread 0x7fffe77fe640 (LWP 131564) exited]
[Thread 0x7fffe6ffd640 (LWP 131565) exited]
[New Thread 0x7fffe6ffd640 (LWP 131566)]
[New Thread 0x7fffe77fe640 (LWP 131567)]
[Thread 0x7fffe6ffd640 (LWP 131566) exited]
[Thread 0x7fffe77fe640 (LWP 131567) exited]
[New Thread 0x7fffe77fe640 (LWP 131568)]
[New Thread 0x7fffe6ffd640 (LWP 131569)]
[New Thread 0x7fffe4a2b640 (LWP 131570)]
[Thread 0x7fffe4a2b640 (LWP 131570) exited]
[Thread 0x7fffe6ffd640 (LWP 131569) exited]
[New Thread 0x7fffe6ffd640 (LWP 131572)]
[New Thread 0x7fffe4a2b640 (LWP 131573)]
[Thread 0x7fffe6ffd640 (LWP 131572) exited]
[Thread 0x7fffe4a2b640 (LWP 131573) exited]
[New Thread 0x7fffe4a2b640 (LWP 131574)]
[New Thread 0x7fffe6ffd640 (LWP 131575)]
[Thread 0x7fffe4a2b640 (LWP 131574) exited]
[Thread 0x7fffe6ffd640 (LWP 131575) exited]
[New Thread 0x7fffe6ffd640 (LWP 131576)]
[New Thread 0x7fffe4a2b640 (LWP 131577)]
[Thread 0x7fffe6ffd640 (LWP 131576) exited]
[Thread 0x7fffe4a2b640 (LWP 131577) exited]
loading network module at /home/1111111/.config/BambuStudio/plugins/libbambu_networking.so
error, dlerror is /home/1111111/.config/BambuStudio/plugins/libbambu_networking.so: cannot open shared object file: No such file or directory
after dlopen, network_module is (nil)

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.414: gtk_window_resize: assertion 'height > 0' failed
[New Thread 0x7fffe4a2b640 (LWP 131578)]
[New Thread 0x7fffe6ffd640 (LWP 131579)]
[Thread 0x7fffe4a2b640 (LWP 131578) exited]
[Thread 0x7fffe6ffd640 (LWP 131579) exited]
[New Thread 0x7fffe6ffd640 (LWP 131580)]
[New Thread 0x7fffe4a2b640 (LWP 131581)]
[Thread 0x7fffe6ffd640 (LWP 131580) exited]
[Thread 0x7fffe4a2b640 (LWP 131581) exited]
[New Thread 0x7fffe4a2b640 (LWP 131582)]
[New Thread 0x7fffe6ffd640 (LWP 131583)]
[Thread 0x7fffe4a2b640 (LWP 131582) exited]
[Thread 0x7fffe6ffd640 (LWP 131583) exited]
[New Thread 0x7fffe6ffd640 (LWP 131584)]
[New Thread 0x7fffe4a2b640 (LWP 131585)]
[Thread 0x7fffe6ffd640 (LWP 131584) exited]
[Thread 0x7fffe4a2b640 (LWP 131585) exited]
[New Thread 0x7fffe4a2b640 (LWP 131586)]
[New Thread 0x7fffe6ffd640 (LWP 131587)]
[Thread 0x7fffe4a2b640 (LWP 131586) exited]
[Thread 0x7fffe6ffd640 (LWP 131587) exited]

(bambu-studio:131537): GLib-GObject-WARNING **: 21:26:39.446: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.446: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:131537): GLib-GObject-WARNING **: 21:26:39.447: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.447: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:131537): GLib-GObject-WARNING **: 21:26:39.448: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.448: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:131537): GLib-GObject-WARNING **: 21:26:39.450: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.450: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:131537): GLib-GObject-WARNING **: 21:26:39.456: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.456: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:131537): GLib-GObject-WARNING **: 21:26:39.457: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.457: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
[New Thread 0x7fffe6ffd640 (LWP 131588)]
[New Thread 0x7fffe4a2b640 (LWP 131589)]
[New Thread 0x7fffd4a1a640 (LWP 131590)]
[New Thread 0x7fff85ffd640 (LWP 131591)]
[Detaching after vfork from child process 131592]
[Detaching after vfork from child process 131593]
[New Thread 0x7fff857fc640 (LWP 131594)]
[New Thread 0x7fff84ffb640 (LWP 131595)]
[Thread 0x7fff857fc640 (LWP 131594) exited]
[Thread 0x7fff84ffb640 (LWP 131595) exited]

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.509: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.512: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.512: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.512: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.512: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.513: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.513: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.513: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.513: gtk_widget_set_size_request: assertion 'width >= -1' failed
[New Thread 0x7fff84ffb640 (LWP 131604)]
[New Thread 0x7fff857fc640 (LWP 131605)]
[Thread 0x7fff84ffb640 (LWP 131604) exited]
[Thread 0x7fff857fc640 (LWP 131605) exited]
[New Thread 0x7fff857fc640 (LWP 131606)]
[New Thread 0x7fff84ffb640 (LWP 131607)]
[Thread 0x7fff857fc640 (LWP 131606) exited]
[Thread 0x7fff84ffb640 (LWP 131607) exited]

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.525: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.526: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.526: gtk_widget_set_size_request: assertion 'width >= -1' failed
[New Thread 0x7fff84ffb640 (LWP 131609)]
[New Thread 0x7fff857fc640 (LWP 131610)]
[New Thread 0x7fff7cfff640 (LWP 131611)]
[New Thread 0x7fff6b675640 (LWP 131612)]
[New Thread 0x7fff6f675640 (LWP 131613)]
[New Thread 0x7fff6ee74640 (LWP 131614)]
[New Thread 0x7fff6e673640 (LWP 131615)]
[New Thread 0x7fff6de72640 (LWP 131616)]
[New Thread 0x7fff6d671640 (LWP 131617)]
[New Thread 0x7fff6ce70640 (LWP 131618)]
[New Thread 0x7fff6c66f640 (LWP 131619)]
[New Thread 0x7fff6ae74640 (LWP 131620)]
[New Thread 0x7fff6a673640 (LWP 131621)]
[New Thread 0x7fff69e72640 (LWP 131622)]
[New Thread 0x7fff69671640 (LWP 131623)]
[New Thread 0x7fff68e70640 (LWP 131624)]
[New Thread 0x7fff33fff640 (LWP 131625)]
[New Thread 0x7fff337fe640 (LWP 131626)]
[New Thread 0x7fff32ffd640 (LWP 131627)]
[New Thread 0x7fff327fc640 (LWP 131628)]

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.781: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.788: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.788: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.788: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:131537): Gtk-CRITICAL **: 21:26:39.788: gtk_widget_set_size_request: assertion 'width >= -1' failed
free(): invalid pointer

Thread 1 "bambustu_main" received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737174411648) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737174411648) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140737174411648) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140737174411648, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff111d476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff11037f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007ffff11646f6 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff12b6b8c "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#6 0x00007ffff117bd7c in malloc_printerr (str=str@entry=0x7ffff12b4764 "free(): invalid pointer") at ./malloc/malloc.c:5664
#7 0x00007ffff117dac4 in _int_free (av=, p=, have_lock=0) at ./malloc/malloc.c:4439
#8 0x00007ffff11804d3 in __GI___libc_free (mem=) at ./malloc/malloc.c:3391
#9 0x00005555564e4ca3 in Slic3r::GUI::BitmapCache::load_svg(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int, unsigned int, bool, bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, float) ()
#10 0x00005555568de9c1 in create_scaled_bitmap(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, wxWindow*, int, bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool, bool) ()
#11 0x00005555568df554 in ScalableBitmap::ScalableBitmap(wxWindow*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int, bool, bool) ()
#12 0x0000555556828613 in Slic3r::GUI::Tab::add_options_page(wxString const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool) ()
#13 0x0000555556829428 in Slic3r::GUI::TabPrint::build() ()
#14 0x0000555556823228 in Slic3r::GUI::Tab::create_preset_tab() ()
#15 0x00005555566c52a9 in Slic3r::GUI::MainFrame::add_created_tab(Slic3r::GUI::Tab*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()
#16 0x00005555566c53f8 in Slic3r::GUI::MainFrame::create_preset_tabs() ()
#17 0x00005555566d24bd in Slic3r::GUI::MainFrame::init_tabpanel() ()
#18 0x00005555566d37f8 in Slic3r::GUI::MainFrame::MainFrame() ()
#19 0x00005555566934a8 in Slic3r::GUI::GUI_App::on_init_inner() ()
#20 0x000055555669469a in Slic3r::GUI::GUI_App::OnInit() ()
#21 0x0000555558b99617 in wxEntry(int&, wchar_t**) ()
#22 0x000055555665c14b in Slic3r::GUI::GUI_Run(Slic3r::GUI::GUI_InitParams&) ()
#23 0x0000555555e162b7 in Slic3r::CLI::run(int, char**) ()
#24 0x0000555555d71b99 in main ()
(gdb)

@bambu123
Copy link
Collaborator

@ryancpu Thank you again. It seams to be a random fault.

@ghedo
Copy link

ghedo commented May 31, 2023

FWIW, I have this same problem too (program crashes on start inside the load_svg() function).

From the libc error logs (sysmalloc: Assertion '...' failed and free(): invalid pointer) it seems like there could be some kind of memory corruption in that function?

Unfortunately I haven't been able to build BambuStudio with debug information yet to pinpoint the problem more accurately.

@alexivkin
Copy link

I had the same problem on 22.04 which turned out to be a library version mismatch. In my case Bambu Studio wanted libwebkit2gtk-4.0-37 but the system had v4.1
Solved with apt install libwebkit2gtk-4.0-37

@bambu123 It would be great if you can build AppImage the way it's meant to be, i.e. by including all the right dependencies, not expecting them to come from the system.

@ryancpu
Copy link
Author

ryancpu commented Jun 2, 2023

@alexivkin I have v4.1 also. Did you remove 4.1 and install 4.0-37? I tried to apt install libwebkit2gtk-4.0-37 but it still leaves me with v4.1.

I really hope this will solve the issue. Thank you

@bambu123
Copy link
Collaborator

bambu123 commented Jun 5, 2023

I had the same problem on 22.04 which turned out to be a library version mismatch. In my case Bambu Studio wanted libwebkit2gtk-4.0-37 but the system had v4.1 Solved with apt install libwebkit2gtk-4.0-37

@bambu123 It would be great if you can build AppImage the way it's meant to be, i.e. by including all the right dependencies, not expecting them to come from the system.

Thank you. What is the behavior of the Studio without libwebkit2gtk-4.0?

@bambu123
Copy link
Collaborator

bambu123 commented Jun 6, 2023

I had the same problem on 22.04 which turned out to be a library version mismatch. In my case Bambu Studio wanted libwebkit2gtk-4.0-37 but the system had v4.1 Solved with apt install libwebkit2gtk-4.0-37

@bambu123 It would be great if you can build AppImage the way it's meant to be, i.e. by including all the right dependencies, not expecting them to come from the system.

Gtk is a system library and we can't provide a copy to run parallel with the system one.

@bambu123
Copy link
Collaborator

bambu123 commented Jun 6, 2023

@ryancpu
As @alexivkin said. A miss-match library may cause memory corruption. It is better to build the app image by yourself.
Follow the steps here: https://github.com/bambulab/BambuStudio/wiki/Linux-Compile-Guide

@ryancpu
Copy link
Author

ryancpu commented Jun 6, 2023

Thank you, I've tried both the script and manual compile listed on the page and I get this error:

[ 85%] Completed 'dep_wxWidgets'
[ 85%] Built target dep_wxWidgets
make: *** [Makefile:91: all] Error 2

@bambu123
Copy link
Collaborator

bambu123 commented Jun 6, 2023

Thank you, I've tried both the script and manual compile listed on the page and I get this error:

[ 85%] Completed 'dep_wxWidgets' [ 85%] Built target dep_wxWidgets make: *** [Makefile:91: all] Error 2

Input 'make' command, try again and see what's the error.

@ryancpu
Copy link
Author

ryancpu commented Jun 6, 2023

If I input make -j8 I get the same error. I will copy farther up the screen. If I just type 'make' there is a different error I will add below.

make -j8
CMake Error: cmake version 3.22.1
Usage: /usr/bin/cmake -E [arguments...]
Available commands:
capabilities - Report capabilities built into cmake in JSON format
cat ... - concat the files and print them to the standard output
chdir dir cmd [args...] - run command in a given directory
compare_files [--ignore-eol] file1 file2
- check if file1 is same as file2
copy ... destination - copy files to destination (either file or directory)
copy_directory

... destination - copy content of ... directories to 'destination' directory
copy_if_different ... destination - copy files if it has changed
echo [...] - displays arguments as text
echo_append [...] - displays arguments as text but no new line
env [--unset=NAME]... [NAME=VALUE]... COMMAND [ARG]...
- run command in a modified environment
environment - display the current environment
make_directory ... - create parent and directories
md5sum ... - create MD5 checksum of files
sha1sum ... - create SHA1 checksum of files
sha224sum ... - create SHA224 checksum of files
sha256sum ... - create SHA256 checksum of files
sha384sum ... - create SHA384 checksum of files
sha512sum ... - create SHA512 checksum of files
remove [-f] ... - remove the file(s), use -f to force it (deprecated: use rm instead)
remove_directory ... - remove directories and their contents (deprecated: use rm instead)
rename oldname newname - rename a file or directory (on one volume)
rm [-rRf] <file/dir>... - remove files or directories, use -f to force it, r or R to remove directories and their contents recursively
sleep ... - sleep for given number of seconds
tar [cxt][vf][zjJ] file.tar [file/dir1 file/dir2 ...]
- create or extract a tar or zip archive
time command [args...] - run command and display elapsed time
touch ... - touch a .
touch_nocreate ... - touch a but do not create it.
create_symlink old new - create a symbolic link new -> old
create_hardlink old new - create a hard link new -> old
true - do nothing with an exit code of 0
false - do nothing with an exit code of 1

CMake Error: cmake version 3.22.1
Usage: /usr/bin/cmake -E [arguments...]
Available commands:
capabilities - Report capabilities built into cmake in JSON format
cat ... - concat the files and print them to the standard output
chdir dir cmd [args...] - run command in a given directory
compare_files [--ignore-eol] file1 file2
- check if file1 is same as file2
copy ... destination - copy files to destination (either file or directory)
copy_directory

... destination - copy content of ... directories to 'destination' directory
copy_if_different ... destination - copy files if it has changed
echo [...] - displays arguments as text
echo_append [...] - displays arguments as text but no new line
env [--unset=NAME]... [NAME=VALUE]... COMMAND [ARG]...
- run command in a modified environment
environment - display the current environment
make_directory ... - create parent and directories
md5sum ... - create MD5 checksum of files
sha1sum ... - create SHA1 checksum of files
sha224sum ... - create SHA224 checksum of files
sha256sum ... - create SHA256 checksum of files
sha384sum ... - create SHA384 checksum of files
sha512sum ... - create SHA512 checksum of files
remove [-f] ... - remove the file(s), use -f to force it (deprecated: use rm instead)
remove_directory ... - remove directories and their contents (deprecated: use rm instead)
rename oldname newname - rename a file or directory (on one volume)
rm [-rRf] <file/dir>... - remove files or directories, use -f to force it, r or R to remove directories and their contents recursively
sleep ... - sleep for given number of seconds
tar [cxt][vf][zjJ] file.tar [file/dir1 file/dir2 ...]
- create or extract a tar or zip archive
time command [args...] - run command and display elapsed time
touch ... - touch a .
touch_nocreate ... - touch a but do not create it.
create_symlink old new - create a symbolic link new -> old
create_hardlink old new - create a hard link new -> old
true - do nothing with an exit code of 0
false - do nothing with an exit code of 1

[ 85%] Completed 'dep_wxWidgets'
[ 85%] Built target dep_wxWidgets
make: *** [Makefile:91: all] Error 2

'make'

4%] Built target dep_Boost
[ 4%] Performing install step for 'dep_GMP'
Making install in tests
Making install in .
Making install in devel
Making install in mpn
Making install in mpz
Making install in mpq
Making install in mpf
Making install in rand
Making install in misc
Making install in cxx
Making install in mpn
Making install in mpz
Making install in mpq
Making install in mpf
Making install in printf
Making install in scanf
Making install in rand
Making install in cxx
Making install in demos
Making install in calc
Making install in expr
Making install in tune
Making install in doc
/usr/bin/mkdir -p '/home/111111/3d printing/bambu_official/code/BambuStudio_deps/usr/local/share/info'
/usr/bin/install -c -m 644 ./gmp.info ./gmp.info-1 ./gmp.info-2 '/home/111111/3d printing/bambu_official/code/BambuStudio_deps/usr/local/share/info'
install-info --info-dir='/home/111111/3d printing/bambu_official/code/BambuStudio_deps/usr/local/share/info' '/home/1111111/3d printing/bambu_official/code/BambuStudio_deps/usr/local/share/info/gmp.info'
/usr/bin/mkdir -p '/home/1111111/3d printing/bambu_official/code/BambuStudio_deps/usr/local/lib'
/bin/bash ./libtool --mode=install /usr/bin/install -c libgmp.la libgmpxx.la '/home/111111/3d printing/bambu_official/code/BambuStudio_deps/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libgmp.lai /home/111111/3d printing/bambu_official/code/BambuStudio_deps/usr/local/lib/libgmp.la
/usr/bin/install: target 'printing/bambu_official/code/BambuStudio_deps/usr/local/lib/libgmp.la' is not a directory
make[6]: *** [Makefile:848: install-libLTLIBRARIES] Error 1
make[5]: *** [Makefile:1303: install-am] Error 2
make[4]: *** [Makefile:997: install-recursive] Error 1
make[3]: *** [Makefile:1297: install] Error 2
make[2]: *** [CMakeFiles/dep_GMP.dir/build.make:105: dep_GMP-prefix/src/dep_GMP-stamp/dep_GMP-install] Error 2
make[1]: *** [CMakeFiles/Makefile2:452: CMakeFiles/dep_GMP.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

@bambu123
Copy link
Collaborator

bambu123 commented Jun 6, 2023

Try to use the 4th method.
image

@ryancpu
Copy link
Author

ryancpu commented Jun 6, 2023

that method gives me the same error as make -j8

[ 85%] Completed 'dep_wxWidgets'
[ 85%] Built target dep_wxWidgets
make: *** [Makefile:91: all] Error 2

@bambu123
Copy link
Collaborator

bambu123 commented Jun 7, 2023

/usr/bin/install: target 'printing/bambu_official/code/BambuStudio_deps/usr/local/lib/libgmp.la' is not a directory
make[6]: *** [Makefile:848: install-libLTLIBRARIES] Error 1
make[5]: *** [Makefile:1303: install-am] Error 2
make[4]: *** [Makefile:997: install-recursive] Error 1
make[3]: *** [Makefile:1297: install] Error 2
make[2]: *** [CMakeFiles/dep_GMP.dir/build.make:105: dep_GMP-prefix/src/dep_GMP-stamp/dep_GMP-install] Error 2
make[1]: *** [CMakeFiles/Makefile2:452: CMakeFiles/dep_GMP.dir/all] Error 2

Please remove the old build cache to make a refresh build.

@bambu123
Copy link
Collaborator

bambu123 commented Jun 7, 2023

@lanewei120 Please help the build issue on linux.

/usr/bin/install: target 'printing/bambu_official/code/BambuStudio_deps/usr/local/lib/libgmp.la' is not a directory
make[6]: *** [Makefile:848: install-libLTLIBRARIES] Error 1
make[5]: *** [Makefile:1303: install-am] Error 2
make[4]: *** [Makefile:997: install-recursive] Error 1
make[3]: *** [Makefile:1297: install] Error 2
make[2]: *** [CMakeFiles/dep_GMP.dir/build.make:105: dep_GMP-prefix/src/dep_GMP-stamp/dep_GMP-install] Error 2
make[1]: *** [CMakeFiles/Makefile2:452: CMakeFiles/dep_GMP.dir/all] Error 2

@lanewei120
Copy link
Collaborator

ES] Error 1
make[5]: *** [Makefile:1303: install-am] Error 2
make[4]: *** [Makefile:997: install-recursive] Error 1
make[3]: *** [Makefile:1297: install] Error 2

it doesn't include the error reason

ryancpu
could you give the full building commands here?
please use 'make' instead of 'make -j8'
and then paste all the logs into a txt file and upload it here

thanks very much

@ryancpu
Copy link
Author

ryancpu commented Jun 7, 2023

I created a new directory and did a complete new git clone into that directory. for the first time ever ./BuildLinux.sh -dsi completed without errors

however the new appimage does not work I will post the error I see when executing the appimage and below I will post the gdb and bt output

The error I get when executing the new appimage:

[2023-06-06 22:48:28.828545] [0x00007f64f96ae980] [trace] Initializing StaticPrintConfigs
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1
loading network module at /home/1111/.config/BambuStudio/plugins/libbambu_networking.so
error, dlerror is /home/1111/.config/BambuStudio/plugins/libbambu_networking.so: cannot open shared object file: No such file or directory
after dlopen, network_module is (nil)

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.923: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:144405): GLib-GObject-WARNING **: 22:48:31.944: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.944: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:144405): GLib-GObject-WARNING **: 22:48:31.945: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.945: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:144405): GLib-GObject-WARNING **: 22:48:31.946: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.946: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:144405): GLib-GObject-WARNING **: 22:48:31.946: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.946: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:144405): GLib-GObject-WARNING **: 22:48:31.950: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.950: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:144405): GLib-GObject-WARNING **: 22:48:31.951: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.951: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.984: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.986: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.986: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.986: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.986: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.987: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.987: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.987: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.987: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.996: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.997: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:31.997: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:32.096: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:32.102: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:32.102: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:32.102: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144405): Gtk-CRITICAL **: 22:48:32.102: gtk_widget_set_size_request: assertion 'width >= -1' failed
bambu-studio: malloc.c:2617: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Aborted (core dumped)

gdb info

$ gdb BambuStudio_ubu64.AppImage
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
https://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from BambuStudio_ubu64.AppImage...
(No debugging symbols found in BambuStudio_ubu64.AppImage)
(gdb) run
Starting program: /home/11111/bambu/BambuStudio/build/BambuStudio_ubu64.AppImage
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 144836]
process 144833 is executing new program: /usr/bin/bash
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 144841]
process 144833 is executing new program: /tmp/.mount_BambuSBaJWur/bin/bambu-studio
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[2023-06-06 22:54:52.077468] [0x00007fffed499980] [trace] Initializing StaticPrintConfigs
[New Thread 0x7fffec8b2640 (LWP 144845)]
[Thread 0x7fffec8b2640 (LWP 144845) exited]
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1
[New Thread 0x7fffec8b2640 (LWP 144846)]
[New Thread 0x7fffe7fff640 (LWP 144847)]
[Detaching after vfork from child process 144848]
[Detaching after vfork from child process 144850]
[New Thread 0x7fffe77fe640 (LWP 144852)]
[New Thread 0x7fffe6ffd640 (LWP 144853)]
[Thread 0x7fffe77fe640 (LWP 144852) exited]
[Thread 0x7fffe6ffd640 (LWP 144853) exited]
[New Thread 0x7fffe6ffd640 (LWP 144854)]
[New Thread 0x7fffe77fe640 (LWP 144855)]
[Thread 0x7fffe6ffd640 (LWP 144854) exited]
[Thread 0x7fffe77fe640 (LWP 144855) exited]
[New Thread 0x7fffe77fe640 (LWP 144856)]
[New Thread 0x7fffe6ffd640 (LWP 144857)]
[Thread 0x7fffe77fe640 (LWP 144856) exited]
[Thread 0x7fffe6ffd640 (LWP 144857) exited]
[New Thread 0x7fffe6ffd640 (LWP 144858)]
[New Thread 0x7fffe77fe640 (LWP 144859)]
[Thread 0x7fffe6ffd640 (LWP 144858) exited]
[Thread 0x7fffe77fe640 (LWP 144859) exited]
[New Thread 0x7fffe77fe640 (LWP 144860)]
[New Thread 0x7fffe6ffd640 (LWP 144861)]
[Thread 0x7fffe77fe640 (LWP 144860) exited]
[Thread 0x7fffe6ffd640 (LWP 144861) exited]
[New Thread 0x7fffe6ffd640 (LWP 144862)]
[New Thread 0x7fffe77fe640 (LWP 144863)]
[Thread 0x7fffe6ffd640 (LWP 144862) exited]
[Thread 0x7fffe77fe640 (LWP 144863) exited]
[New Thread 0x7fffe77fe640 (LWP 144864)]
[New Thread 0x7fffe6ffd640 (LWP 144865)]
[New Thread 0x7fffe4a2b640 (LWP 144866)]
[Thread 0x7fffe4a2b640 (LWP 144866) exited]
[Thread 0x7fffe6ffd640 (LWP 144865) exited]
[New Thread 0x7fffe6ffd640 (LWP 144868)]
[New Thread 0x7fffe4a2b640 (LWP 144869)]
[Thread 0x7fffe6ffd640 (LWP 144868) exited]
[Thread 0x7fffe4a2b640 (LWP 144869) exited]
[New Thread 0x7fffe4a2b640 (LWP 144870)]
[New Thread 0x7fffe6ffd640 (LWP 144871)]
[Thread 0x7fffe4a2b640 (LWP 144870) exited]
[Thread 0x7fffe6ffd640 (LWP 144871) exited]
[New Thread 0x7fffe6ffd640 (LWP 144872)]
[New Thread 0x7fffe4a2b640 (LWP 144873)]
[Thread 0x7fffe6ffd640 (LWP 144872) exited]
[Thread 0x7fffe4a2b640 (LWP 144873) exited]
loading network module at /home/rwilson/.config/BambuStudio/plugins/libbambu_networking.so
error, dlerror is /home/11111/.config/BambuStudio/plugins/libbambu_networking.so: cannot open shared object file: No such file or directory
after dlopen, network_module is (nil)

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.562: gtk_window_resize: assertion 'height > 0' failed
[New Thread 0x7fffe4a2b640 (LWP 144874)]
[New Thread 0x7fffe6ffd640 (LWP 144875)]
[Thread 0x7fffe4a2b640 (LWP 144874) exited]
[Thread 0x7fffe6ffd640 (LWP 144875) exited]
[New Thread 0x7fffe6ffd640 (LWP 144876)]
[New Thread 0x7fffe4a2b640 (LWP 144877)]
[Thread 0x7fffe6ffd640 (LWP 144876) exited]
[Thread 0x7fffe4a2b640 (LWP 144877) exited]
[New Thread 0x7fffe4a2b640 (LWP 144878)]
[New Thread 0x7fffe6ffd640 (LWP 144879)]
[Thread 0x7fffe4a2b640 (LWP 144878) exited]
[New Thread 0x7fffe4a2b640 (LWP 144880)]
[Thread 0x7fffe6ffd640 (LWP 144879) exited]
[New Thread 0x7fffe6ffd640 (LWP 144881)]
[Thread 0x7fffe4a2b640 (LWP 144880) exited]
[Thread 0x7fffe6ffd640 (LWP 144881) exited]
[New Thread 0x7fffe6ffd640 (LWP 144882)]
[New Thread 0x7fffe4a2b640 (LWP 144883)]
[Thread 0x7fffe6ffd640 (LWP 144882) exited]
[Thread 0x7fffe4a2b640 (LWP 144883) exited]

(bambu-studio:144833): GLib-GObject-WARNING **: 22:54:56.587: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.587: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:144833): GLib-GObject-WARNING **: 22:54:56.587: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.587: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:144833): GLib-GObject-WARNING **: 22:54:56.588: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.588: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:144833): GLib-GObject-WARNING **: 22:54:56.589: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.589: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:144833): GLib-GObject-WARNING **: 22:54:56.593: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.593: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:144833): GLib-GObject-WARNING **: 22:54:56.593: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.593: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed
[New Thread 0x7fffe4a2b640 (LWP 144884)]
[New Thread 0x7fffe6ffd640 (LWP 144885)]
[New Thread 0x7fffd4a1a640 (LWP 144886)]
[New Thread 0x7fff85ffd640 (LWP 144887)]
[Detaching after vfork from child process 144888]
[Detaching after vfork from child process 144889]
[New Thread 0x7fff857fc640 (LWP 144890)]
[New Thread 0x7fff84ffb640 (LWP 144891)]
[Thread 0x7fff857fc640 (LWP 144890) exited]
[Thread 0x7fff84ffb640 (LWP 144891) exited]

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.639: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.642: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.642: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.642: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.642: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.642: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.642: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.642: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.642: gtk_widget_set_size_request: assertion 'width >= -1' failed
[New Thread 0x7fff84ffb640 (LWP 144900)]
[New Thread 0x7fff857fc640 (LWP 144901)]
[Thread 0x7fff84ffb640 (LWP 144900) exited]
[Thread 0x7fff857fc640 (LWP 144901) exited]
[New Thread 0x7fff857fc640 (LWP 144902)]
[New Thread 0x7fff84ffb640 (LWP 144903)]
[Thread 0x7fff857fc640 (LWP 144902) exited]
[Thread 0x7fff84ffb640 (LWP 144903) exited]

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.653: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.653: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.653: gtk_widget_set_size_request: assertion 'width >= -1' failed
[New Thread 0x7fff84ffb640 (LWP 144905)]
[New Thread 0x7fff857fc640 (LWP 144906)]
[New Thread 0x7fff7cfff640 (LWP 144907)]
[New Thread 0x7fff6f675640 (LWP 144908)]
[New Thread 0x7fff6ee74640 (LWP 144909)]
[New Thread 0x7fff6e673640 (LWP 144910)]
[New Thread 0x7fff6de72640 (LWP 144911)]
[New Thread 0x7fff6d671640 (LWP 144912)]
[New Thread 0x7fff6ce70640 (LWP 144913)]
[New Thread 0x7fff57fff640 (LWP 144914)]
[New Thread 0x7fff577fe640 (LWP 144915)]
[New Thread 0x7fff56ffd640 (LWP 144916)]
[New Thread 0x7fff567fc640 (LWP 144917)]
[New Thread 0x7fff55ffb640 (LWP 144918)]
[New Thread 0x7fff557fa640 (LWP 144919)]
[New Thread 0x7fff54ff9640 (LWP 144920)]
[New Thread 0x7fff3bfff640 (LWP 144921)]
[New Thread 0x7fff3b7fe640 (LWP 144922)]
[New Thread 0x7fff3affd640 (LWP 144923)]
[New Thread 0x7fff3a7fc640 (LWP 144924)]

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.868: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.873: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.873: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.873: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:144833): Gtk-CRITICAL **: 22:54:56.873: gtk_widget_set_size_request: assertion 'width >= -1' failed
bambu-studio: malloc.c:2617: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.

Thread 1 "bambustu_main" received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737174411648) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737174411648) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140737174411648) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140737174411648, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff111d476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff11037f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007ffff117bf4a in __malloc_assert
(assertion=assertion@entry=0x7ffff12b99a8 "(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)", file=file@entry=0x7ffff12b46ac "malloc.c", line=line@entry=2617, function=function@entry=0x7ffff12ba218 <PRETTY_FUNCTION.8> "sysmalloc")
at ./malloc/malloc.c:307
#6 0x00007ffff117e9b7 in sysmalloc (nb=nb@entry=3088, av=av@entry=0x7ffff12f4c80 <main_arena>) at ./malloc/malloc.c:2617
#7 0x00007ffff117f95d in _int_malloc (av=av@entry=0x7ffff12f4c80 <main_arena>, bytes=bytes@entry=3072) at ./malloc/malloc.c:4407
#8 0x00007ffff11801b9 in __GI___libc_malloc (bytes=3072) at ./malloc/malloc.c:3329
#9 0x00005555588af76c in wxImage::Create(int, int, bool) ()
#10 0x00005555564e0008 in Slic3r::GUI::BitmapCache::insert_raw_rgba(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int, unsigned int, unsigned char const*, bool) ()
#11 0x00005555564e159b in Slic3r::GUI::BitmapCache::load_svg(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, unsigned int, unsigned int, bool, bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, float) ()
#12 0x00005555568db041 in create_scaled_bitmap(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, wxWindow*, int, bool, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool, bool) ()
#13 0x00005555568dbbd4 in ScalableBitmap::ScalableBitmap(wxWindow*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, int, bool, bool) ()
#14 0x0000555556824c93 in Slic3r::GUI::Tab::add_options_page(wxString const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool) ()
#15 0x0000555556825aa8 in Slic3r::GUI::TabPrint::build() ()
#16 0x000055555681f8a8 in Slic3r::GUI::Tab::create_preset_tab() ()
#17 0x00005555566c1a09 in Slic3r::GUI::MainFrame::add_created_tab(Slic3r::GUI::Tab*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) ()
#18 0x00005555566c1b58 in Slic3r::GUI::MainFrame::create_preset_tabs() ()
#19 0x00005555566cec7d in Slic3r::GUI::MainFrame::init_tabpanel() ()
#20 0x00005555566cffb8 in Slic3r::GUI::MainFrame::MainFrame() ()
#21 0x000055555668fc08 in Slic3r::GUI::GUI_App::on_init_inner() ()
#22 0x0000555556690dfa in Slic3r::GUI::GUI_App::OnInit() ()
#23 0x0000555558b94cd7 in wxEntry(int&, wchar_t**) ()
#24 0x00005555566588ab in Slic3r::GUI::GUI_Run(Slic3r::GUI::GUI_InitParams&) ()
#25 0x0000555555e155e7 in Slic3r::CLI::run(int, char**) ()
#26 0x0000555555d70f09 in main ()
(gdb)

@bambu123
Copy link
Collaborator

bambu123 commented Jun 7, 2023

Same error as the public app image. The memory is corrupt.

@bambu123
Copy link
Collaborator

bambu123 commented Jun 7, 2023

@ryancpu There may be library misuse. use the command 'info sharedlibrary' in gdb to show all loaded libraries.

@ryancpu
Copy link
Author

ryancpu commented Jun 8, 2023

shared library output.txt

easier to read format

@bambu123
Copy link
Collaborator

bambu123 commented Jun 8, 2023

shared library output.txt

easier to read format

Thank you.

@bambu123
Copy link
Collaborator

bambu123 commented Jun 9, 2023

shared library output.txt
easier to read format

Thank you.

Please help debugging with valgrind.

  • Install valgrind with apt-get in ubuntu.
    $ sudo apt-get install valgrind
  • execute BambuStudio in valgrind
    $ valgrind BambuStudio_ubu64.AppImage

@ryancpu
Copy link
Author

ryancpu commented Jun 10, 2023

==171745== Memcheck, a memory error detector
==171745== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==171745== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==171745== Command: ./BambuStudio_ubu64.AppImage
==171745==
==171746==
==171746== HEAP SUMMARY:
==171746== in use at exit: 3,943 bytes in 23 blocks
==171746== total heap usage: 64 allocs, 41 frees, 44,840 bytes allocated
==171746==
==171746== LEAK SUMMARY:
==171746== definitely lost: 0 bytes in 0 blocks
==171746== indirectly lost: 0 bytes in 0 blocks
==171746== possibly lost: 0 bytes in 0 blocks
==171746== still reachable: 3,943 bytes in 23 blocks
==171746== suppressed: 0 bytes in 0 blocks
==171746== Rerun with --leak-check=full to see details of leaked memory
==171746==
==171746== For lists of detected and suppressed errors, rerun with: -s
==171746== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
[2023-06-09 21:52:38.192639] [0x00007f29349d3980] [trace] Initializing StaticPrintConfigs
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1
loading network module at /home/111111/.config/BambuStudio/plugins/libbambu_networking.so
error, dlerror is /home/11111/.config/BambuStudio/plugins/libbambu_networking.so: cannot open shared object file: No such file or directory
after dlopen, network_module is (nil)

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.231: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:171745): GLib-GObject-WARNING **: 21:52:44.274: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.274: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:171745): GLib-GObject-WARNING **: 21:52:44.276: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.276: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:171745): GLib-GObject-WARNING **: 21:52:44.279: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.279: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:171745): GLib-GObject-WARNING **: 21:52:44.281: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.281: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:171745): GLib-GObject-WARNING **: 21:52:44.291: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.291: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:171745): GLib-GObject-WARNING **: 21:52:44.293: invalid cast from 'wxPizza' to 'GtkCellLayout'

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.293: gtk_cell_layout_get_cells: assertion 'GTK_IS_CELL_LAYOUT (cell_layout)' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.396: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.405: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.405: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.406: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.406: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.407: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.407: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.407: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.407: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.429: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.431: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.431: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.647: gtk_window_resize: assertion 'height > 0' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.672: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.672: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.672: gtk_widget_set_size_request: assertion 'width >= -1' failed

(bambu-studio:171745): Gtk-CRITICAL **: 21:52:44.672: gtk_widget_set_size_request: assertion 'width >= -1' failed
free(): invalid pointer
Aborted (core dumped)
me:~/bambu/BambuStudio/build$ ==171749==
==171749== HEAP SUMMARY:
==171749== in use at exit: 337 bytes in 2 blocks
==171749== total heap usage: 6,170 allocs, 6,168 frees, 163,706,692 bytes allocated
==171749==
==171749== LEAK SUMMARY:
==171749== definitely lost: 65 bytes in 1 blocks
==171749== indirectly lost: 0 bytes in 0 blocks
==171749== possibly lost: 272 bytes in 1 blocks
==171749== still reachable: 0 bytes in 0 blocks
==171749== suppressed: 0 bytes in 0 blocks
==171749== Rerun with --leak-check=full to see details of leaked memory
==171749==
==171749== For lists of detected and suppressed errors, rerun with: -s
==171749== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

@ryancpu
Copy link
Author

ryancpu commented Jun 21, 2023

Any update on this?

@bambu123
Copy link
Collaborator

Any update on this?

Not yet.

@bambu123
Copy link
Collaborator

bambu123 commented Jul 3, 2023

@ryancpu We found it related to the X11 display scale. Set scale to 200% will cause this issue. Is that correct?

@bambu123
Copy link
Collaborator

Close as fixed in the 1.7 beta version.

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

No branches or pull requests

5 participants