Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

An unexpected error has occurred

I wanted to try out the new Photos app. So I do ALL the upgrades and the new 10.10.3 has "Photos". I open it and get the splash screen and click "Get Started" and instantly I see a dialog box that reads "An unexpected error has occurred. Please quit and restart the application" I've done the quit and restart about 10 times and also done a reboot and power cycle.


The failure occurs instantly as soon as I click the big blue "Get Started" button. It is 100% reproducible.

Posted on Apr 10, 2015 6:08 AM

Reply
9 replies

Dec 23, 2017 11:18 AM in response to CJAlbertson

Thank you so much CJAlbertson! This worked! I've had my Photos trapped for an entire year!


In fact, I also had to rename an old iPhotoLibrary.migratedphotolibrary file to iPhotoLibrary.photoslibrary and then the library selection window allowed me to choose the old file. Then it migrated it properly after following your steps. (Hold option.)

Apr 10, 2015 6:23 AM in response to CJAlbertson

It is hard to say, why this is happening.

Is there a crash log, when you press the "report" button? What does the error message say?


Can you launch Photos, when you hold down the alt/options key when launching it and starting it on a new Photos library?


Holding down the alt/options key will bring up a library chooser, so you can select to create a new empty Photos library instead of migrating an old library.

Apr 10, 2015 11:55 PM in response to CJAlbertson

I found the problem myself. (I've been a UNIX software dev. for 20+ years) It's a bug in Photos.


When Photos starts up the first time it tries to create a library. It ties to do this in ~/Pictures. But in my case this is a symbolic link. The Photos apps fails to check if this is a link and tries to create a new directory. This of course fails. The correct why to to this is the ALWAYS check and follow sym links until you get to the en of the chain and THEN build the new directory there. If you start up Pages holding the option key than Photo does this as it should. It seems to be a simple oversight, the programmer forgot this


The other cardinal rule they broke is that you need to check for errors after EVERY (yes EVERY) system call so that you can generate good error and informative messages. Photos just says "unexpected error" with no indication of what went wrong. The message dialog box did not offer more information, just "unexpected error"


Most users likely don't know how to figure out what's going on at this level

Apr 12, 2015 2:01 PM in response to CJAlbertson

Glad you could solve it.

The message dialog box did not offer more information, just "unexpected error"

Was there no "report" button in the error panel? That usually shows the ful crash log with more specific error messages.


It ties to do this in ~/Pictures. But in my case this is a symbolic link. The Photos apps fails to check if this is a link and tries to create a new directory. This of course fails.

Are you sure, a symlink for the Pictures folder is supported in MacOS X? It is after all a special folder, created by the system. The only special folder that I know of, that can be relocated to another place is the Home folder. There is an option for it in the system Preferences.

Apr 12, 2015 3:35 PM in response to léonie

Are you sure, a symlink for the Pictures folder is supported in MacOS X? It is after all a special folder, created by the system. The only special folder that I know of, that can be relocated to another place is the Home folder. There is an option for it in the system Preferences.


Yes. The new Photos app seems to work fine with the sum link. It will even create a new library using the sym link. But fails if you try it using the big blue "get started" button. It appears there is more than one place in the code where the library is created and only one of them fails.


About the dialog box: No the error gives no more information and there is not option to report it. The Photos app did not crash. It looks like this dialog box was put up by some top level exception handle. Photos normally terminates after you click through this message

May 6, 2015 2:36 AM in response to CJAlbertson

I have the same problem, and found this post because I searched on Google "apple photos crash symbolic link" since I'm a Unix user since ages like you 🙂

My Mac partition is on my SSD, while Pictures is on an NTFS partition of a normal hard, so I made the symlink.

Do you have a workaround? The problem is at startup as you know, so even launching the app wih "alt/option" and selecting a new library does not solve the problem.

Thanks!

May 6, 2015 3:42 AM in response to scognito

The Photos Library does not need to be in the Pictures folder, you can keep it on an external drive. I'd move it out of your sym-linked Pictures folder to another folder on the external drive, to take the symlink out of the equation.


The format of your drive may be a problem. Apple recommends to use drives formatted MacOS Extended (Journaled). If your drive has a different format to be able to share your Photos with Windows machines, you will not be able to sync the library with iCloud Photo Library.


By default, your System Photo Library is stored in the Pictures folder on your Mac, but you can move it to another location on your Mac or store it on an external storage device. However, to use iCloud services, the external storage device must be formatted using Mac OS Extended (Journaled) format, also known as HFS+.


https://help.apple.com/photos/mac/1.0/?lang=en#/pht211de786


We have seen quite a few posts, where the startup with the big blue "get started" button terminated with this error message, when the Photos library was on a drive, that was not formatted MacOS Extended (Journaled).

An unexpected error has occurred

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.