Orca Slicer segfaults when not run as root

Hi there, NixOs noob here. I’m currently in the process of getting all my commonly used windows apps to run under nixos, and so far almost everything went really well.
One app I’m currently struggling with is orca slicer.

Im running Plasma6 / Wayland / Nvidia.

I installed orca slicer with orca-slicer in the user packages in my nixos config. Also tried the unstable branch package, same behaviour.

When running orca via the normal plasma launcher gui, nothing happens. When running orca-slicer from terminal, I get (in nushell):

~> orca-slicer                                                                                                                                                                                                           01.02.2025 22:41:52
Error: nu::shell::core_dumped

  × External command core dumped
   ╭─[entry #4:1:1]
 1 │ orca-slicer
   · ─────┬─────
   ·      ╰── core dumped with SIGSEGV (11)
   ╰────

Running it as sudo works and opens the gui.

Runnning gui apps as sudo is highly discouraged, so I wonder why this is required. Anyone else having trouble with this? How can i get it to run as normal user?

This is also annoying because the config is now situated in /root/.config instead of ~/.config.

Can you strace the program when run as your regular user? We’d want to know why it’s crashing, i.e. what it’s trying to access (and failing).

FWIW I tried running orca-slicer as my regular user - it shows no errors and starts up fine.

Thanks for taking the time to help out
Thanks for pointing me to strace, that seems really useful!
Annoyingly, when starting with strace, orca just works! Now I’m even more confused.