How to fix crashes on startup

The most likely reason RawTherapee might crash immediately after starting is because it loads a problematic processing profile (PP3, they store all the tweaks you make in RawTherapee, one PP3 per photo) or a problematic photo. The reason one of those could be problematic might be because it is corrupt, but it could also be that the file in itself is fine but triggers a bug in RawTherapee, or some aspect of it is unsupported, such as character encoding of the metadata, multiple layers in an image, more or less than three color channels, etc.

Note: RawTherapee only supports images with three color channels - RGB (or possibly CMY). If you try opening a directory which contains grayscale image files, or ones with four color channels (e.g. CMYK) RawTherapee will throw up an error popup window. Move these out from the startup directory elsewhere, as described below. Of course it might be a valid RGB photo or processing profile that crashes RawTherapee, but first check for non-RGB ones, as these are quite common causes of crashes.

To find the cause of the problem, we will begin with the least invasive and most informative steps, and escalate up to the most destructive steps if the informative ones do not help.


 * 1) First, have RawTherapee use a different startup folder:
 * 2) Find the "options" file as described in the File paths page.
 * 3) Open the "options" file in a text editor like Notepad++ and see what these two lines are:
 * 4) Make sure the first one is
 * 5) Create a new empty directory somewhere on your disk,
 * Windows:
 * Linux:
 * 1) Change the   argument to the directory you just created (it must be an existing directory which does not contain any photos or PP3 files, and you have to type the whole, absolute path, no shortcuts, with double back-slashes if you use Windows) e.g.
 * Windows:
 * Linux:
 * 1) Now try starting RawTherapee again. If it works, then you know that one of the photos or PP3 files in the original   is faulty, so skip step 2 and jump straight to step 3. However, if RawTherapee still crashes right after starting, proceed to the next step.
 * 2) Delete the   folder:
 * 3) Find the "batch" folder as described in the File paths page, and delete it.
 * 4) Now try starting RawTherapee again. If it works, then you know that one of the processing profiles of the photos you sent to the Queue is faulty. Finding which one would be a pain in the ass and I wouldn't bother, but if you really want to, then the next main point section "Nail it down" applies. If it doesn't work, then the problem is not a faulty photo or PP3, the problem lies elsewhere, outside the scope of this guide.
 * 5) Delete the   folder:
 * 6) Find the "cache" folder as described in the File paths page.
 * 7) Move (cut) the   directory elsewhere, somewhere where RawTherapee will not look. Instead of moving it you can just delete this   directory, but be warned: if you set RawTherapee to only store processing profiles (PP3) in the cache, then you will lose your tweaks. You will not lose any photos. If you do not know whether you did, then you did not, because by default RT stores processing profiles alongside the raw files, not in the cache.
 * 8) Now try starting RawTherapee again. If it works, then you know that one of the processing profiles files in the cache is faulty. Finding which one would be a pain in the ass and I wouldn't bother, but if you really want to, then the next main point section "Nail it down" applies. If it doesn't work, then the problem is not a faulty photo or PP3, the problem lies elsewhere, outside the scope of this guide.
 * 9) Nail it down
 * You've established that either a processing profile or photo is to blame for the crash. It would be most helpful if you could nail the problem down to a specific file, so that we can analyze it and develop techniques for dealing with such an enemy. See the guide to stack-backtraces. If you can follow those instructions, a backtrace would be of great value, yet even a backtrace might not expose the problematic file, so read on. By now you should know which directory contains the faulty file(s) and you should have either set RawTherapee to start up using a different directory, or you have moved the cache out somewhere else. To make it clear, let us assume three things:
 * 1) * That the directory which contains a file that crashes RawTherapee is  and that your options file had
 * 2) * That you changed  in the "options" file to the existing and empty
 * 3) * That there are 100 photos in the faulty directory,  -
 * Let's find the faulty file:
 * 1) This is grunt work. I use raw files as examples, but in your case it might be the processing profiles, not the raw files. Or it might be JPEG files, PNG files, or any other file in the faulty dir. What we're going to do is to keep halving the pool of possibilities until we find the problem. This is the fastest way.
 * 2) If RawTherapee is running, close it.
 * 3) Move half of the files (  -  ) from this problematic directory  back into a directory that RawTherapee reads
 * 4) Start RawTherapee.
 * 5) If it crashed, go to the next step. If it did not crash, then go back to step 4.3, but move the other half (  -  ).
 * 6) Move half of the files you just moved (  -   or   -  ) out from   and back into the directory which RawTherapee doesn't read.
 * 7) Jump back to step 4.4. Repeat until you find the faulty file.
 * 1) If it crashed, go to the next step. If it did not crash, then go back to step 4.3, but move the other half (  -  ).
 * 2) Move half of the files you just moved (  -   or   -  ) out from   and back into the directory which RawTherapee doesn't read.
 * 3) Jump back to step 4.4. Repeat until you find the faulty file.

Zip this faulty file (even if it's a text PP3 file, because zipping it will prevent any website from touching it and possibly removing the cause of the crash [it could be something you can't see]), upload it to FileBin and link us to it in the Forum.