OpenSCAD as installed by pkg dumps core on start when running on FreeBSD 14.2. I was running on FreeBSD 14.1 without issue, but after the update to openscad-2024.10.11_6 it always dumps core when started without options. See below. When started with -v it runs normally, but of course terminates. When started with --info it dumps core. See below. After reviewing #286074 which looks very similar, I updated to openscad-devel-2025.02.08_1 and installed Qt6, but the behaviour is identical. neilt@toad:~ % uname -a FreeBSD toad 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64 neilt@toad:~ % openscad -v OpenSCAD version 2025.04.14 neilt@toad:~ % openscad Segmentation fault (core dumped) neilt@toad:~ % lldb --core ./openscad.core openscad (lldb) target create "openscad" --core "./openscad.core" Core file '/home/neilt/openscad.core' (x86_64) was loaded. (lldb) target create "openscad" --core "./openscad.core" Core file '/home/neilt/openscad.core' (x86_64) was loaded. (lldb) bt * thread #1, name = 'openscad', stop reason = signal SIGSEGV * frame #0: 0x0000000000bcfab1 openscad`mi_free_generic(mi_segment_s const*, bool, void*) + 65 frame #1: 0x000000089edb9da8 libLLVM.so.19.1`___lldb_unnamed_symbol54428 + 360 frame #2: 0x000000089edb948e libLLVM.so.19.1`llvm::PassRegistry::registerPass(llvm::PassInfo const&, bool) + 78 frame #3: 0x00000008a221276e libLLVM.so.19.1`___lldb_unnamed_symbol137856 + 126 frame #4: 0x0000000830936129 libc++.so.1`std::__1::__call_once(flag=0x00000008a26a5de0, arg=0x000000082102efa8, func=(libLLVM.so.19.1`___lldb_unnamed_symbol53753)) at call_once.cpp:57:5 frame #5: 0x00000008a22126da libLLVM.so.19.1`llvm::initializeScopInlinerPass(llvm::PassRegistry&) + 90 frame #6: 0x00000008a2122cae libLLVM.so.19.1`polly::initializePollyPasses(llvm::PassRegistry&) + 174 frame #7: 0x00000008a2137925 libLLVM.so.19.1`___lldb_unnamed_symbol136560 + 3893 frame #8: 0x00003d5313f581fd ld-elf.so.1`objlist_call_init(list=0x000000082102fa58, lockstate=0x000000082102f9e0) at rtld.c:3125:7 frame #9: 0x00003d5313f5c693 ld-elf.so.1`dlopen_object(name="/usr/local/lib/dri/iris_dri.so", fd=-1, refobj=<unavailable>, lo_flags=<unavailable>, mode=258, lockstate=0x000000082102f9e0) at rtld.c:3871:2 frame #10: 0x00003d5313f591f3 ld-elf.so.1`rtld_dlopen(name="/usr/local/lib/dri/iris_dri.so", fd=-1, mode=<unavailable>) at rtld.c:3733:13 frame #11: 0x000000088e96fb1d libGLX_mesa.so.0`___lldb_unnamed_symbol2867 + 381 frame #12: 0x000000088e96fc3f libGLX_mesa.so.0`___lldb_unnamed_symbol2868 + 63 frame #13: 0x000000088e93f836 libGLX_mesa.so.0`___lldb_unnamed_symbol2392 + 54 frame #14: 0x000000088e9551b5 libGLX_mesa.so.0`___lldb_unnamed_symbol2748 + 277 frame #15: 0x000000088e946b87 libGLX_mesa.so.0`___lldb_unnamed_symbol2531 + 151 frame #16: 0x000000088e946736 libGLX_mesa.so.0`___lldb_unnamed_symbol2526 + 790 frame #17: 0x000000088e943fb9 libGLX_mesa.so.0`___lldb_unnamed_symbol2486 + 25 frame #18: 0x000000088e943df5 libGLX_mesa.so.0`___lldb_unnamed_symbol2485 + 53 frame #19: 0x00000008266565d9 libGLX.so.0`glXChooseFBConfig + 57 frame #20: 0x000000088be81919 libqxcb-glx-integration.so`___lldb_unnamed_symbol546 + 281 frame #21: 0x000000088be7dfe0 libqxcb-glx-integration.so`___lldb_unnamed_symbol509 + 192 frame #22: 0x000000088be7d78f libqxcb-glx-integration.so`___lldb_unnamed_symbol492 + 143 frame #23: 0x00000008320ca0ea libQt5Gui.so.5`QOpenGLContext::create() + 74 frame #24: 0x000000086a2dd4ad KDEPlasmaPlatformTheme5.so`___lldb_unnamed_symbol2317 + 317 frame #25: 0x000000083782b45a libQt5Core.so.5`QCoreApplicationPrivate::init() + 1610 frame #26: 0x00000008320791ea libQt5Gui.so.5`QGuiApplicationPrivate::init() + 42 frame #27: 0x0000000833e94c2e libQt5Widgets.so.5`QApplicationPrivate::init() + 14 frame #28: 0x0000000000b3f8e4 openscad`OpenSCADApp::OpenSCADApp(int&, char**) + 20 frame #29: 0x0000000000ae2ea4 openscad`gui(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>>&, std::__1::__fs::filesystem::path const&, int, char**) + 68 frame #30: 0x000000000079c66f openscad`main + 19327 frame #31: 0x0000000832d59c3a libc.so.7`__libc_start1(argc=1, argv=0x0000000821033ad0, env=0x0000000821033ae0, cleanup=<unavailable>, mainX=(openscad`main)) at libc_start1.c:157:7 frame #32: 0x000000000050bc50 openscad`_start at crt1_s.S:83 (lldb) q neilt@toad:~ % openscad --info QObject::startTimer: Timers can only be used with threads started with QThread OpenSCAD Version: 2025.04.14 System information: FreeBSD 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64 FreeBSD 14.2-RELEASE-p3 12 CPUs 31.72 GB RAM User Agent: OpenSCAD/2025.04.14 (FreeBSD amd64; FreeBSD 14.2-RELEASE-p3) Compiler: Clang "18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)" 64bit MinGW build: No Debug build: No Boost version: 1_87 Eigen version: 3.4.0 CGAL version, kernels: 5.5.1, Cartesian<Gmpq>, Extended_cartesian<Gmpq>, Epeck OpenCSG version: OpenCSG 1.6.0 Clipper2 version: 1.5.2 Manifold version: 3.0.1 Qt version: 5.15.16 QScintilla version: 2.14.1 InputDrivers: GLib version: 2.80.5 lodepng version: 20230410 libzip version: 1.11.2 fontconfig version: 2.15.0 freetype version: 2.13.3 harfbuzz version: 10.3.0 cairo version: 1.18.2 lib3mf version: (not enabled) Application Path: /usr/local/bin Documents Path: /home/neilt/.local/share User Documents Path: /home/neilt/Documents Resource Path: /usr/local/share/openscad User Library Path: /home/neilt/.local/share/OpenSCAD/libraries User Config Path: /home/neilt/.config/OpenSCAD Backup Path: /home/neilt/.local/share/OpenSCAD/backups OPENSCADPATH: <not set> OpenSCAD library path: /home/neilt/.local/share/OpenSCAD/libraries /usr/local/share/openscad/libraries OPENSCAD_FONT_PATH: <not set> OpenSCAD font path: /home/neilt/.local/share/fonts /usr/local/share/fonts /usr/share/fonts /home/neilt/.fonts /usr/X11/lib/X11/fonts /System/Library/Fonts /Library/Fonts /home/neilt/Library/Fonts /usr/local/share/fonts/100dpi /usr/local/share/fonts/75dpi /usr/local/share/fonts/Caladea /usr/local/share/fonts/Carlito /usr/local/share/fonts/Droid /usr/local/share/fonts/GentiumBasic /usr/local/share/fonts/Liberation /usr/local/share/fonts/LinLibertineG /usr/local/share/fonts/OTF /usr/local/share/fonts/TTF /usr/local/share/fonts/Type1 /usr/local/share/fonts/cyrillic /usr/local/share/fonts/dejavu /usr/local/share/fonts/encodings /usr/local/share/fonts/hack-font /usr/local/share/fonts/kanjistrokeorders /usr/local/share/fonts/misc /usr/local/share/fonts/noto /usr/local/share/fonts/twemoji-color-font-ttf /usr/local/share/fonts/urw-base35-fonts /home/neilt/.fonts/g /home/neilt/.fonts/s /usr/local/share/fonts/encodings/large Segmentation fault (core dumped) neilt@toad:~ %
^Triage: fix Summary and assign.
Hi, strange, can't reproduce. cad/openscad* should use QT6 now. Your openscad seems to use QT5.... My `openscad --info`: openscad --info QObject::startTimer: Timers can only be used with threads started with QThread OpenSCAD Version: 2025.04.14 System information: FreeBSD 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64 FreeBSD 14.2-RELEASE-p2 16 CPUs 127.33 GB RAM User Agent: OpenSCAD/2025.04.14 (FreeBSD amd64; FreeBSD 14.2-RELEASE-p2) Compiler: Clang "18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)" 64bit MinGW build: No Debug build: No Boost version: 1_87 Eigen version: 3.4.0 CGAL version, kernels: 5.5.1, Cartesian<Gmpq>, Extended_cartesian<Gmpq>, Epeck OpenCSG version: OpenCSG 1.8.1 Clipper2 version: 1.5.2 Manifold version: 3.0.1 Qt version: 6.8.3 QScintilla version: 2.14.1 InputDrivers: GLib version: 2.82.4 lodepng version: 20230410 libzip version: 1.11.2 fontconfig version: 2.15.0 freetype version: 2.13.3 harfbuzz version: 10.3.0 cairo version: 1.18.2 lib3mf version: (not enabled) Application Path: /usr/local/bin Documents Path: /home/rmx/.local/share User Documents Path: /home/rmx/Documents Resource Path: /usr/local/share/openscad User Library Path: /home/rmx/.local/share/OpenSCAD/libraries User Examples Path: /home/rmx/.local/share/OpenSCAD/examples User Config Path: /home/rmx/.config/OpenSCAD Backup Path: /home/rmx/.local/share/OpenSCAD/backups OPENSCADPATH: <not set> OpenSCAD library path: /home/rmx/.local/share/OpenSCAD/libraries /usr/local/share/openscad/libraries OPENSCAD_FONT_PATH: <not set> OpenSCAD font path: /home/rmx/.local/share/fonts /usr/local/share/fonts /usr/share/fonts /home/rmx/.fonts /usr/X11/lib/X11/fonts /System/Library/Fonts /Library/Fonts /home/rmx/Library/Fonts /usr/local/share/fonts/100dpi /usr/local/share/fonts/75dpi /usr/local/share/fonts/Caladea /usr/local/share/fonts/Carlito /usr/local/share/fonts/Droid /usr/local/share/fonts/GentiumBasic /usr/local/share/fonts/Liberation /usr/local/share/fonts/LinLibertineG /usr/local/share/fonts/OTF /usr/local/share/fonts/TTF /usr/local/share/fonts/Type1 /usr/local/share/fonts/bitstream-vera /usr/local/share/fonts/cyrillic /usr/local/share/fonts/dejavu /usr/local/share/fonts/encodings /usr/local/share/fonts/fira /usr/local/share/fonts/freefont-ttf /usr/local/share/fonts/misc /usr/local/share/fonts/noto /usr/local/share/fonts/twemoji-color-font-ttf /usr/local/share/fonts/urw-base35-fonts /usr/local/share/fonts/webfonts /usr/local/share/fonts/encodings/large GL context creator: EGL (new) EGL version: 1.5 PNG generator: lodepng GLAD version: 2.0.4 OpenGL Version: 4.6 (Compatibility Profile) Mesa 24.1.7 GL Renderer: AMD Radeon Graphics (radeonsi, renoir, LLVM 19.1.7, DRM 3.49, 14.2-RELEASE-p1) GL Vendor: AMD RGBA(8888), depth(24), stencil(8) GL_ARB_framebuffer_object: yes GL_EXT_framebuffer_object: yes GL_EXT_packed_depth_stencil: yes
Hi, Yes, I saw that Qt6 was required, but my system [originally FreeBSD 14.1-RELEASE, upgraded to 14.2-RELEASE] had Qt5. I installed Qt6 as well, but that didn't help, so I took a deep breath, backed up to tape, and reinstalled 14.2-RELEASE from scratch, then X11, then KDE6, then openscad-devel. It still uses Qt5, specifically 5.15.16. So the first time I ran openscad on this fresh install it came up with the normal screen. I hit cancel and it dumped core. Then I ran it with --info and it showed the info, then dumped core. The third time (with no options) it dumped core immediately, as before. I guess I need to know how to make openscad use Qt6. It is on my system, but KDE etc. seems to be still largely set up to use Qt5. My system has all patches and updates (pkg update, pkg upgrade, freebsd-update) as of this morning, before I installed openscad. Right now I am running a bare bones setup, will restore my data once everything is sorted with this; that means I can reinstall from scratch if necessary. Here is the info from that second run: neilt@toad:~ % openscad --info QObject::startTimer: Timers can only be used with threads started with QThread OpenSCAD Version: 2025.04.14 System information: FreeBSD 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64 FreeBSD 14.2-RELEASE-p3 12 CPUs 31.72 GB RAM User Agent: OpenSCAD/2025.04.14 (FreeBSD amd64; FreeBSD 14.2-RELEASE-p3) Compiler: Clang "18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)" 64bit MinGW build: No Debug build: No Boost version: 1_87 Eigen version: 3.4.0 CGAL version, kernels: 5.5.1, Cartesian<Gmpq>, Extended_cartesian<Gmpq>, Epeck OpenCSG version: OpenCSG 1.6.0 Clipper2 version: 1.5.2 Manifold version: 3.0.1 Qt version: 5.15.16 QScintilla version: 2.14.1 InputDrivers: GLib version: 2.80.5 lodepng version: 20230410 libzip version: 1.11.2 fontconfig version: 2.15.0 freetype version: 2.13.3 harfbuzz version: 10.3.0 cairo version: 1.18.2 lib3mf version: (not enabled) Application Path: /usr/local/bin Documents Path: /home/neilt/.local/share User Documents Path: /home/neilt/Documents Resource Path: /usr/local/share/openscad User Library Path: /home/neilt/.local/share/OpenSCAD/libraries User Config Path: /home/neilt/.config/OpenSCAD Backup Path: /home/neilt/.local/share/OpenSCAD/backups OPENSCADPATH: <not set> OpenSCAD library path: /home/neilt/.local/share/OpenSCAD/libraries /usr/local/share/openscad/libraries OPENSCAD_FONT_PATH: <not set> OpenSCAD font path: /home/neilt/.local/share/fonts /usr/local/share/fonts /usr/share/fonts /home/neilt/.fonts /usr/X11/lib/X11/fonts /System/Library/Fonts /Library/Fonts /home/neilt/Library/Fonts /usr/local/share/fonts/100dpi /usr/local/share/fonts/75dpi /usr/local/share/fonts/OTF /usr/local/share/fonts/TTF /usr/local/share/fonts/Type1 /usr/local/share/fonts/cyrillic /usr/local/share/fonts/dejavu /usr/local/share/fonts/encodings /usr/local/share/fonts/hack-font /usr/local/share/fonts/misc /usr/local/share/fonts/noto /usr/local/share/fonts/urw-base35-fonts /usr/local/share/fonts/encodings/large Segmentation fault (core dumped) neilt@toad:~ % openscad Segmentation fault (core dumped) neilt@toad:~ %
Created attachment 260104 [details] KDE About this system screen This shows that KDE is using Qt6.
The attachment in the previous comment shows that KDE is using Qt6. Same thing in text form: Operating System: FreeBSD 14.2 KDE Plasma Version: 6.3.4 KDE Frameworks Version: 6.13.0 Qt Version: 6.8.3 Kernel Version: 14.2-RELEASE-p1 (64-bit) Graphics Platform: X11 Memory: 31.7 GiB of RAM Graphics Processor: Intel® UHD Graphics 730 Manufacturer: Gigabyte Technology Co., Ltd. Product Name: Z790 EAGLE AX So I do not know why the openscad-devel package is using Qt5. Is it necessary that I compile locally and specify Qt6, rather than using the binary package? If so, are there any other settings I will need to change? Thank you.
Hi, I just pushed openscad-devel to a newer snapshot (2025.05.04). Please try to compile and watch which QT version gets used. openscad* in main should depend on devel/qscintilla2@qt6 and should have USES=qt:6 and should have USE_QT=base 5compat multimedia svg tools
Short version: it worked :-) I deleted the content of my /usr/ports, then: # cd /usr/ports # git clone https://github.com/freebsd/freebsd-ports.git . # cd cad/openscad-devel # make config-recursive (accepted all options as default values) # make install clean One thing I noticed is that during the build process openscad was identified as openscad-devel-2025.05.04, but --version and --info show 2025.05.08, as you can see below. But the main thing is it now runs on FreeBSD 14.2-RELEASE. I guess now I need to restore from tape and go through the process again on my normal system. Thank you. You may consider this issue resolved. neilt@toad:~ % openscad --version OpenSCAD version 2025.05.08 neilt@toad:~ % neilt@toad:~ % openscad --info QObject::startTimer: Timers can only be used with threads started with QThread OpenSCAD Version: 2025.05.08 System information: FreeBSD 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64 FreeBSD 14.2-RELEASE-p3 12 CPUs 31.72 GB RAM User Agent: OpenSCAD/2025.05.08 (FreeBSD amd64; FreeBSD 14.2-RELEASE-p3) Compiler: Clang "18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67)" 64bit MinGW build: No Debug build: No Boost version: 1_87 Eigen version: 3.4.0 CGAL version, kernels: 5.5.1, Cartesian<Gmpq>, Extended_cartesian<Gmpq>, Epeck OpenCSG version: OpenCSG 1.8.1 Clipper2 version: 1.5.2 Manifold version: 3.0.1 Qt version: 6.8.3 QScintilla version: 2.14.1 InputDrivers: GLib version: 2.80.5 lodepng version: 20230410 libzip version: 1.11.2 fontconfig version: 2.15.0 freetype version: 2.13.3 harfbuzz version: 10.3.0 cairo version: 1.18.2 lib3mf version: (not enabled) Application Path: /usr/local/bin Documents Path: /home/neilt/.local/share User Documents Path: /home/neilt/Documents Resource Path: /usr/local/share/openscad User Library Path: /home/neilt/.local/share/OpenSCAD/libraries User Examples Path: /home/neilt/.local/share/OpenSCAD/examples User Config Path: /home/neilt/.config/OpenSCAD Backup Path: /home/neilt/.local/share/OpenSCAD/backups OPENSCADPATH: <not set> OpenSCAD library path: /home/neilt/.local/share/OpenSCAD/libraries /usr/local/share/openscad/libraries OPENSCAD_FONT_PATH: <not set> OpenSCAD font path: /home/neilt/.local/share/fonts /usr/local/share/fonts /usr/share/fonts /home/neilt/.fonts /usr/X11/lib/X11/fonts /System/Library/Fonts /Library/Fonts /home/neilt/Library/Fonts /usr/local/share/fonts/100dpi /usr/local/share/fonts/75dpi /usr/local/share/fonts/OTF /usr/local/share/fonts/TTF /usr/local/share/fonts/Type1 /usr/local/share/fonts/cyrillic /usr/local/share/fonts/dejavu /usr/local/share/fonts/encodings /usr/local/share/fonts/hack-font /usr/local/share/fonts/misc /usr/local/share/fonts/noto /usr/local/share/fonts/urw-base35-fonts /usr/local/share/fonts/encodings/large GL context creator: EGL (new) EGL version: 1.5 PNG generator: lodepng GLAD version: 2.0.4 OpenGL Version: 4.6 (Compatibility Profile) Mesa 24.1.7 GL Renderer: Mesa Intel(R) UHD Graphics 730 (ADL-S GT1) GL Vendor: Intel RGBA(8888), depth(24), stencil(8) GL_ARB_framebuffer_object: yes GL_EXT_framebuffer_object: yes GL_EXT_packed_depth_stencil: yes neilt@toad:~ %
Sorry, I should have added that it is now using Qt6 (6.8.3).