MACOS 15.3 Siril 1.2.6 ARM64 Crash on Startup

Mac Mini M1, 1TB SSD, 16GB Memory. MacOS 15.3. Upon startup, Siril will momentarily display its window and then close that window (in a video of the startup I see “Looking for updates”. If I start Siril in a new clear User account on the same machine, I don’t experience this situation so it appears that there is something amiss in my primary account.

I’ve cleared all files in ~/Library/Application Support/Siril with no change.
I’ve also disabled all login startup again with no impact.

Log file follows:

Siril is started as MacOS application
Initializing FFTW multithreading support...
log: Welcome to siril v1.2.6
log: Supported file types: BMP images, PIC images (IRIS), PGM and PPM binary images, RAW images, FITS-CFA images, Films, SER sequences, TIFF images, JPG images, PNG images, HEIF images.
log: '/Users/tyler/Pictures' No such file or directory
OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
OMP: Info #276: omp_get_nested routine deprecated, please use omp_get_max_active_levels instead.
log: Parallel processing enabled: using 8 logical processors.
Successfully loaded '/Applications/Siril.app/Contents/MacOS/../Resources/share/siril/siril.css'
Successfully loaded '/Applications/Siril.app/Contents/MacOS/../Resources/share/siril/siril3.glade'
fetch_url(): https://siril.org/siril_versions.json
initializing CURL
log: Searching scripts in: "/Applications/Siril.app/Contents/MacOS/../Resources/share/siril/scripts"...
log: Loading script: Mono_Preprocessing
log: Loading script: OSC_Extract_Ha
log: Loading script: OSC_Extract_HaOIII
log: Loading script: OSC_Preprocessing
log: Loading script: OSC_Preprocessing_WithDrizzle
log: Loading script: RGB_Composition
scripts: Error opening directory “/Users/tyler/Users/tyler/Library/Application Support/org.siril.Siril/scripts”: No such file or directory
scripts: Error opening directory “/Users/tyler/.siril/scripts”: No such file or directory
scripts: Error opening directory “/Users/tyler/siril/scripts”: No such file or directory
log: Loading registration method: 1-2-3 Stars Registration (deep-sky)
log: Loading registration method: Global Star Alignment (deep-sky)
log: Loading registration method: Two-Pass Global Star Alignment (deep-sky)
log: Loading registration method: Image Pattern Alignment (planetary - full disk)
log: Loading registration method: KOMBAT (planetary surfaces or full disk)
log: Loading registration method: Comet/Asteroid Registration
log: Loading registration method: Apply Existing Registration
log: Default FITS extension is set to .fit
2025-02-02 14:34:40.182 siril[1237:15079] +[IMKClient subclass]: chose IMKClient_Modern
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSString stringWithUTF8String:]: NULL cString'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000018f966e80 __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x000000018f44ecd8 objc_exception_throw + 88
	2   Foundation                          0x0000000190a8bde0 __destroy_helper_block_e8_32o40r + 0
	3   Siril                               0x00000001025c1fb0 find_space + 64
	4   Siril                               0x00000001025c2180 update_displayed_memory + 92
	5   libglib-2.0.0.dylib                 0x0000000102d29500 g_timeout_dispatch + 84
	6   libglib-2.0.0.dylib                 0x0000000102d2da58 g_main_context_dispatch + 392
	7   libglib-2.0.0.dylib                 0x0000000102d2dda4 g_main_context_iterate + 444
	8   libglib-2.0.0.dylib                 0x0000000102d2de44 g_main_context_iteration + 116
	9   libgio-2.0.0.dylib                  0x000000010318e0d8 g_application_run + 608
	10  Siril                               0x00000001025678ec main + 1296
	11  dyld                                0x000000018f48c274 start + 2840
)
libc++abi: terminating due to uncaught exception of type NSException
0   Siril                               0x00000001025c9dfc signal_handled + 168
1   libsystem_platform.dylib            0x000000018f842de4 _sigtramp + 56
2   libsystem_pthread.dylib             0x000000018f80bf70 pthread_kill + 288
3   libsystem_c.dylib                   0x000000018f718908 abort + 128
4   libc++abi.dylib                     0x000000018f7c244c _ZN10__cxxabiv130__aligned_malloc_with_fallbackEm + 0
5   libc++abi.dylib                     0x000000018f7b0a40 _ZL28demangling_terminate_handlerv + 348
6   libobjc.A.dylib                     0x000000018f4593e4 _ZL15_objc_terminatev + 156
7   libc++abi.dylib                     0x000000018f7c1710 _ZSt11__terminatePFvvE + 16
8   libc++abi.dylib                     0x000000018f7c4cdc __cxa_get_exception_ptr + 0
9   libc++abi.dylib                     0x000000018f7c4c84 _ZN10__cxxabiv1L12failed_throwEPNS_15__cxa_exceptionE + 0
10  libobjc.A.dylib                     0x000000018f44ee40 objc_exception_throw + 448
11  Foundation                          0x0000000190a8bde0 __destroy_helper_block_e8_32o40r + 0
12  Siril                               0x00000001025c1fb0 find_space + 64
13  Siril                               0x00000001025c2180 update_displayed_memory + 92
14  libglib-2.0.0.dylib                 0x0000000102d29500 g_timeout_dispatch + 84
15  libglib-2.0.0.dylib                 0x0000000102d2da58 g_main_context_dispatch + 392
16  libglib-2.0.0.dylib                 0x0000000102d2dda4 g_main_context_iterate + 444
17  libglib-2.0.0.dylib                 0x0000000102d2de44 g_main_context_iteration + 116
18  libgio-2.0.0.dylib                  0x000000010318e0d8 g_application_run + 608
19  Siril                               0x00000001025678ec main + 1296
20  dyld                                0x000000018f48c274 start + 2840
Error, signal 6:
Please report this bug to: https://gitlab.com/free-astro/siril/issues

I don’t see anything that could cause the crash. As you’ve shown, it’s coming from your session. If you can find the cause, we’ll be happy to fix it.
Just to be sure, this is the dmg version of our site?

Thank you and Yes, this was the dmg download and installation via the dmg. I have read in other accounts of this type of error, that a null string, possibly in readdir can have this effect. On startup, what directories are parsed? On the very first startup, a dialog box is display offering tips. As soon as that box is closed the program shuts down. Have you any hints as to where I should begin my search? Does Siril utilize any environment variables? Thank you again.

As a bit of information, I downloaded the src code, ran “brew install siril” and ran siril from the command line. I followed the stack trace to “find_space”. In looking at the code, I see a variable, “com.wd” (working directory I believe from the src comments) is referenced. After looking for com.wd assignment in the code, I (on a whim) thought that there may be a command line argument to set the working directory. Indeed there is (-d) and executed siril from the command line and was successful in running the program (at least to the opening screen). I then tried to run siril from the installation dmg and that failed. In looking at the original log again, I noticed the message “/Users/tyler/Pictures - No such file or directory” was presented. In looking at my home directory, Pictures was a symbolic link to oneDrive and oneDrive wasn’t installed. I deleted the link and the Pictures symbolic link, tried again and it failed. I manually created the directory Pictures and all started to work. Siril 1.2.4 tolerated this situation (it had other issues - the OPEN and HOME button didn’t work - same problem?) but 1.2.6 did crash. I suppose if the directory was necessary, Siril should have generated an error dialog for the missing working directory and advised to user to correct the error.

Could you try this version by trying to reproduce all your crash conditions?
https://gitlab.com/free-astro/siril/-/jobs/9022014806/artifacts/download

This version is not signed, so you need to run first the xattr command that is written in the dmg image.

Thank you. I executed the following:

  1. Downloaded the file from the link above
  2. Unzipped the file
  3. Ran the dmg found in the zip and copied Siril to the Applications directory
  4. Executed sudo xattr -r -d com.apple.quarantine /Applications/Siril.app
  5. To simulate my error condition, Executed rm -rf ~/Pictures
  6. Ran Siril from Finder->Applications

Siril started and presented the GUI. OPEN and the HOME buttons did not work. I surmised that the lack of a working directory (~/Pictures) prevented these buttons from operating.

  1. Terminated Siril and executed mkdir ~/Pictures
  2. Ran Siril from Finder->Applications

Siril again started up and this time the OPEN and HOME buttons presented dialog boxes.

I’ve seen other people note the issue that OPEN and HOME didn’t seem to operate. Perhaps this was the reason?

Thank you for resolving this issue.