SoftFever / OrcaSlicer

G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
https://discord.gg/P4VE9UY9gJ
GNU Affero General Public License v3.0
7.15k stars 840 forks source link

OrcaSlicer Crashes on Startup Arch Linux #6471

Open aeonik opened 2 months ago

aeonik commented 2 months ago

Is there an existing issue for this problem?

OrcaSlicer Version

2.1.1 (AppImg)

Operating System (OS)

Linux

OS Version

Arch Linux

Additional system information

❯ sudo inxi -Faz
System:
  Kernel: 6.10.4-arch2-1 arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: hpet,acpi_pm parameters: initrd=\amd-ucode.img
    initrd=\initramfs-linux.img
    root=PARTUUID=fa3f6bd1-daf4-4db7-b041-680a4658ef18 acpi_osi=Linux
    crashkernel=768M audit_backlog_limit=8192 acpi_enforce_resources=lax
    sysrq_always_enabled=1 nvme_core.default_ps_max_latency_us=5500
    amdgpu.ppfeaturemask=0xffffffff rw
  Desktop: KDE Plasma v: 6.1.4 tk: Qt v: N/A wm: kwin_x11 with: krunner
    tools: avail: xsecurelock,xtrlock dm: SDDM Distro: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: MEG X570 GODLIKE (MS-7C34) v: 1.0
    serial: <filter> uuid: a5b8a094-208a-b71e-a414-2cf05d7a3960 UEFI: American
    Megatrends LLC. v: 1.L0 date: 06/30/2023
CPU:
  Info: model: AMD Ryzen 9 5950X socket: AM4 bits: 64 type: MT MCP
    arch: Zen 3+ gen: 4 level: v3 note: check built: 2022 process: TSMC n6 (7nm)
    family: 0x19 (25) model-id: 0x21 (33) stepping: 0 microcode: 0xA201025
  Topology: cpus: 1x cores: 16 tpc: 2 threads: 32 smt: enabled cache:
    L1: 1024 KiB desc: d-16x32 KiB; i-16x32 KiB L2: 8 MiB desc: 16x512 KiB
    L3: 64 MiB desc: 2x32 MiB
  Speed (MHz): avg: 2350 high: 3400 min/max: 2200/5083 boost: enabled
    base/boost: 3400/5050 scaling: driver: acpi-cpufreq governor: schedutil
    volts: 1.1 V ext-clock: 100 MHz cores: 1: 2200 2: 2200 3: 3400 4: 2200
    5: 2200 6: 2200 7: 2200 8: 2200 9: 2200 10: 2200 11: 2200 12: 2200
    13: 2200 14: 2200 15: 2200 16: 2200 17: 3400 18: 2200 19: 3400 20: 2200
    21: 2200 22: 2200 23: 2200 24: 3400 25: 2200 26: 2200 27: 2200 28: 2200
    29: 2200 30: 2200 31: 2200 32: 2200 bogomips: 217674
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Vulnerable: Safe RET, no microcode
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW;
    STIBP: always-on; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] vendor: Tul /
    PowerColor Red Devil driver: amdgpu v: kernel arch: RDNA-2 code: Navi-2x
    process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4 speed: 16 GT/s
    lanes: 16 ports: active: DP-3 empty: DP-1, DP-2, HDMI-A-1, Writeback-1
    bus-ID: 31:00.0 chip-ID: 1002:73bf class-ID: 0300
  Device-2: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-2.2:5
    chip-ID: 046d:082d class-ID: 0102 serial: <filter>
  Display: unspecified server: X.Org v: 21.1.13 with: Xwayland v: 24.1.2
    compositor: kwin_x11 driver: X: loaded: amdgpu dri: radeonsi gpu: amdgpu
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5120x1440 s-dpi: 96 s-size: 1354x381mm (53.31x15.00")
    s-diag: 1407mm (55.38")
  Monitor-1: DP-3 mapped: DisplayPort-2 model: Samsung C49RG9x
    serial: <filter> built: 2018 res: 5120x1440 hz: 120 dpi: 109 gamma: 1.2
    size: 1190x340mm (46.85x13.39") diag: 1239mm (48.8") modes: max: 5120x1440
    min: 720x400
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
    device: 1 drv: swrast gbm: drv: radeonsi surfaceless: drv: radeonsi x11:
    drv: radeonsi inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.6-arch1.1
    glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 6900 XT (radeonsi
    navi21 LLVM 18.1.8 DRM 3.57 6.10.4-arch2-1) device-ID: 1002:73bf
    memory: 15.62 GiB unified: no
  API: Vulkan v: 1.3.279 layers: 2 device: 0 type: discrete-gpu name: AMD
    Radeon RX 6900 XT (RADV NAVI21) driver: mesa radv v: 24.1.6-arch1.1
    device-ID: 1002:73bf surfaces: xcb,xlib
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 31:00.1 chip-ID: 1002:ab28
    class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 35:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-2.2:5
    chip-ID: 046d:082d class-ID: 0102 serial: <filter>
  Device-4: Nektar Impact LX88+ driver: snd-usb-audio type: USB rev: 1.1
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-1.1.1:7 chip-ID: 2467:2018
    class-ID: 0103
  Device-5: Pioneer DJ DDJ-SB3 driver: hid-generic,snd-usb-audio,usbhid
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-1.2.1:11
    chip-ID: 2b73:0019 class-ID: 0300 serial: <filter>
  Device-6: Focusrite-Novation Scarlett 2i4 USB driver: snd-usb-audio
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-1.3.1:15
    chip-ID: 1235:8200 class-ID: 0103
  API: ALSA v: k6.10.4-arch2-1 status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.2.2 status: n/a (root, process) with:
    1: pipewire-pulse status: active 2: wireplumber status: active
    3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek Killer E2600 GbE vendor: Micro-Star MSI driver: r8169
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: d000 bus-ID: 29:00.0
    chip-ID: 10ec:2600 class-ID: 0200
  IF: enp41s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Realtek Killer E3000 2.5GbE vendor: Micro-Star MSI driver: r8169
    v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 port: c000 bus-ID: 2a:00.0
    chip-ID: 10ec:3000 class-ID: 0200
  IF: enp42s0 state: up speed: 2500 Mbps duplex: full mac: <filter>
  Device-3: Intel Wi-Fi 6 AX200 vendor: Rivet Networks Killer
    driver: iwlwifi v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1
    bus-ID: 2b:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
  Info: services: NetworkManager, nginx, sshd, systemd-networkd,
    systemd-timesyncd
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-4:3 chip-ID: 8087:0029
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 5.2
    lmp-v: 11 status: discoverable: no pairing: no class-ID: 6c0104
Drives:
  Local Storage: total: 31.94 TiB used: 16.29 TiB (51.0%)
  ID-1: /dev/nvme0n1 maj-min: 259:3 vendor: Sabrent model: Rocket Q
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: RKT30Q.1 temp: 33.9 C
    scheme: GPT
  SMART: yes health: PASSED on: 3y 345d 0h cycles: 328
    read-units: 259,387,028 [132 TB] written-units: 283,456,009 [145 TB]
  ID-2: /dev/nvme1n1 maj-min: 259:1 vendor: Sabrent model: Rocket Q
    size: 7.28 TiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: RKT30Q.2 temp: 28.9 C
    scheme: GPT
  SMART: yes health: PASSED on: 3y 228d 9h cycles: 235
    read-units: 191,636,622 [98.1 TB] written-units: 52,040,529 [26.6 TB]
  ID-3: /dev/nvme2n1 maj-min: 259:2 vendor: Sabrent model: N/A
    size: 1.86 TiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: RKT303.3 temp: 32.9 C
    scheme: MBR
  SMART: yes health: PASSED on: 3y 342d 19h cycles: 328
    read-units: 28,465,974 [14.5 TB] written-units: 597,799,397 [306 TB]
  ID-4: /dev/nvme3n1 maj-min: 259:0 vendor: Sabrent model: N/A
    size: 1.86 TiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: RKT303.4 temp: 26.9 C
  SMART: yes health: PASSED on: 1y 211d 20h cycles: 53
    read-units: 17,345,545 [8.88 TB] written-units: 7,978,268 [4.08 TB]
  ID-5: /dev/nvme4n1 maj-min: 259:8 vendor: Sabrent model: Rocket Q
    size: 7.28 TiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: RKT30Q.3 temp: 27.9 C
  SMART: yes health: PASSED on: 1y 212d 3h cycles: 53
    read-units: 14,803,238 [7.57 TB] written-units: 394,720,010 [202 TB]
  ID-6: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 2TB
    family: based SSDs size: 1.82 TiB block-size: physical: 512 B logical: 512 B
    sata: 3.1 speed: 6.0 Gb/s tech: SSD serial: <filter> fw-rev: 2B6Q
    temp: 28 C scheme: GPT
  SMART: yes state: enabled health: PASSED on: 4y 192d 22h cycles: 354
    written: 23.89 TiB
  ID-7: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD80EFZX-68UW8N0 family: Red size: 7.28 TiB block-size:
    physical: 4096 B logical: 512 B sata: 3.1 speed: 6.0 Gb/s tech: HDD
    rpm: 5400 serial: <filter> fw-rev: 0A83 temp: 30 C scheme: GPT
  SMART: yes state: enabled health: PASSED on: 3y 250d 21h cycles: 233
  ID-8: /dev/sdc maj-min: 8:32 vendor: SanDisk model: SDSSDH32000G
    family: Marvell based SSDs size: 1.82 TiB block-size: physical: 512 B
    logical: 512 B sata: 3.3 speed: 6.0 Gb/s tech: SSD serial: <filter>
    fw-rev: 10RL temp: 29 C scheme: GPT
  SMART: yes state: enabled health: PASSED on: 4y 316d 12h cycles: 262
  ID-9: /dev/sdd maj-min: 8:48 vendor: Samsung model: SSD 850 EVO 1TB
    family: based SSDs size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B sata: 3.1 speed: 6.0 Gb/s tech: SSD serial: <filter>
    fw-rev: 2B6Q temp: 25 C scheme: GPT
  SMART: yes state: enabled health: PASSED on: 6y 167d 10h cycles: 650
    written: 19.82 TiB
  ID-10: /dev/sde maj-min: 8:64 vendor: Patriot model: N/A size: 14.77 GiB
    block-size: physical: 512 B logical: 512 B type: USB rev: 3.1 spd: 5 Gb/s
    lanes: 1 mode: 3.2 gen-1x1 tech: N/A serial: <filter> fw-rev: PMAP
    scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
  ID-1: / raw-size: 1.82 TiB size: 1.79 TiB (98.37%) used: 1.33 TiB (74.1%)
    fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p2 maj-min: 259:7
  ID-2: /boot raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 324.9 MiB (63.6%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:6
  ID-3: /opt raw-size: 7.28 TiB size: 7.28 TiB (100.00%)
    used: 3.55 TiB (48.7%) fs: btrfs block-size: 4096 B dev: /dev/nvme4n1
    maj-min: 259:8
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: file size: 8 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 83.2 C mobo: 38.0 C gpu: amdgpu temp: 42.0 C
    mem: 42.0 C
  Fan Speeds (rpm): fan-1: 0 fan-2: 1314 fan-3: 935 fan-4: 931 fan-5: 1096
    fan-6: 930 fan-7: 577 gpu: amdgpu fan: 0
Info:
  Memory: total: 128 GiB available: 124.95 GiB used: 23.38 GiB (18.7%)
  Processes: 717 Power: uptime: 2h 11m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 49.97 GiB services: upowerd Init: systemd
    v: 256 default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 4092 libs: 628 tools: yay pm: flatpak pkgs: 0
    Compilers: clang: 18.1.8 gcc: 14.2.1 alt: 7/8/9/13 Shell: Sudo (sudo)
    v: 1.9.15p5 default: Zsh v: 5.9 running-in: konsole inxi: 3.3.35

Printer

N/A

How to reproduce

I try to run orca-slicer from either my desktop, or the terminal /opt/orca-slicer/bin/orca-slicer.

Actual results

Both techniques of starting the app are terminated abnormally with signal 11/SEGV aka a segfault.

Expected results

Orcaslicer should start normally.

Project file & Debug log uploads

Debug Backtrace (missing orca-slicer symbols, but has library symbols, I can't get compiled version to build on my machine).

❯ gdb /opt/orca-slicer/bin/orca-slicer
GNU gdb (GDB) 15.1
Copyright (C) 2024 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-pc-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 /opt/orca-slicer/bin/orca-slicer...

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for /opt/orca-slicer/bin/orca-slicer
(No debugging symbols found in /opt/orca-slicer/bin/orca-slicer)                                                                                                                                                                                           
(gdb) run
Starting program: /opt/orca-slicer/bin/orca-slicer 
Downloading separate debug info for system-supplied DSO at 0x7ffff7fc5000
[Thread debugging using libthread_db enabled]                                                                                                                                                                                                              
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[2024-08-15 13:51:27.332819] [0x00007fffe2b05b80] [trace]   Initializing StaticPrintConfigs
[New Thread 0x7fffe10006c0 (LWP 1358791)]
[New Thread 0x7fffdbe006c0 (LWP 1358792)]
[Thread 0x7fffe10006c0 (LWP 1358791) exited]
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1
add font of NanumGothic-Regular returns 1
add font of NanumGothic-Bold returns 1
Downloading separate debug info for /usr/lib/libvorbisfile.so.3
Downloading separate debug info for /usr/lib/libvorbis.so.0                                                                                                                                                                                                
[New Thread 0x7fffe10006c0 (LWP 1358803)]                                                                                                                                                                                                                  
[New Thread 0x7fffdb4006c0 (LWP 1358804)]
[New Thread 0x7fffdaa006c0 (LWP 1358805)]

Thread 1 "orcaslicer_main" received signal SIGSEGV, Segmentation fault.
0x000055555913de74 in ?? ()
(gdb) bt
#0  0x000055555913de74 in ??? ()
#1  0x00007ffff70fe78d in _cairo_ft_scaled_glyph_is_colr_v1 (scaled_font=<optimized out>, scaled_glyph=0x55555b843950, face=0x55555b7b8170) at ../cairo/src/cairo-ft-font.c:3266
#2  _cairo_ft_scaled_glyph_init_metrics (foreground_color=0x7ffff7167c00 <cairo_color_black.lto_priv>, load_flags=66048, vertical_layout=0, face=0x55555b7b8170, scaled_glyph=0x55555b843950, scaled_font=<optimized out>)
    at ../cairo/src/cairo-ft-font.c:3335
#3  _cairo_ft_scaled_glyph_init (abstract_font=<optimized out>, scaled_glyph=0x55555b843950, info=CAIRO_SCALED_GLYPH_INFO_METRICS, foreground_color=0x7ffff7167c00 <cairo_color_black.lto_priv>) at ../cairo/src/cairo-ft-font.c:3453
#4  0x00007ffff70b4d00 in _cairo_scaled_glyph_lookup (scaled_font=scaled_font@entry=0x55555b333790, index=<optimized out>, info=info@entry=CAIRO_SCALED_GLYPH_INFO_METRICS, foreground_color=0x7ffff7167c00 <cairo_color_black.lto_priv>, 
    foreground_color@entry=0x0, scaled_glyph_ret=scaled_glyph_ret@entry=0x7fffffff3d00) at ../cairo/src/cairo-scaled-font.c:2913
#5  0x00007ffff70b4f87 in cairo_scaled_font_glyph_extents (scaled_font=0x55555b333790, glyphs=glyphs@entry=0x7fffffff3d50, num_glyphs=num_glyphs@entry=1, extents=extents@entry=0x7fffffff3d70) at ../cairo/src/cairo-scaled-font.c:1643
#6  0x00007ffff7a1d242 in compute_glyph_extents (cf_priv=0x55555b7ba488, glyph=441, entry=0x55555b843268) at ../pango/pango/pangocairo-font.c:807
#7  _pango_cairo_font_private_get_glyph_extents_cache_entry (cf_priv=0x55555b7ba488, glyph=441) at ../pango/pango/pangocairo-font.c:833
#8  _pango_cairo_font_private_get_glyph_extents (cf_priv=0x55555b7ba488, glyph=441, ink_rect=0x7fffffff3e20, logical_rect=0x7fffffff3e30) at ../pango/pango/pangocairo-font.c:870
#9  pango_cairo_fc_font_get_glyph_extents (font=0x55555b7ba410, glyph=441, ink_rect=0x7fffffff3e20, logical_rect=0x7fffffff3e30) at ../pango/pango/pangocairo-fcfont.c:130
#10 0x00007ffff71ac779 in pango_glyph_string_extents_range (glyphs=0x55555b7b9fe0, start=0, end=43, font=0x55555b7ba410, ink_rect=<optimized out>, logical_rect=0x7fffffff3ee0) at ../pango/pango/glyphstring.c:210
#11 pango_glyph_string_extents_range (glyphs=0x55555b7b9fe0, start=0, end=43, font=0x55555b7ba410, ink_rect=<optimized out>, logical_rect=0x7fffffff3ee0) at ../pango/pango/glyphstring.c:164
#12 0x00007ffff71c501a in pango_layout_run_get_extents_and_height (run=0x55555b7c0290, run_ink=run_ink@entry=0x7fffffff3fc0, run_logical=0x7fffffff3ee0, 
    run_logical@entry=0x0, line_logical=line_logical@entry=0x7fffffff3fb0, height=height@entry=0x7fffffff3fac) at ../pango/pango/pango-layout.c:5640
#13 0x00007ffff71c6253 in pango_layout_line_get_extents_and_height.part.0.lto_priv.0 (line=0x55555b7afb80, ink_rect=<optimized out>, logical_rect=<optimized out>, height=<optimized out>) at ../pango/pango/pango-layout.c:5836
#14 0x00007ffff71bab46 in pango_layout_line_get_extents_and_height (line=0x55555b7afb80, ink_rect=0x0, logical_rect=0x7fffffff4040, height=0x7fffffff4038) at ../pango/pango/pango-layout.c:5779
#15 get_line_extents_layout_coords
    (layout=layout@entry=0x55555b7b2310, line=0x55555b7afb80, layout_width=layout_width@entry=-1, y_offset=0, baseline=baseline@entry=0x7fffffff40fc, line_ink_layout=line_ink_layout@entry=0x0, line_logical_layout=0x7fffffff4100)
    at ../pango/pango/pango-layout.c:2877
#16 0x00007ffff71baf6c in pango_layout_get_extents_internal (layout=0x55555b7b2310, ink_rect=<optimized out>, ink_rect@entry=0x0, logical_rect=<optimized out>, logical_rect@entry=0x7fffffff4170, line_extents=line_extents@entry=0x0)
    at ../pango/pango/pango-layout.c:3001
#17 0x00007ffff71bb220 in pango_layout_get_extents (layout=<optimized out>, ink_rect=ink_rect@entry=0x0, logical_rect=logical_rect@entry=0x7fffffff4170) at ../pango/pango/pango-layout.c:3118
#18 0x00007ffff71bb26e in pango_layout_get_size (layout=<optimized out>, width=0x7fffffff4460, height=0x7fffffff4380) at ../pango/pango/pango-layout.c:3166
#19 0x00007ffff71c9827 in pango_layout_check_lines.part.0.lto_priv.0 (layout=<optimized out>) at ../pango/pango/pango-layout.c:4983
#20 0x00007ffff71bb09f in pango_layout_check_lines (layout=<optimized out>) at ../pango/pango/pango-layout.c:4792
#21 pango_layout_get_extents_internal (layout=layout@entry=0x55555b7b2310, ink_rect=ink_rect@entry=0x0, logical_rect=logical_rect@entry=0x7fffffff4660, line_extents=line_extents@entry=0x0) at ../pango/pango/pango-layout.c:2925
#22 0x00007ffff71bb220 in pango_layout_get_extents (layout=layout@entry=0x55555b7b2310, ink_rect=ink_rect@entry=0x0, logical_rect=logical_rect@entry=0x7fffffff4660) at ../pango/pango/pango-layout.c:3118
#23 0x00007ffff7a1c48f in _pango_cairo_font_get_metrics (font=<optimized out>, language=<optimized out>) at ../pango/pango/pangocairo-font.c:293
#24 0x00007ffff71c5928 in pango_layout_get_empty_extents_and_height_at_index (layout=0x55555b834540, index=0, logical_rect=0x7fffffff4840, apply_line_height=apply_line_height@entry=1, height=height@entry=0x7fffffff4838)
    at ../pango/pango/pango-layout.c:5557
#25 0x00007ffff71c62db in pango_layout_get_empty_extents_and_height_at_index (layout=<optimized out>, index=<optimized out>, logical_rect=<optimized out>, apply_line_height=1, height=0x7fffffff4838) at ../pango/pango/pango-layout.c:5493
#26 pango_layout_line_get_extents_and_height.part.0.lto_priv.0 (line=<optimized out>, ink_rect=<optimized out>, logical_rect=<optimized out>, height=<optimized out>) at ../pango/pango/pango-layout.c:5888
#27 0x00007ffff71bab46 in pango_layout_line_get_extents_and_height (line=0x55555b7afb20, ink_rect=0x0, logical_rect=0x7fffffff4840, height=0x7fffffff4838) at ../pango/pango/pango-layout.c:5779
#28 get_line_extents_layout_coords
    (layout=layout@entry=0x55555b834540, line=0x55555b7afb20, layout_width=layout_width@entry=-1, y_offset=0, baseline=baseline@entry=0x7fffffff48fc, line_ink_layout=line_ink_layout@entry=0x0, line_logical_layout=0x7fffffff4900)
    at ../pango/pango/pango-layout.c:2877
#29 0x00007ffff71baf6c in pango_layout_get_extents_internal (layout=0x55555b834540, ink_rect=<optimized out>, ink_rect@entry=0x0, logical_rect=<optimized out>, logical_rect@entry=0x7fffffff4970, line_extents=line_extents@entry=0x0)
    at ../pango/pango/pango-layout.c:3001
#30 0x00007ffff71bb220 in pango_layout_get_extents (layout=<optimized out>, ink_rect=ink_rect@entry=0x0, logical_rect=logical_rect@entry=0x7fffffff4970) at ../pango/pango/pango-layout.c:3118
#31 0x00007ffff71bb26e in pango_layout_get_size (layout=<optimized out>, width=0x7fffffff4c60, height=0x7fffffff4b80) at ../pango/pango/pango-layout.c:3166
#32 0x00007ffff71c9827 in pango_layout_check_lines.part.0.lto_priv.0 (layout=<optimized out>) at ../pango/pango/pango-layout.c:4983
#33 0x00007ffff71bb09f in pango_layout_check_lines (layout=<optimized out>) at ../pango/pango/pango-layout.c:4792
#34 pango_layout_get_extents_internal (layout=0x55555b834540, ink_rect=ink_rect@entry=0x0, logical_rect=logical_rect@entry=0x7fffffff4e30, line_extents=line_extents@entry=0x0) at ../pango/pango/pango-layout.c:2925
#35 0x00007ffff71bf1b4 in pango_layout_get_pixel_size (layout=<optimized out>, width=0x7fffffff4ea4, height=0x7fffffff4ea8) at ../pango/pango/pango-layout.c:3194
#36 0x000055555991d888 in ??? ()
#37 0x00005555596bf9d7 in ??? ()
#38 0x000055555731e14c in ??? ()
#39 0x000055555731e980 in ??? ()
#40 0x0000555557320354 in ??? ()
#41 0x0000555556f56580 in ??? ()
#42 0x0000555556f57c98 in ??? ()
#43 0x0000555556f583c7 in ??? ()
#44 0x0000555556f5ec19 in ??? ()
#45 0x0000555556b6b092 in ??? ()
#46 0x0000555556b6b62a in ??? ()
#47 0x00005555599cd4d7 in ??? ()
#48 0x0000555556b2a01b in ??? ()
#49 0x0000555555fc442b in ??? ()
#50 0x0000555555ec3209 in ??? ()

Journalctl Logs:

Aug 15 13:35:52 aeonik systemd[2729]: Started OrcaSlicer.
Aug 15 13:35:52 aeonik orca-slicer[1253490]: [2024-08-15 13:35:52.509732] [0x00007fa4fd67cb80] [trace]   Initializing StaticPrintConfigs
Aug 15 13:35:52 aeonik systemd-coredump[1253532]: [🡕] Process 1253490 (orcaslicer_main) of user 1000 dumped core.

                                                  Stack trace of thread 1253490:
                                                  #0  0x00005c676a01ce74 n/a (orca-slicer + 0x3be9e74)
                                                  #1  0x00007fa50961278d n/a (libcairo.so.2 + 0x9a78d)
                                                  #2  0x00007fa5095c8d00 n/a (libcairo.so.2 + 0x50d00)
                                                  #3  0x00007fa5095c8f87 cairo_scaled_font_glyph_extents (libcairo.so.2 + 0x50f87)
                                                  #4  0x00007fa50a2d6242 n/a (libpangocairo-1.0.so.0 + 0x8242)
                                                  #5  0x00007fa5096c0779 pango_glyph_string_extents_range (libpango-1.0.so.0 + 0x15779)
                                                  #6  0x00007fa5096d901a n/a (libpango-1.0.so.0 + 0x2e01a)
                                                  #7  0x00007fa5096da253 n/a (libpango-1.0.so.0 + 0x2f253)
                                                  #8  0x00007fa5096ceb46 n/a (libpango-1.0.so.0 + 0x23b46)
                                                  #9  0x00007fa5096cef6c n/a (libpango-1.0.so.0 + 0x23f6c)
                                                  #10 0x00007fa5096cf26e pango_layout_get_size (libpango-1.0.so.0 + 0x2426e)
                                                  #11 0x00007fa5096dd827 n/a (libpango-1.0.so.0 + 0x32827)
                                                  #12 0x00007fa5096cf09f n/a (libpango-1.0.so.0 + 0x2409f)
                                                  #13 0x00007fa50a2d548f n/a (libpangocairo-1.0.so.0 + 0x748f)
                                                  #14 0x00007fa5096d9928 n/a (libpango-1.0.so.0 + 0x2e928)
                                                  #15 0x00007fa5096da2db n/a (libpango-1.0.so.0 + 0x2f2db)
                                                  #16 0x00007fa5096ceb46 n/a (libpango-1.0.so.0 + 0x23b46)
                                                  #17 0x00007fa5096cef6c n/a (libpango-1.0.so.0 + 0x23f6c)
                                                  #18 0x00007fa5096cf26e pango_layout_get_size (libpango-1.0.so.0 + 0x2426e)
                                                  #19 0x00007fa5096dd827 n/a (libpango-1.0.so.0 + 0x32827)
                                                  #20 0x00007fa5096cf09f n/a (libpango-1.0.so.0 + 0x2409f)
                                                  #21 0x00007fa5096d31b4 pango_layout_get_pixel_size (libpango-1.0.so.0 + 0x281b4)
                                                  #22 0x00005c676a7fc888 n/a (orca-slicer + 0x43c9888)
                                                  #23 0x00005c676a59e9d7 n/a (orca-slicer + 0x416b9d7)
                                                  #24 0x00005c67681fd14c n/a (orca-slicer + 0x1dca14c)
                                                  #25 0x00005c67681fd980 n/a (orca-slicer + 0x1dca980)
                                                  #26 0x00005c67681ff354 n/a (orca-slicer + 0x1dcc354)
                                                  #27 0x00005c6767e35580 n/a (orca-slicer + 0x1a02580)
                                                  #28 0x00005c6767e36c98 n/a (orca-slicer + 0x1a03c98)
                                                  #29 0x00005c6767e373c7 n/a (orca-slicer + 0x1a043c7)
                                                  #30 0x00005c6767e3dc19 n/a (orca-slicer + 0x1a0ac19)
                                                  #31 0x00005c6767a4a092 n/a (orca-slicer + 0x1617092)
                                                  #32 0x00005c6767a4a62a n/a (orca-slicer + 0x161762a)
                                                  #33 0x00005c676a8ac4d7 n/a (orca-slicer + 0x44794d7)
                                                  #34 0x00005c6767a0901b n/a (orca-slicer + 0x15d601b)
                                                  #35 0x00005c6766ea342b n/a (orca-slicer + 0xa7042b)
                                                  #36 0x00005c6766da2209 n/a (orca-slicer + 0x96f209)
                                                  #37 0x00007fa501c34e08 n/a (libc.so.6 + 0x25e08)
                                                  #38 0x00007fa501c34ecc __libc_start_main (libc.so.6 + 0x25ecc)
                                                  #39 0x00005c6766e90eee n/a (orca-slicer + 0xa5deee)

                                                  Stack trace of thread 1253523:
                                                  #0  0x00007fa508e772f8 n/a (libfontconfig.so.1 + 0x202f8)
                                                  #1  0x00007fa508e776b8 n/a (libfontconfig.so.1 + 0x206b8)
                                                  #2  0x00007fa508e7dd94 FcFontSetSort (libfontconfig.so.1 + 0x26d94)
                                                  #3  0x00007fa509fda74b n/a (libpangoft2-1.0.so.0 + 0xc74b)
                                                  #4  0x00007fa50928a266 n/a (libglib-2.0.so.0 + 0x8c266)
                                                  #5  0x00007fa501ca339d n/a (libc.so.6 + 0x9439d)
                                                  #6  0x00007fa501d2849c n/a (libc.so.6 + 0x11949c)

                                                  Stack trace of thread 1253528:
                                                  #0  0x00007fa501d261fd syscall (libc.so.6 + 0x1171fd)
                                                  #1  0x00007fa5092b5a10 g_cond_wait (libglib-2.0.so.0 + 0xb7a10)
                                                  #2  0x00007fa50922390c n/a (libglib-2.0.so.0 + 0x2590c)
                                                  #3  0x00007fa50928f6b7 n/a (libglib-2.0.so.0 + 0x916b7)
                                                  #4  0x00007fa50928a266 n/a (libglib-2.0.so.0 + 0x8c266)
                                                  #5  0x00007fa501ca339d n/a (libc.so.6 + 0x9439d)
                                                  #6  0x00007fa501d2849c n/a (libc.so.6 + 0x11949c)

                                                  Stack trace of thread 1253529:
                                                  #0  0x00007fa501d1a63d __poll (libc.so.6 + 0x10b63d)
                                                  #1  0x00007fa5092bc92d n/a (libglib-2.0.so.0 + 0xbe92d)
                                                  #2  0x00007fa509259fc5 g_main_context_iteration (libglib-2.0.so.0 + 0x5bfc5)
                                                  #3  0x00007fa50925a01a n/a (libglib-2.0.so.0 + 0x5c01a)
                                                  #4  0x00007fa50928a266 n/a (libglib-2.0.so.0 + 0x8c266)
                                                  #5  0x00007fa501ca339d n/a (libc.so.6 + 0x9439d)
                                                  #6  0x00007fa501d2849c n/a (libc.so.6 + 0x11949c)

                                                  Stack trace of thread 1253530:
                                                  #0  0x00007fa501d1a63d __poll (libc.so.6 + 0x10b63d)
                                                  #1  0x00007fa5092bc92d n/a (libglib-2.0.so.0 + 0xbe92d)
                                                  #2  0x00007fa50925b7b7 g_main_loop_run (libglib-2.0.so.0 + 0x5d7b7)
                                                  #3  0x00007fa5094bd574 n/a (libgio-2.0.so.0 + 0x112574)
                                                  #4  0x00007fa50928a266 n/a (libglib-2.0.so.0 + 0x8c266)
                                                  #5  0x00007fa501ca339d n/a (libc.so.6 + 0x9439d)
                                                  #6  0x00007fa501d2849c n/a (libc.so.6 + 0x11949c)
                                                  ELF object binary architecture: AMD x86-64
Aug 15 13:35:52 aeonik systemd[2729]: app-OrcaSlicer@be61ac30b1204a36af4957192d2eaa08.service: Main process exited, code=dumped, status=11/SEGV
Aug 15 13:35:52 aeonik systemd[2729]: app-OrcaSlicer@be61ac30b1204a36af4957192d2eaa08.service: Failed with result 'core-dump'.

Checklist of files to include

Anything else?

I have reinstalled OrcaSlicer, and deleted my entire configuration. No printer configuration or project files are involved with the crash. There are no log files that I can find relating to OrcaSlicer, I think it might crashing before the log writing process.

❯ ls -larh ~/.config/OrcaSlicer/log
total 8.0K
drwxr-xr-x 4 aeonik aeonik 4.0K Aug 15 11:58 ..
drwxr-xr-x 2 aeonik aeonik 4.0K Aug 15 11:58 .

It was working yesterday, however I did a system update today, so I assume it is some library compatibility issue. All signs point to a font library issue.

I have uploaded a full coredump as well here: orca-slicer-coredump.gz

You can also find all libraries linked to OrcaSlicer here:

❯ ldd /usr/bin/orca-slicer
        linux-vdso.so.1 (0x00007f2ef8ce4000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f2ef8c6b000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f2ef2c00000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f2ef8c66000)
        libGL.so.1 => /usr/lib/libGL.so.1 (0x00007f2ef8be0000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007f2ef2f11000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007f2ef8bc5000)
        libEGL.so.1 => /usr/lib/libEGL.so.1 (0x00007f2ef8bb3000)
        libgtk-3.so.0 => /usr/lib/libgtk-3.so.0 (0x00007f2ef2400000)
        libgdk-3.so.0 => /usr/lib/libgdk-3.so.0 (0x00007f2ef2314000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00007f2ef8ba3000)
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x00007f2ef2ea8000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00007f2ef21e1000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00007f2ef8b5d000)
        libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007f2ef2014000)
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f2ef1fb5000)
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f2ef1e67000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f2ef1d26000)
        libwayland-egl.so.1 => /usr/lib/libwayland-egl.so.1 (0x00007f2ef8b56000)
        libwayland-client.so.0 => /usr/lib/libwayland-client.so.0 (0x00007f2ef8b47000)
        libgstreamer-1.0.so.0 => /usr/lib/libgstreamer-1.0.so.0 (0x00007f2ef1bdc000)
        libgstvideo-1.0.so.0 => /usr/lib/libgstvideo-1.0.so.0 (0x00007f2ef1b10000)
        libwebkit2gtk-4.0.so.37 => /usr/lib/libwebkit2gtk-4.0.so.37 (0x00007f2eeca00000)
        libjavascriptcoregtk-4.0.so.18 => /usr/lib/libjavascriptcoregtk-4.0.so.18 (0x00007f2eeaa00000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f2ef1ac0000)
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00007f2ef2e8c000)
        libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007f2ef1a6f000)
        libgstbase-1.0.so.0 => /usr/lib/libgstbase-1.0.so.0 (0x00007f2ef19ea000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007f2eea80f000)
        /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f2ef8ce6000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f2ef2bd7000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f2ef19bc000)
        libGLdispatch.so.0 => /usr/lib/libGLdispatch.so.0 (0x00007f2eec948000)
        libGLX.so.0 => /usr/lib/libGLX.so.0 (0x00007f2ef198a000)
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007f2ef2bd0000)
        libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007f2eea6f5000)
        libfribidi.so.0 => /usr/lib/libfribidi.so.0 (0x00007f2ef196a000)
        libcairo-gobject.so.2 => /usr/lib/libcairo-gobject.so.2 (0x00007f2ef2bc7000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x00007f2ef1943000)
        libepoxy.so.0 => /usr/lib/libepoxy.so.0 (0x00007f2eea5e8000)
        libXi.so.6 => /usr/lib/libXi.so.6 (0x00007f2ef2bb4000)
        libatk-bridge-2.0.so.0 => /usr/lib/libatk-bridge-2.0.so.0 (0x00007f2eec90c000)
        libcloudproviders.so.0 => /usr/lib/libcloudproviders.so.0 (0x00007f2eec8f3000)
        libtracker-sparql-3.0.so.0 => /usr/lib/libtracker-sparql-3.0.so.0 (0x00007f2eea511000)
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007f2ef193b000)
        libxkbcommon.so.0 => /usr/lib/libxkbcommon.so.0 (0x00007f2eec8ab000)
        libwayland-cursor.so.0 => /usr/lib/libwayland-cursor.so.0 (0x00007f2eea507000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f2eea4f2000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007f2eea4e6000)
        libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007f2eec8a4000)
        libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x00007f2eea4e1000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007f2eea4d4000)
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00007f2eea4cf000)
        libthai.so.0 => /usr/lib/libthai.so.0 (0x00007f2eea4c2000)
        libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007f2eea488000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f2eea3be000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f2eea3b2000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f2eea387000)
        libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x00007f2eea376000)
        libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0x00007f2eea371000)
        libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x00007f2eea2c7000)
        libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007f2eea22b000)
        libtiff.so.6 => /usr/lib/libtiff.so.6 (0x00007f2eea1a0000)
        libmount.so.1 => /usr/lib/libmount.so.1 (0x00007f2eea14f000)
        libffi.so.8 => /usr/lib/libffi.so.8 (0x00007f2eea144000)
        libpcre2-8.so.0 => /usr/lib/libpcre2-8.so.0 (0x00007f2eea0a5000)
        libunwind.so.8 => /usr/lib/libunwind.so.8 (0x00007f2eea08b000)
        libdw.so.1 => /usr/lib/libdw.so.1 (0x00007f2ee9ffa000)
        liborc-0.4.so.0 => /usr/lib/liborc-0.4.so.0 (0x00007f2ee9f4e000)
        libicui18n.so.75 => /usr/lib/libicui18n.so.75 (0x00007f2ee9a00000)
        libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007f2ee9e5a000)
        libicuuc.so.75 => /usr/lib/libicuuc.so.75 (0x00007f2ee9806000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007f2ee96ba000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007f2ee954e000)
        libxslt.so.1 => /usr/lib/libxslt.so.1 (0x00007f2ee9e15000)
        liblcms2.so.2 => /usr/lib/liblcms2.so.2 (0x00007f2ee9dad000)
        libwoff2dec.so.1.0.2 => /usr/lib/libwoff2dec.so.1.0.2 (0x00007f2ee9da0000)
        libharfbuzz-icu.so.0 => /usr/lib/libharfbuzz-icu.so.0 (0x00007f2ee9d9b000)
        libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f2ee93bd000)
        libgstallocators-1.0.so.0 => /usr/lib/libgstallocators-1.0.so.0 (0x00007f2ee9d92000)
        libgstapp-1.0.so.0 => /usr/lib/libgstapp-1.0.so.0 (0x00007f2ee93a8000)
        libgstpbutils-1.0.so.0 => /usr/lib/libgstpbutils-1.0.so.0 (0x00007f2ee936a000)
        libgstaudio-1.0.so.0 => /usr/lib/libgstaudio-1.0.so.0 (0x00007f2ee92e8000)
        libgsttranscoder-1.0.so.0 => /usr/lib/libgsttranscoder-1.0.so.0 (0x00007f2ee9d82000)
        libgsttag-1.0.so.0 => /usr/lib/libgsttag-1.0.so.0 (0x00007f2ee92ac000)
        libgstgl-1.0.so.0 => /usr/lib/libgstgl-1.0.so.0 (0x00007f2ee9221000)
        libgstfft-1.0.so.0 => /usr/lib/libgstfft-1.0.so.0 (0x00007f2ee9216000)
        libwebpdemux.so.2 => /usr/lib/libwebpdemux.so.2 (0x00007f2ee9210000)
        libwebp.so.7 => /usr/lib/libwebp.so.7 (0x00007f2ee91a1000)
        libjxl.so.0.10 => /usr/lib/libjxl.so.0.10 (0x00007f2ee8e00000)
        libavif.so.16 => /usr/lib/libavif.so.16 (0x00007f2ee9170000)
        libsoup-2.4.so.1 => /usr/lib/libsoup-2.4.so.1 (0x00007f2ee90cf000)
        libenchant-2.so.2 => /usr/lib/libenchant-2.so.2 (0x00007f2ee90bf000)
        libsecret-1.so.0 => /usr/lib/libsecret-1.so.0 (0x00007f2ee8da2000)
        libtasn1.so.6 => /usr/lib/libtasn1.so.6 (0x00007f2ee90aa000)
        libhyphen.so.0 => /usr/lib/libhyphen.so.0 (0x00007f2ee90a3000)
        libwayland-server.so.0 => /usr/lib/libwayland-server.so.0 (0x00007f2ee8d8e000)
        libmanette-0.2.so.0 => /usr/lib/libmanette-0.2.so.0 (0x00007f2ee8d5e000)
        libseccomp.so.2 => /usr/lib/libseccomp.so.2 (0x00007f2ee8d3e000)
        libgbm.so.1 => /usr/lib/libgbm.so.1 (0x00007f2ee8d2d000)
        libdrm.so.2 => /usr/lib/libdrm.so.2 (0x00007f2ee8d16000)
        libatomic.so.1 => /usr/lib/libatomic.so.1 (0x00007f2ee8d0b000)
        libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007f2ee8ce9000)
        libatspi.so.0 => /usr/lib/libatspi.so.0 (0x00007f2ee8cb3000)
        libjson-glib-1.0.so.0 => /usr/lib/libjson-glib-1.0.so.0 (0x00007f2ee8c89000)
        libdatrie.so.1 => /usr/lib/libdatrie.so.1 (0x00007f2ee8c80000)
        libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007f2ee8c6b000)
        libbrotlidec.so.1 => /usr/lib/libbrotlidec.so.1 (0x00007f2ee8c5c000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f2ee8c57000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f2ee8c4f000)
        libzstd.so.1 => /usr/lib/libzstd.so.1 (0x00007f2ee8b70000)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f2ee8b3b000)
        libjbig.so.2.1 => /usr/lib/libjbig.so.2.1 (0x00007f2ee8b2d000)
        libblkid.so.1 => /usr/lib/libblkid.so.1 (0x00007f2ee8af4000)
        libelf.so.1 => /usr/lib/libelf.so.1 (0x00007f2ee8ad8000)
        libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f2ee8acc000)
        libicudata.so.75 => /usr/lib/libicudata.so.75 (0x00007f2ee6c00000)
        libwoff2common.so.1.0.2 => /usr/lib/libwoff2common.so.1.0.2 (0x00007f2ee8ac5000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f2ee8a9d000)
        libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x00007f2ee8a98000)
        libgudev-1.0.so.0 => /usr/lib/libgudev-1.0.so.0 (0x00007f2ee8a8b000)
        libsharpyuv.so.0 => /usr/lib/libsharpyuv.so.0 (0x00007f2ee8a80000)
        libjxl_cms.so.0.10 => /usr/lib/libjxl_cms.so.0.10 (0x00007f2ee8a4a000)
        libhwy.so.1 => /usr/lib/libhwy.so.1 (0x00007f2ee8a3e000)
        libbrotlienc.so.1 => /usr/lib/libbrotlienc.so.1 (0x00007f2ee898c000)
        libyuv.so => /usr/lib/libyuv.so (0x00007f2ee6b5a000)
        libdav1d.so.7 => /usr/lib/libdav1d.so.7 (0x00007f2ee697b000)
        librav1e.so.0.7 => /usr/lib/librav1e.so.0.7 (0x00007f2ee6600000)
        libSvtAv1Enc.so.2 => /usr/lib/libSvtAv1Enc.so.2 (0x00007f2edde00000)
        libaom.so.3 => /usr/lib/libaom.so.3 (0x00007f2edd400000)
        libpsl.so.5 => /usr/lib/libpsl.so.5 (0x00007f2ee8976000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007f2ee6928000)
        libtss2-esys.so.0 => /usr/lib/libtss2-esys.so.0 (0x00007f2ee6563000)
        libtss2-mu.so.0 => /usr/lib/libtss2-mu.so.0 (0x00007f2ee6513000)
        libtss2-rc.so.0 => /usr/lib/libtss2-rc.so.0 (0x00007f2ee896a000)
        libtss2-tctildr.so.0 => /usr/lib/libtss2-tctildr.so.0 (0x00007f2ee8960000)
        libevdev.so.2 => /usr/lib/libevdev.so.2 (0x00007f2ee64fe000)
        libxcb-randr.so.0 => /usr/lib/libxcb-randr.so.0 (0x00007f2ee64ec000)
        libbrotlicommon.so.1 => /usr/lib/libbrotlicommon.so.1 (0x00007f2ee64c9000)
        libudev.so.1 => /usr/lib/libudev.so.1 (0x00007f2ee6483000)
        libunistring.so.5 => /usr/lib/libunistring.so.5 (0x00007f2edd250000)
        libidn2.so.0 => /usr/lib/libidn2.so.0 (0x00007f2ee6461000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007f2eddd3b000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007f2eddd0e000)
        libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0x00007f2ee8956000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007f2ee6453000)
        libkeyutils.so.1 => /usr/lib/libkeyutils.so.1 (0x00007f2ee6921000)
        libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007f2ee6441000)
        libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x00007f2edcc00000)
        libtss2-sys.so.1 => /usr/lib/libtss2-sys.so.1 (0x00007f2eddce7000)
lzhecz commented 2 months ago

Same issue, bambu-studio crashes too It seems after some recent system updates on Arch. Previous versions of orca slicers do not start too

[lzhecz@arch ~]$ orca-slicer
[2024-08-15 21:40:49.050649] [0x0000700b1b8d8b80] [trace]   Initializing StaticPrintConfigs
add font of HarmonyOS_Sans_SC_Bold returns 1
add font of HarmonyOS_Sans_SC_Regular returns 1
add font of NanumGothic-Regular returns 1
add font of NanumGothic-Bold returns 1
zsh: segmentation fault (core dumped)  orca-slicer
faith-healer commented 2 months ago

same....

[2024-08-15 22:05:46.193722] [0x00007cf6df338b80] [trace] Initializing StaticPrintConfigs add font of HarmonyOS_Sans_SC_Bold returns 1 add font of HarmonyOS_Sans_SC_Regular returns 1 add font of NanumGothic-Regular returns 1 add font of NanumGothic-Bold returns 1 Segmentation fault (core dumped)

Sanaki commented 2 months ago

Same experience here on Garuda Linux.

Related bambustudio issue: bambulab/BambuStudio#4634

franciscoglop commented 2 months ago

Same here, as said above it should be some package update in Arch because before updating it worked flawless. Still working Bambu Studio for me though

hyperpuncher commented 2 months ago

Downgrading freetype2 to 2.13.2-2 fixed this for me.

felipebalbi commented 2 months ago

same here, Arch Linux. Downgrading freetype2 also solves the issue.

Eris-JBG commented 2 months ago

Can also confirm that downgrading freetype2 fixes this issue!

xdevs23 commented 2 months ago

How can such an update cause an entire application to segfault? I don't know if freetype follows semver, but if they do, this little patch update shouldn't break anything. The question is, who is responsible for the breakage in the first place? Is it freetype, arch or orca? I can confirm downgrading freetype2 fixes the issue.

Eris-JBG commented 2 months ago

Trying to assign blame like that isn’t helpful. Sometimes things break and it’s no one’s fault, esp since arch isn’t even officially supported. the freetype project dates back to 1996, so they may follow some type of semver but it’s not a perfect system, and you don’t always know when a change is breaking. freetype2 is from the main arch repos, and it’s gonna be tested against other stuff in the main repos, but it can’t and shouldn’t be tested against every aur package.

lemzwerg commented 2 months ago

Looking at the gdb output I see that the crash is caused by a return value from Cairo and/or Pango while getting information on a font with a 'COL' v1 table (most likely an Emoji font). You should thus first contact the Cairo people asking for help – of course it is also possible that this is a problem of OrcaSlicer (I have no idea). To do that efficiently you should build the crashing program without any optimizations to get better stack traces – in particular, the topmost frame (#0) doesn't give any useful information, which means it is not clear at all where the program crashes.

aeonik commented 2 months ago

How can such an update cause an entire application to segfault? I don't know if freetype follows semver, but if they do, this little patch update shouldn't break anything. The question is, who is responsible for the breakage in the first place? Is it freetype, arch or orca? I can confirm downgrading freetype2 fixes the issue.

Running Arch and other bleeding distros is nice because it gives us the latest software, but it's called bleeding edge because we get cut sometimes.

It's nice though because we find these issues and can get this information to the developers that build our software, so they know to fix it.

We are the canaries of the software coal mines. It's not glamourous, it's frustrating, but somebody has to do it.

Regards, Aeonik

xdevs23 commented 2 months ago

Trying to assign blame like that isn’t helpful. Sometimes things break and it’s no one’s fault, esp since arch isn’t even officially supported. the freetype project dates back to 1996, so they may follow some type of semver but it’s not a perfect system, and you don’t always know when a change is breaking. freetype2 is from the main arch repos, and it’s gonna be tested against other stuff in the main repos, but it can’t and shouldn’t be tested against every aur package.

I understand and I'm not trying to assign a blame to anyone. For lack of better words my comment turned out to appear negative. I apologize for that. I'm just trying to understand which component is causing the segfault – is it freetype2 with a bug or breaking change or is it Orca for using something in freetype2 in a way that didn't cause issues before but now does, or is it an Arch specific issue. It's really just a question.

xdevs23 commented 2 months ago

Running Arch and other bleeding distros is nice because it gives us the latest software, but it's called bleeding edge because we get cut sometimes.

It's nice though because we find these issues and can get this information to the developers that build our software, so they know to fix it.

We are the canaries of the software coal mines. It's not glamourous, it's frustrating, but somebody has to do it.

I agree with that. It gives us the opportunity to fix things before they arise at users more downstream or with non-rolling distros.

apodtele commented 2 months ago

_cairo_ft_scaled_glyph_is_colr_v1 straightforwardly calls FT_Get_Color_Glyph_Paint. The trace is lost there because FreeType's debug information is missing. In other words the backtrace needs to be improved once the missing package is installed or FreeType is recompiled with -g.

Don't despair, improve the backtrace.

lemzwerg commented 2 months ago

Don't despair, improve the backtrace.

So let's wait for that :slightly_smiling_face:

Sanaki commented 2 months ago

While imperfect, this should be a slightly improved backtrace.

Thread 1 "orcaslicer_main" received signal SIGSEGV, Segmentation fault.
0x000055555913de74 in tt_face_get_paint_layers ()
(gdb)  thread apply all bt

Thread 7 (Thread 0x7fffdda006c0 (LWP 2945021) "pool-orca-slice"):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff6dc7367 in g_cond_wait_until (cond=<optimized out>, mutex=0x55555bdfef00, end_time=<optimized out>) at ../glib/glib/gthread-posix.c:1677
#2  0x00007ffff6d348d5 in g_async_queue_pop_intern_unlocked (queue=0x55555bdfef00, wait=1, end_time=2075481119181) at ../glib/glib/gasyncqueue.c:378
#3  0x00007ffff6da127b in g_thread_pool_wait_for_new_task (pool=0x55555bdf1170) at ../glib/glib/gthreadpool.c:260
#4  g_thread_pool_thread_proxy (data=<optimized out>) at ../glib/glib/gthreadpool.c:325
#5  0x00007ffff6d9b266 in g_thread_proxy (data=0x7fffd8015bb0) at ../glib/glib/gthread.c:835
#6  0x00007fffef8a339d in start_thread (arg=<optimized out>) at pthread_create.c:447
#7  0x00007fffef92849c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 6 (Thread 0x7fffde4006c0 (LWP 2945020) "gdbus"):
#0  0x00007fffef91a63d in __GI___poll (fds=0x7fffc4000b90, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff6dcd92d in g_main_context_poll_unlocked (priority=2147483647, context=0x55555be0c020, timeout=<optimized out>, fds=0x7fffc4000b90, n_fds=2) at ../glib/glib/gmain.c:4521
#2  g_main_context_iterate_unlocked.isra.0 (context=0x55555be0c020, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4212
#3  0x00007ffff6d6c7b7 in g_main_loop_run (loop=0x55555ba1fa10) at ../glib/glib/gmain.c:4419
#4  0x00007ffff6fce574 in gdbus_shared_thread_func (user_data=0x55555be0bff0) at ../glib/gio/gdbusprivate.c:284
#5  0x00007ffff6d9b266 in g_thread_proxy (data=0x55555be0c120) at ../glib/glib/gthread.c:835
#6  0x00007fffef8a339d in start_thread (arg=<optimized out>) at pthread_create.c:447
#7  0x00007fffef92849c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 5 (Thread 0x7fffdee006c0 (LWP 2945019) "gmain"):
#0  0x00007fffef91a63d in __GI___poll (fds=0x55555b48fea0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ffff6dcd92d in g_main_context_poll_unlocked (priority=2147483647, context=0x55555be007c0, timeout=<optimized out>, fds=0x55555b48fea0, n_fds=2) at ../glib/glib/gmain.c:4521
#2  g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x55555be007c0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4212
#3  0x00007ffff6d6afc5 in g_main_context_iteration (context=0x55555be007c0, may_block=may_block@entry=1) at ../glib/glib/gmain.c:4282
#4  0x00007ffff6d6b01a in glib_worker_main (data=<optimized out>) at ../glib/glib/gmain.c:6442
#5  0x00007ffff6d9b266 in g_thread_proxy (data=0x55555be009c0) at ../glib/glib/gthread.c:835
#6  0x00007fffef8a339d in start_thread (arg=<optimized out>) at pthread_create.c:447
#7  0x00007fffef92849c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 4 (Thread 0x7fffe02006c0 (LWP 2945018) "pool-spawner"):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff6dc6a10 in g_cond_wait (cond=0x55555bdfed58, mutex=0x55555bdfed50) at ../glib/glib/gthread-posix.c:1552
#2  0x00007ffff6d3490c in g_async_queue_pop_intern_unlocked (queue=0x55555bdfed50, wait=1, end_time=-1) at ../glib/glib/gasyncqueue.c:375
#3  0x00007ffff6da06b7 in g_thread_pool_spawn_thread (data=<optimized out>) at ../glib/glib/gthreadpool.c:297
#4  0x00007ffff6d9b266 in g_thread_proxy (data=0x55555bdfdf90) at ../glib/glib/gthread.c:835
#5  0x00007fffef8a339d in start_thread (arg=<optimized out>) at pthread_create.c:447
#6  0x00007fffef92849c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 3 (Thread 0x7fffdf8006c0 (LWP 2945012) "orcaslicer_main"):
#0  FcCompareValueList (object=50, match=0x7ffff69b6610 <_FcMatchers+1200>, v1orig=0x55555c168390, v2orig=<optimized out>, bestValue=bestValue@entry=0x0, value=value@entry=0x7fffdc6392f8, n=0x0, result=0x7fffdf7f2a20) at ../fontconfig/src/fcmatch.c:435
#1  0x00007ffff69886b8 in FcCompare (pat=pat@entry=0x55555bfa2ba0, fnt=0x7fffe0534620, value=value@entry=0x7fffdc6392f8, result=result@entry=0x7fffdf7f2a20, data=data@entry=0x7fffdf7f2978) at ../fontconfig/src/fcmatch.c:647
#2  0x00007ffff698ed94 in IA__FcFontSetSort (config=<optimized out>, sets=sets@entry=0x55555bfa2c10, nsets=nsets@entry=1, p=0x55555bfa2ba0, trim=trim@entry=1, csp=csp@entry=0x0, result=0x7fffdf7f2a20) at ../fontconfig/src/fcmatch.c:1275
#3  0x00007ffff695874b in sort_in_thread (task_data=0x55555bfa2c00) at ../pango/pango/pangofc-fontmap.c:932
#4  fc_thread_func (data=0x55555b3b0d00) at ../pango/pango/pangofc-fontmap.c:972
#5  0x00007ffff6d9b266 in g_thread_proxy (data=0x55555b3b03b0) at ../glib/glib/gthread.c:835
#6  0x00007fffef8a339d in start_thread (arg=<optimized out>) at pthread_create.c:447
#7  0x00007fffef92849c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Thread 1 (Thread 0x7fffeb24eb80 (LWP 2944172) "orcaslicer_main"):
#0  0x000055555913de74 in tt_face_get_paint_layers ()
#1  0x00007ffff716778d in _cairo_ft_scaled_glyph_is_colr_v1 (scaled_font=<optimized out>, scaled_glyph=0x55555c1e8730, face=0x55555bfa32e0) at ../cairo/src/cairo-ft-font.c:3266
#2  _cairo_ft_scaled_glyph_init_metrics (foreground_color=0x7ffff71d0c00 <cairo_color_black.lto_priv>, load_flags=66048, vertical_layout=0, face=0x55555bfa32e0, scaled_glyph=0x55555c1e8730, scaled_font=<optimized out>) at ../cairo/src/cairo-ft-font.c:3335
#3  _cairo_ft_scaled_glyph_init (abstract_font=<optimized out>, scaled_glyph=0x55555c1e8730, info=CAIRO_SCALED_GLYPH_INFO_METRICS, foreground_color=0x7ffff71d0c00 <cairo_color_black.lto_priv>) at ../cairo/src/cairo-ft-font.c:3453
#4  0x00007ffff711dd00 in _cairo_scaled_glyph_lookup (scaled_font=scaled_font@entry=0x55555be98ef0, index=<optimized out>, info=info@entry=CAIRO_SCALED_GLYPH_INFO_METRICS, foreground_color=0x7ffff71d0c00 <cairo_color_black.lto_priv>, foreground_color@entry=0x0, scaled_glyph_ret=scaled_glyph_ret@entry=0x7fffffff4fa0) at ../cairo/src/cairo-scaled-font.c:2913
#5  0x00007ffff711df87 in cairo_scaled_font_glyph_extents (scaled_font=0x55555be98ef0, glyphs=glyphs@entry=0x7fffffff4ff0, num_glyphs=num_glyphs@entry=1, extents=extents@entry=0x7fffffff5010) at ../cairo/src/cairo-scaled-font.c:1643
#6  0x00007ffff7eac242 in compute_glyph_extents (cf_priv=0x55555c1e4e28, glyph=28635, entry=0x55555c1e8378) at ../pango/pango/pangocairo-font.c:807
#7  _pango_cairo_font_private_get_glyph_extents_cache_entry (cf_priv=0x55555c1e4e28, glyph=28635) at ../pango/pango/pangocairo-font.c:833
#8  _pango_cairo_font_private_get_glyph_extents (cf_priv=0x55555c1e4e28, glyph=28635, ink_rect=0x7fffffff50c0, logical_rect=0x7fffffff50d0) at ../pango/pango/pangocairo-font.c:870
#9  pango_cairo_fc_font_get_glyph_extents (font=0x55555c1e4db0, glyph=28635, ink_rect=0x7fffffff50c0, logical_rect=0x7fffffff50d0) at ../pango/pango/pangocairo-fcfont.c:130
#10 0x00007ffff79d1779 in pango_glyph_string_extents_range (glyphs=0x55555b3b5400, start=0, end=5, font=0x55555c1e4db0, ink_rect=<optimized out>, logical_rect=0x7fffffff5180) at ../pango/pango/glyphstring.c:210
#11 pango_glyph_string_extents_range (glyphs=0x55555b3b5400, start=0, end=5, font=0x55555c1e4db0, ink_rect=<optimized out>, logical_rect=0x7fffffff5180) at ../pango/pango/glyphstring.c:164
#12 0x00007ffff79ea01a in pango_layout_run_get_extents_and_height (run=0x55555c16a940, run_ink=run_ink@entry=0x7fffffff5260, run_logical=0x7fffffff5180, run_logical@entry=0x0, line_logical=line_logical@entry=0x7fffffff5250, height=height@entry=0x7fffffff524c) at ../pango/pango/pango-layout.c:5640
#13 0x00007ffff79eb253 in pango_layout_line_get_extents_and_height.part.0.lto_priv.0 (line=0x55555c0971a0, ink_rect=<optimized out>, logical_rect=<optimized out>, height=<optimized out>) at ../pango/pango/pango-layout.c:5836
#14 0x00007ffff79dfb46 in pango_layout_line_get_extents_and_height (line=0x55555c0971a0, ink_rect=0x0, logical_rect=0x7fffffff52e0, height=0x7fffffff52d8) at ../pango/pango/pango-layout.c:5779
#15 get_line_extents_layout_coords (layout=layout@entry=0x55555bfa25e0, line=0x55555c0971a0, layout_width=layout_width@entry=-1, y_offset=0, baseline=baseline@entry=0x7fffffff539c, line_ink_layout=line_ink_layout@entry=0x0, line_logical_layout=0x7fffffff53a0) at ../pango/pango/pango-layout.c:2877
#16 0x00007ffff79dff6c in pango_layout_get_extents_internal (layout=0x55555bfa25e0, ink_rect=<optimized out>, ink_rect@entry=0x0, logical_rect=<optimized out>, logical_rect@entry=0x7fffffff5410, line_extents=line_extents@entry=0x0) at ../pango/pango/pango-layout.c:3001
#17 0x00007ffff79e0220 in pango_layout_get_extents (layout=<optimized out>, ink_rect=ink_rect@entry=0x0, logical_rect=logical_rect@entry=0x7fffffff5410) at ../pango/pango/pango-layout.c:3118
#18 0x00007ffff79e026e in pango_layout_get_size (layout=<optimized out>, width=0x7fffffff5700, height=0x7fffffff5620) at ../pango/pango/pango-layout.c:3166
#19 0x00007ffff79ee827 in pango_layout_check_lines.part.0.lto_priv.0 (layout=<optimized out>) at ../pango/pango/pango-layout.c:4983
#20 0x00007ffff79e009f in pango_layout_check_lines (layout=<optimized out>) at ../pango/pango/pango-layout.c:4792
#21 pango_layout_get_extents_internal (layout=0x55555bfa25e0, ink_rect=ink_rect@entry=0x0, logical_rect=logical_rect@entry=0x7fffffff58d0, line_extents=line_extents@entry=0x0) at ../pango/pango/pango-layout.c:2925
#22 0x00007ffff79e41b4 in pango_layout_get_pixel_size (layout=<optimized out>, width=0x7fffffff5944, height=0x7fffffff5948) at ../pango/pango/pango-layout.c:3194
#23 0x000055555991d888 in wxCairoContext::GetTextExtent(wxString const&, double*, double*, double*, double*) const ()
#24 0x00005555596bf9d7 in wxGCDCImpl::DoGetTextExtent(wxString const&, int*, int*, int*, int*, wxFont const*) const ()
#25 0x0000555556b7429a in Slic3r::GUI::SplashScreen::Decorate(wxBitmap&) ()
#26 0x0000555556b69dc5 in Slic3r::GUI::GUI_App::on_init_inner() ()
#27 0x0000555556b6b62a in Slic3r::GUI::GUI_App::OnInit() ()
#28 0x00005555599cd4d7 in wxEntry(int&, wchar_t**) ()
#29 0x0000555556b2a01b in Slic3r::GUI::GUI_Run(Slic3r::GUI::GUI_InitParams&) ()
#30 0x0000555555fc442b in Slic3r::CLI::run(int, char**) ()
#31 0x0000555555ec3209 in main ()
lemzwerg commented 2 months ago

Thanks, but the most crucial information is still missing, namely FreeType's file and line number details for frame #0.

If possible, please compile FreeType manually without optimization and temporarily replace the OS's version.

Sanaki commented 2 months ago

I tried my hand at that, but I must have been doing something wrong, because I couldn't get it to read the symbols, even after installing the -debug package. Hopefully someone who's done this before can give it a shot. Symbols read fine for that package, that's not what's missing. Seems like we need a debug build of orca, but I've had no luck building it myself.

ahmet-cetinkaya commented 2 months ago

Downgrading freetype2 to 2.13.2-2 fixed this for me.

Yes, it opens when I downgraded freetype2 to 2.13.2-2. But I had visual issue. Screenshot_20240820_152053

apodtele commented 2 months ago

This might be a multithreading issue. FT_Face can be safely used within a single thread, but I see IA__FcFontSetSort in a separate thread.

eteq commented 2 months ago

I'm seeing this problem in the appimage same as the OP and others... but I do not get the segfault when I compiled it using an Arch Linux PKGBUILD - specifically, I took https://aur.archlinux.org/packages/orca-slicer, updated the tagged version to 2.1.1, commented out some of the patches that were no longer relevant, and than a makepkg -si yielded a working Orca Slicer!

(it could still be a threading issue of course - by compiling it that way I might have just resulted in some changed linking order that works around whatever race condition is the problem. But at least it got me a working orca slicer on Arch...)

deddroid commented 2 months ago

same issue for me. downgrading freetype2 to 2.13.2-2 worked to open the app, and backup my configs, but I have no view in 3D area.

also the backup is impossible cos I can't expand the windows to select my settings to export

wuhgit commented 2 months ago

Same issue, after some testing, I can start OrcaSlicer successfully with the following command on ArchLinux

WEBKIT_DISABLE_DMABUF_RENDERER=1 __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json /opt/orca-slicer/bin/orca-slicer
icoz commented 2 months ago

same issue for me. downgrading freetype2 to 2.13.2-2 worked to open the app, and backup my configs, but I have no view in 3D area.

also the backup is impossible cos I can't expand the windows to select my settings to export

Same issue for me. But I've just recompile freetype2 package. asp checkout freetype2 cd freetype2/trunk makepkg -sci

Package orca-slicer-bin-2.1.1-1 work fine with freetype2-2.13.3-1.

Communing-With-Coyotes commented 1 month ago

Edit: Managed to make OrcaSlicer run properly by upgrading to the beta (2.2.0-beta2), downgrading to freetype 2.13.2-2, and using only __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json /opt/orca-slicer/bin/orca-slicer as the environment variable. It's this particular combination of changes that made it function again.

xdevs23 commented 1 month ago

@Communing-With-Coyotes

Tried the environment variables listed by @wuhgit and downgraded freetype to 2.13.2-2 and while Orca will launch, it freezes shortly after (usually within 10-15 seconds) and crashes roughly another 10-15 seconds after that. Lots of Gtk-CRITICAL errors, but those aren't unusual. Even when it worked properly, Orca has always spit hundreds of these errors.

The crashes can be worked around by editing the connection settings and changing the Device UI to something it can't reach: image

It was crashing for me otherwise with the same symptoms as you described.

Sanaki commented 1 month ago

Looks like the latest beta has fixed this issue, perhaps simply through a build system update. Used OrcaSlicer_Linux_Ubuntu2404_V2.2.0-beta26.AppImage and it started up a-ok with no modifications.

jordicunillerarivera commented 1 month ago

For me installing Webkit2gtk, gst-plugins-base, and gst-libav from AUR fix the crash. The last one is only needed for the X1C camera.