Package Details: bambustudio-git 01.04.00.17.35.ge32792c3-1

Git Clone URL: https://aur.archlinux.org/bambustudio-git.git (read-only, click to copy)
Package Base: bambustudio-git
Description: PC Software for BambuLab's 3D printers
Upstream URL: https://github.com/bambulab/BambuStudio
Keywords: 3d-printing bambulab bambustudio prusaslicer slic3r slicer
Licenses: AGPLv3
Conflicts: BambuStudio
Provides: BambuStudio
Submitter: ajacocks
Maintainer: ajacocks
Last Packager: ajacocks
Votes: 2
Popularity: 0.24
First Submitted: 2022-10-14 17:55 (UTC)
Last Updated: 2022-12-23 16:49 (UTC)

Latest Comments

ajacocks commented on 2023-02-19 19:24 (UTC)

Thanks for the research. I’ve spoken with the Bambu folks, and they say that the current main branch and production release are known to be broken.

hak8or commented on 2023-02-19 17:58 (UTC)

Sadly looks like both this and the "bambustudio" AUR package suffer from the same problem for me. On a clean install (meaning ~/.config/BambuStudio was deleted), the software does start, but after logging in and letting it install the network plugin, it will fail with the following stackdump according to gdb;

Thread 1 "bambustu_main" received signal SIGSEGV, Segmentation fault.
0x00007ffff1aaee0e in free () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff1aaee0e in free () at /usr/lib/libc.so.6
#1  0x00007fffe3f73388 in ERR_clear_error () at /usr/lib/libcrypto.so.3
#2  0x00007ffd9d2a126f in ossl_connect_step2 () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#3  0x00007ffd9d2a5efc in ossl_connect_common () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#4  0x00007ffd9d27e831 in Curl_ssl_connect_nonblocking () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#5  0x00007ffd9d295674 in Curl_http_connect () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#6  0x00007ffd9d263403 in multi_runsingle () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#7  0x00007ffd9d26472e in curl_multi_perform () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#8  0x00007ffd9d25517b in curl_easy_perform () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#9  0x00007ffd9d16e372 in BBL::Http::priv::http_perform() () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#10 0x00007ffd9d1ca558 in BBL::AccountManager::get_user_info(int&, unsigned int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#11 0x00007ffd9d209e55 in BBL::BambuNetworkAgent::get_user_info(int*) ()
    at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#12 0x00007ffd9d210767 in bambu_network_get_user_info () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#13 0x00005555562090b6 in  ()
#14 0x00005555575a53af in  ()
#15 0x00005555575b0091 in  ()
#16 0x00005555575c2b1b in  ()
#17 0x00005555575c2c11 in  ()
#18 0x0000555557579c04 in  ()
#19 0x00005555574cf998 in  ()
#20 0x00007ffff6fb582b in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#21 0x00007ffff700ccc9 in  () at /usr/lib/libglib-2.0.so.0

Trying again via closing the tool and starting it back up gives this;

Thread 83 "bambustu_main" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffdbcff96c0 (LWP 197560)]
0x00007ffff1aaee0e in free () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff1aaee0e in free () at /usr/lib/libc.so.6
#1  0x00007fffe3f73388 in ERR_clear_error () at /usr/lib/libcrypto.so.3
#2  0x00007fffd2223dc6 in SSLSocket_close () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#3  0x00007fffd221bb09 in MQTTAsync_closeOnly () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#4  0x00007fffd221dfd0 in nextOrClose () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#5  0x00007fffd221ed0d in MQTTAsync_receiveThread () at /home/hak8or/.config/BambuStudio/plugins/libbambu_networking.so
#6  0x00007ffff1a9ebb5 in  () at /usr/lib/libc.so.6
#7  0x00007ffff1b20d90 in  () at /usr/lib/libc.so.6

Looking around on github, I see this was noticed and seemingly acted on (https://github.com/bambulab/BambuStudio/issues/760), but sadly many unrelated bug reports/discussions happened in the thread so it's very hard to follow. I think the attempted fix is present on the 1.4.2 branch, which the bambustudio AUR package is not on (it's on a tag further back), but I did try with a pkg-build based off these and got no luck.

Thankfully I do see quite some activity by BambuLabs on the master branch to get the github CI building for linux, which is great, but since this issue persists in both master and the 1.4.2 branches, I assume it will remain unfixed for a while. The appimages I see, while do not crash, sadly are extremely unperformant (it's a slideshow) on Linux (for me, on a 1070 GTX and 2700x), to the point I can't do anything in the slicer besides print.

eris.illustrious commented on 2022-12-23 20:28 (UTC) (edited on 2022-12-23 20:31 (UTC) by eris.illustrious)

I seem to be running into an issue with finding tbb. I have tbb installed, and have also tried installing intel-oneapi-tbb, as well as intel-oneapi-basekit, and neither of them seem to have fixed it. I also attempted to set my TBBROOT env var and again, no help. This doesn't happen with the bambustudio non-git package, however i get the crash with network features which i assume will be fixed here before it's fixed in the base package

CMake Error at cmake/modules/FindTBB.cmake.in:198 (file):
  file failed to open for reading (No such file or directory):

    /opt/intel/oneapi/tbb/latest/include/tbb/tbb_stddef.h
Call Stack (most recent call first):
  cmake/modules/FindTBB.cmake:29 (include)
  CMakeLists.txt:397 (find_package)


CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  TBB library cannot be found.  Consider set TBBROOT environment variable.
  (missing: TBB_LIBRARIES) (found version ".")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindTBB.cmake.in:286 (find_package_handle_standard_args)
  cmake/modules/FindTBB.cmake:29 (include)
  CMakeLists.txt:397 (find_package)

Without TBBROOT set, it correctly looks in /usr/include/tbb, which exists for me, but again, does not include the tbb_stddef.h file.

LSaldyt commented on 2022-12-17 21:30 (UTC) (edited on 2022-12-25 06:58 (UTC) by LSaldyt)

I resolved my segmentation fault by removing ~/.config/BambuStudio, which is automatically recreated. I recommend backing it up and copying in individual files. I think that the language or network could be to blame, but that is just a guess.

While this enables getting to GUI, it then crashes after installing the network manager tool.

Edit: instead of removing your entire config (including profiles), you can remove just the network plugin, which is what causes the segfault. It will safely reinstall and bambu studio will boot:

rm -rf log/ plugins/libbambu_networking.so

ajacocks commented on 2022-11-30 02:44 (UTC)

Is this still happening kekkom? I can't reproduce this problem.

kekkom commented on 2022-11-03 18:38 (UTC)

after a successful compilation the app worked perfectly but after a reboot. I can only see the ssl window and the app crashes just after. after running in the command line this is the output

[2022-11-03 19:08:57.028025] [0x00007f2c0144be80] [trace]   Initializing StaticPrintConfigs
/usr/bin/bambu-studio: line 5: 153929 Segmentation fault      (core dumped) $0-bin

tried compiling multiple times with no change. It works on my laptop but not on my main computer. (arch fully updated + kde)

ajacocks commented on 2022-10-26 00:18 (UTC)

The fact that you are getting segfaults on compilation isn't a good thing. You can take a look at this, to try to figure out why you're getting those faults:

https://gcc.gnu.org/bugs/segfault.html

SR-G commented on 2022-10-25 23:58 (UTC) (edited on 2022-10-25 23:59 (UTC) by SR-G)

Ok so another error (still don't know what to do...) : compilation is locally failing (up-to-date archlinux) :(

error: patch failed: src/osx/cocoa/settings.mm:224
error: src/osx/cocoa/settings.mm: patch does not apply
make[2]: *** [CMakeFiles/dep_wxWidgets.dir/build.make:117: dep_wxWidgets-prefix/src/dep_wxWidgets-stamp/dep_wxWidgets-patch] Error 1
make[1]: *** [CMakeFiles/Makefile2:666: CMakeFiles/dep_wxWidgets.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: bambustudio-git

I've spotted at least these segmentation fault way before that during the build...

during RTL pass: dse1
In file included from /home/users/sergio/.cache/yay/bambustudio-git/src/BambuStudio/deps/build/dep_OpenVDB-prefix/src/dep_OpenVDB/openvdb/Grid.h:39,
                 from /home/users/sergio/.cache/yay/bambustudio-git/src/BambuStudio/deps/build/dep_OpenVDB-prefix/src/dep_OpenVDB/openvdb/openvdb.h:39,
                 from /home/users/sergio/.cache/yay/bambustudio-git/src/BambuStudio/deps/build/dep_OpenVDB-prefix/src/dep_OpenVDB/openvdb/openvdb.cc:31:
/home/users/sergio/.cache/yay/bambustudio-git/src/BambuStudio/deps/build/dep_OpenVDB-prefix/src/dep_OpenVDB/openvdb/tree/Tree.h: In member function ‘void openvdb::v6_2::tree::Tree<_RootNodeType>::clearAllAccessors() [with _RootNodeType = openvdb::v6_2::tree::RootNode<openvdb::v6_2::tree::InternalNode<openvdb::v6_2::tree::InternalNode<openvdb::v6_2::tree::LeafNode<openvdb::v6_2::math::Vec3<int>, 3>, 4>, 5> >]’:
/home/users/sergio/.cache/yay/bambustudio-git/src/BambuStudio/deps/build/dep_OpenVDB-prefix/src/dep_OpenVDB/openvdb/tree/Tree.h:1560:1: internal compiler error: Segmentation fault
 1560 | }
      | ^
during RTL pass: dse2
In file included from /home/users/sergio/.cache/yay/bambustudio-git/src/BambuStudio/deps/build/dep_OpenVDB-prefix/src/dep_OpenVDB/openvdb/points/PointDataGrid.h:43:
/home/users/sergio/.cache/yay/bambustudio-git/src/BambuStudio/deps/build/dep_OpenVDB-prefix/src/dep_OpenVDB/openvdb/../openvdb/Grid.h: In member function ‘void openvdb::v6_2::Grid< <template-parameter-1-1> >::writeBuffers(std::ostream&) const [with _TreeType = openvdb::v6_2::tree::Tree<openvdb::v6_2::tree::RootNode<openvdb::v6_2::tree::InternalNode<openvdb::v6_2::tree::InternalNode<openvdb::v6_2::points::PointDataLeafNode<openvdb::v6_2::PointIndex<unsigned int, 1>, 3>, 4>, 5> > >]’:
/home/users/sergio/.cache/yay/bambustudio-git/src/BambuStudio/deps/build/dep_OpenVDB-prefix/src/dep_OpenVDB/openvdb/../openvdb/Grid.h:1676:1: internal compiler error: Segmentation fault
 1676 | }
      | ^
0x19eab38 internal_error(char const*, ...)

Just in case / for reference, my kernel is :

Linux moon 6.0.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 15 Oct 2022 14:00:49 +0000 x86_64 GNU/Linux

SR-G commented on 2022-10-25 23:47 (UTC) (edited on 2022-10-25 23:50 (UTC) by SR-G)

Hello. Thanks for this packaging. Sadly it doesn't work for me and i have no idea how to handle this issue : "harmonyos-sans" package is missing...

yay -S bambustudio-git 
 -> Could not find all required packages:
    harmonyos-sans (Wanted by: bambustudio-git)

edit : ok the problem is just about the fact that the dependency has another name - harmony-sans-git, hence why it's not automatically retrieved by yay