prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.71k stars 1.93k forks source link

2.4.0 crashes on startup on ARM64 MacOS 12.1 #7760

Closed chudsaviet closed 2 years ago

chudsaviet commented 2 years ago

Version

2.4.0

Operating system type + version

MacOS 12.1 ARM64

3D printer brand / version + firmware version (if known)

Does not apply

Behavior

Starting PrusaSlicer in ARM64 mode, it crashes immediately. OS report attached. PrusaSlicer-2.4.0-MacOS-ARM64-Report.log

Project File (.3MF) where problem occurs

Does not apply.

chudsaviet commented 2 years ago

Tried to start from command line and got next error:

user@machine MacOS % pwd
/Applications/PrusaSlicer.app/Contents/MacOS
user@machine MacOS % ./PrusaSlicer
[2022-01-15 12:20:24.125899] [0x00000001047a4580] [trace]   Initializing StaticPrintConfigs
[2022-01-15 12:20:24.352665] [0x00000001047a4580] [error]   3dx drivers module loading error: dlopen(/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient, 0x0005): tried: '/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient' (no such file), '/System/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient' (no such file)
2022-01-15 12:20:24.465 PrusaSlicer[48126:364102] *** Assertion failure in void set_surface_colorspace(CGSConnectionID, CGSWindowID, CGSSurfaceID, CGColorSpaceRef _Nonnull)(), NSCGLSurface.m:118
Unhandled unknown exception; terminating the application.
zsh: abort      ./PrusaSlicer

Looks like it tries to load proprietary 3DConnexion library.

chudsaviet commented 2 years ago

Fixed by reverting color profile for the external LG display.
It looked the problem is not isolated to PrusaSlicer, but also ColorProfile utility was crashing. Big thanks to hendriks73 from OBS forum: https://obsproject.com/forum/threads/obs-crashing-just-after-first-window-adding-e-g-a-video-capture-device-with-exception-cgssetsurfacecolorspace.149990/