Start Finder window, go to /Applications and double-click RawTherapee
Rt does not start.
Nothing happens and no error or crash dump.
Start finder window, go to /Users/hn/programs/code-rawtherapee/build/release/MacOS
double-click rawtherapee
RawTherapee starts and seems to work fine
Crash when opening images from Rt in Photoshop
Start RT from /Users/hn/programs/code-rawtherapee/build/release/MacOS
Open image (CR3) in Rt and edit current image in external editor (Photoshop)
( open -b “com.adobe.Photoshop” )
close the image in photoshop
close the image in Rt and open another (CR3) image in Rt
open this image in photoshop
close the image in Photoshop
If you do this two to four times Rt crashes.
In the terminal window where Rt is started I see :
Last login: Wed Jun 15 20:51:28 on ttys002
/Users/hn/programs/code-rawtherapee/build/release/MacOS/rawtherapee ; exit;
hn@JhmnMac1 ~ % /Users/hn/programs/code-rawtherapee/build/release/MacOS/rawtherapee ; exit;
(rawtherapee:23045): GLib-GObject-WARNING **: 21:25:57.628: invalid cast from ‘GtkMenuBar’ to ‘GtkWindow’
(rawtherapee:23045): Gtk-CRITICAL **: 21:25:57.628: gtk_window_add_accel_group: assertion ‘GTK_IS_WINDOW (window)’ failed
OMP: Info #270: omp_get_nested routine deprecated, please use omp_get_max_active_levels instead.
OMP: Info #270: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
OMP: Info #270: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead.
zsh: bus error /Users/hn/programs/code-rawtherapee/build/release/MacOS/rawtherapee
Saving session…
…copying shared history…
…saving history…truncating history files…
…completed.
Tested some more.
The crash when opening an image in Photoshop or sending to queue does only happen with certain images.
So it is not dependant on how often you open images.
If i set the processing profile to neutral for such an image, it will open in Photoshop.
If i then set Detail > Defringe to on and try to open in Photoshop or sent to queue
Rt crashes.
Here is such an image 20210608-R05_3552.CR3 (53.9 MB)
The lens is not a parameter here.
Some images from this camera and lens combination with defringe on open fine in Photoshop
others make Rt crash.
This one with opens in Photoshop without crashing Rt when defringe is on. 20210323-R05_1055.CR3 (63.8 MB)
When just double clicking on /Applications/RawTherapee, Rt crashes but gives no crashdump.
If i start rawtherapee in a terminal (/Applications/RawTherapee.app/Contents/MacOS/rawtherapee )
i get a crasdump file.
It seems i got the code-signing fixed.
but running from /Applications still crashes.
library missing :/Applications/RawTherapee.app/Contents/Frameworks/libgtkmacintegration-gtk3.4.dylib
crasdump : CrashDump.txt (10.5 KB)
Ok, but show all the compilation steps before mkdir -p ~/programs as your dependencies are apparently not correctly deployed. Those steps and any error are crucial.
Without errors, the library is expected to be in Frameworks.
Let’s see the contents of Frameworks by issuing this command: ls /Applications/RawTherapee.app/Contents/Frameworks
I get a different error now. It’s complaining about the code-siging for that library
see Error.txt (10.9 KB)
If i check the code-siging for this library it looks ok
codesign -vvv /Applications/RawTherapee.app/Contents/Frameworks/libgtkmacintegration-gtk3.4.dylib
/Applications/RawTherapee.app/Contents/Frameworks/libgtkmacintegration-gtk3.4.dylib: valid on disk
/Applications/RawTherapee.app/Contents/Frameworks/libgtkmacintegration-gtk3.4.dylib: satisfies its Designated Requirement
Maybe i did not sign correctly.
Do you have a recipe for code-signing the build version with a self-signed root certificate ?
/Applications/RawTherapee.app: replacing existing signature
/Applications/RawTherapee.app: signed app bundle with Mach-O thin (arm64) [com.rawtherapee.RawTherapee]
Still same error
Termination Reason: Namespace DYLD, Code 1 Library missing
Library not loaded: /Applications/RawTherapee.app/Contents/Frameworks/libgtkmacintegration-gtk3.4.dylib
Referenced from: /Applications/RawTherapee.app/Contents/MacOS/rawtherapee
Reason: tried: ‘/Applications/RawTherapee.app/Contents/Frameworks/libgtkmacintegration-gtk3.4.dylib’ (code signature in <6198FF13-0B3E-3667-BC45-646DA84F1D2C> ‘/Applications/RawTherapee.app/Contents/Frameworks/libgtkmacintegration-gtk3.4.dylib’ not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), ‘/usr/lib/libgtkmacintegration-gtk3.4.dylib’ (no such file)
(terminated at launch; ignore backtrace)