OrcaSlicer icon indicating copy to clipboard operation
OrcaSlicer copied to clipboard

Application crash upon exit

Open Barkingmad15 opened this issue 1 month ago • 4 comments

Is there an existing issue for this problem?

  • [x] I have searched the existing issues

Snapmaker_Orca Version

2.4.0 appimage

Operating System (OS)

Linux

OS Version

Kubuntu 26.04 LTS

Additional system information

Operating System: Kubuntu 26.04 LTS KDE Plasma Version: 6.6.6 KDE Frameworks Version: 6.24.0 Qt Version: 6.10.2 Kernel Version: 7.0.0-38-generic (64-bit) Graphics Platform: Wayland Processors: 20 × 12th Gen Intel® Core™ i7-12700K Memory: 32 GiB of RAM (31.1 GiB usable) Graphics Processor: Intel® Arc Manufacturer: ASUS

Printer

Snapmaker U1

How to reproduce

Run appimage as normal Slice item & send to printer Exit application

Actual results

Application exits but I get a crash report every time

Expected results

Application should close without error

Project file & Debug log uploads

Archive.zip

Checklist of files to include

  • [x] Log file
  • [x] Project file

Anything else?

I have been attempting to run your 2.4.0 flatpak file previously & while it installs it crashes on system start. I reached out to the tech support email but I just get told you are only supporting Ubuntu 24. My system is Kubuntu 26.04 which is identical to Ubuntu 26.04 but with KDE desktop instead of Gnome. I am using this appimage as it is the only version that runs, kind of anyway. Interestingly enough the main version of Orca slicer that is on the flathub registries installs & runs perfectly but I am unsure of the differences between Snapmaker Orca & Orca slicer main so I opted for caution with your software.

I have tried fresh installs of the OS, including other variants such as Ubuntu itself, Fedora & even aarch & they all end with the same result.

Barkingmad15 avatar Oct 14 '26 11:10 Barkingmad15

I'm seeing this as well. Adding some core dump details:

PID: 69766 (snapmaker-orca)
           TID: 69766 (snapmaker-orca)
           UID: 1000 (plyons)
           GID: 1000 (plyons)
        Signal: 11 (SEGV) si_code: SEGV_MAPERR
     Timestamp: Fri 2026-10-30 09:12:49 MDT (3min 13s ago)
  Command Line: /tmp/.mount_snapmaHJcMKb/bin/snapmaker-orca
    Executable: /tmp/.mount_snapmaHJcMKb/bin/snapmaker-orca
 Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/app-niri-wlr\x2dwhich\x2dkey-69721.>
          Unit: [email protected]
     User Unit: app-niri-wlr\x2dwhich\x2dkey-69721.scope
         Slice: user-1000.slice
     Owner UID: 1000 (plyons)
       Boot ID: 278043beabf64727b1a5861b7d6c1689
    Machine ID: feb3b647334b4e7c8a90f7eca9517a72
      Hostname: tool
       Storage: /var/lib/systemd/coredump/core.snapmaker-orca.1000.278043beabf64727b1a5861b7d6c1689.69766.1>
  Size on Disk: 82.5M
       Message: Process 69766 (snapmaker-orca) of user 1000 dumped core.
                
                Stack trace of thread 69766:
                #0  0x000055bcb5d57647 n/a (/tmp/.mount_snapmaHJcMKb/bin/snapmaker-orca + 0x4e01647)
                #1  0x000055bce18a31a0 n/a (n/a + 0x0)
                ELF object binary architecture: AMD x86-64

focusaurus avatar Oct 30 '26 15:10 focusaurus

I triaged this against the v2.4.1 source (I'm Muse, an AI assistant, doing this triage under Marlena and Breandan Sharpe's direction). A crash on exit is typically a shutdown-order issue — an object or background thread destroyed after the app context is gone — but I couldn't pin it to a specific code path from the evidence here, so I don't want to guess at a fix.

The core dump @focusaurus pasted on Oct 30 only has two stack frames and neither is symbolicated (n/a addresses), so it doesn't identify which thread or object crashed:

#0  0x000055bcb5d57647 n/a (snapmaker-orca + 0x4e01647)
#1  0x000055bce18a31a0 n/a (n/a + 0x0)

Could someone with the core file (or a fresh crash) post a symbolicated backtrace — e.g. gdb on the core, or addr2line against the binary — with the top frames? That would show which thread is exiting and what it was destroying, and then a fix can be targeted at the right place.

creat3dworld avatar Nov 27 '26 00:11 creat3dworld

The exit crash is fixed on main — a gateway-websocket shutdown lifetime issue: an asio handler still held a Session reference past io_context teardown, causing the SIGSEGV. The fix releases the Session reference explicitly in close_locked()/send() (GatewayService.cpp) and ships in 2.4.2. If it still crashes after 2.4.2, send a symbolicated backtrace (gdb or addr2line, top frames) and we'll reopen.

gushanji avatar Nov 27 '26 01:11 gushanji

Confirming this is already fixed on main (I'm Muse, an AI assistant, doing this triage under Marlena and Breandan Sharpe's direction).

I verified the fix gushanji described is present in origin/main (GatewayService.cpp: the comment "Keep io_context alive through post, but release Session before io_context can be destroyed" is there, and close_locked()/send() release the Session reference explicitly) and absent in v2.4.1 (no such comment; close_locked at the old location has no release). So the exit crash this issue reports is fixed by the 2.4.2 change and needs no further patch — this issue can be closed.

creat3dworld avatar Nov 27 '26 03:11 creat3dworld