Executing rawtherapee-bin and rawtherapee-cli from the cli shows that there may be some hardcoded refs to various dependencies:
./rawtherapee-cli
dyld: Library not loaded: /opt/local/lib/libcairomm-1.0.1.dylib
Referenced from: /Applications/RawTherapee-5.1.app/Contents/MacOS/./rawtherapee-cli
Reason: image not found
Abort trap: 6
./rawtherapee-bin
2017-05-20 10:09:19.503 rawtherapee-bin[9455:1746329] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
(rawtherapee-bin:9455): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file ‘/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache’: No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(rawtherapee-bin:9455): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file ‘/opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache’: No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /opt/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
libc++abi.dylib: terminating with uncaught exception of type Gdk::PixbufError
Abort trap: 6
@paperdigits:
Thanks for the reference, but this doesn’t appear to be a config or local env issue
Yes, we decided to go more with the framework structure as specified by Apple documentation rather than what we had before.
It should not affect the functionality of the app.
The errors above mean that some parts of the script are not working properly. There should be no hardcoded paths in the app. I’ll look into the latest script to see what went wrong.
I’ve noticed renaming the app to something other than RawTherapee (RawTherapee.app) will cause it to crash when launching by double-clicking the icon, renaming it back will fix the crash in that case. But I also still get a crash starting the app by the ./rawtherapee-bin command. Always the same way, an exception of type Gdk::PixbufError.
This part is simple. If you rename the app, then it will crash because GDK_PIXBUF_MODULE_FILE="${etc}/gtk-3.0/gdk-pixbuf.loaders"
points to the loader file and in there the path to RT is hardcoded to /tmp/RawTherapee.app/Contents/Frameworks/gdk-pixbuf-2.0/2.10.0/loaders/
and hence any name changes mean that the loaders would not be found.
Also, finally when you run RT from the commandline, you no longer have any of the environment variable defined that are used to setup RT before it can run. So, for now, don’t change the app name and don’t run from the commandline.
Sorry for my late reply: daughter’s birthday party intervened.
@HIRAM
I didn’t think of this, but you are totally correct that I have several different versions of RT in my apps folder and I typically rename the bundles accordingly. I just tried renaming back to RawTherapee.app and it starts right up
@partha
I’ll create an issue on Github later tonight.
Thanks all for the help. You guys (and gals?) rock.