Pictures library empty after WindowServer quit (MacBook Air - Sonoma 16.6.1)

I accidentally force quit WindowServer a couple of days ago whilst logged in as myself (we have several user logins set up - one for Administrator and others for family members). At the time, I wasn't even sure if I had force quit, because nothing happened i.e. the Mac didn't shut down/reboot and I just carried on using it as normal. Today I logged in as Administrator, opened the Photos app (where all our photos are stored), and it was completely empty. I opened the Pictures library and that is completely empty. All our photos appear to have disappeared.


We do not have Time Machine set up.


Where are my photos and how can I get them back? Weirdly when I log in as myself and open Photos, I can still see the photos that I saved under my own login. So if I did force quit WindowServer, it hasn't affected individual logins but has affected the Administrator login.


Can anyone help? I had about 15 years worth of photos stored on the Mac - we have many photos saved on another device, but no other back up for the more recent ones. Thank you.

Posted on May 5, 2025 1:42 AM

Reply
Question marked as Top-ranking reply

Posted on May 6, 2025 9:21 AM

A Photos Library is usually kept in the Pictures folder for a user. Only that User has access to it. Each user gets their own Photos Library that is available only to them. The Administrator account has no access to any personal User accounts. When you opened Photos in the Administrator account, it created a new Photos Library for it, if there wasn't one already available.


If a Photos Library is in a folder that is in the general Users folder, then it can be accessed by any user.


If you close Photos and option-click on the Photos icon, it will bring up a Library Chooser dialog

and I can see that one of my Libraries is in the Users folder rather than in my user's folder. This will be available to all users. Each user has a "Public" folder, but users will need to be approved, I think. There may be some messing with permissions as Libraries are moved around.


The point here is that there can be several Photos Libraries, you may not be seeing the one you though. The Library Chooser shows the last one you used in that account.


Is this what's going on?

Similar questions

8 replies
Question marked as Top-ranking reply

May 6, 2025 9:21 AM in response to 84South

A Photos Library is usually kept in the Pictures folder for a user. Only that User has access to it. Each user gets their own Photos Library that is available only to them. The Administrator account has no access to any personal User accounts. When you opened Photos in the Administrator account, it created a new Photos Library for it, if there wasn't one already available.


If a Photos Library is in a folder that is in the general Users folder, then it can be accessed by any user.


If you close Photos and option-click on the Photos icon, it will bring up a Library Chooser dialog

and I can see that one of my Libraries is in the Users folder rather than in my user's folder. This will be available to all users. Each user has a "Public" folder, but users will need to be approved, I think. There may be some messing with permissions as Libraries are moved around.


The point here is that there can be several Photos Libraries, you may not be seeing the one you though. The Library Chooser shows the last one you used in that account.


Is this what's going on?

May 8, 2025 4:43 AM in response to Richard.Taylor

UPDATE - two minutes after posting my last message, I went in to the documents folder to look at what files we had stored there, and there was another photos library file in there, containing all the missing images! I have now moved that into the 'Pictures' folder and selected it as the default library!


I am completely at a loss to how the folder got moved into the documents folder (as I had never actually looked in the Pictures folder prior to this incident), or where the other (empty) Photo Library.photolibrary materialised from. Thank you for your help. I'm off to back up the computer!

May 7, 2025 7:21 AM in response to 84South

OK-- so this is the Library that's available in your own User's account. I'm guessing that if you choose this Library you see your pictures as you expect. It shows this to be the System Library, and it's in you Pictures folder.


What do you see if you do the do the same thing on the Administrator's account?


The name doesn't tell you much, because the default name for every Library is always "Photos Library.photoslibrary." But it will show a path to the Administrator's Pictures folder.


If you want the Library that's in your Pictures folder to be available to all the users, then you should rename it something clever, and put it directly iin the main Users folder. The Europe Library I showed before

Is in the main Users folder, so it's available to all users on this machine.


If you move it, you can open it from your name account with a double click. You may want to make it your System Library-- the library that is used by other apps like Mail and Safari. You do that by going to Photos' Settings>General

You can see the path, here, and you should check "Use as System Photos Library" so that it becomes grayed out.


Let us know if this is working for you…

May 8, 2025 6:49 AM in response to 84South

I'm glad you found your Library! Keep in mind that "Photos Library.photoslibrary" is not a unique name, and every user can have one, so it can be very confusing. The library at "Users/USER#1/Pictuers/Photos Library.photoslibrary" is available only to USER#1, while a library at "Users/Photos Library.photoslibrary" is available to everyone. A library at "Users/USER#1/Documents/Photos Library.photoslibrary" is also available only to USER#1.


I would think that the Library that was in Documents should show up in you own user's Library Chooser.

May 8, 2025 4:32 AM in response to Richard.Taylor

I'm not sure if I've fully understood, however, the images I posted below are in fact from from the Administrator account, not an individual User account. To clarify, in Administrator I can only see one option - Photos Library.photoslibrary- and that folder now contains no images (whereas before there were thousands in there.) If I go to my own user account, I have the option of my library "Photos Library2.photoslibrary" containing a few images that are stored in my account, as well as the Photos Library.photoslibrary original library (ie. the same one from the Administrator account). However, I have just opened Photos Library.photoslibrary via my user account, and this folder now contains a different set of images - some old ones that I stored in the Cloud years ago. So somehow that folder is now synced to iCloud, but only within my User account? I am at a loss.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Pictures library empty after WindowServer quit (MacBook Air - Sonoma 16.6.1)

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