Image files in google drive won't display in Safari for one user

Hi, all, 


Today, I found that image files in my Google Drive would not load and display when I am using Safari on my 2021 M1 iMac. Yesterday I had no problems doing exactly the same thing, including working with the same image files. The error message reads “Couldn’t preview file. There was a problem displaying this image.” Images displayed normally when using other browsers. This happened under Safari 18.3 and macOS 15.3 and continued to happen after I updated to 18.4 and 15.4. Things I tried to no effect included clearing Safari’s cache and rebooting in safe mode. 


I discovered that Google Drive images did display properly if I used a Safari private window, whether I was in regular or safe mode. 


I created a new user on the iMac and encountered no problems with Safari displaying Google Drive images when using that account, so the problem seems to be specific to my normal user account, which I have been using continuously since the computer was new. 


Is there anything I can try to clear up the problem with my regular user account? 


Thanks in advance,


Jayson

iMac 24″, macOS 15.4

Posted on Apr 3, 2025 06:12 PM

Reply

Similar questions

11 replies
Sort By: 

Apr 4, 2025 06:54 AM in response to Jase the C

It seems that you exhausted all the usual troubleshooting steps, and I can think of nothing else other than to methodically isolate the problem to one or more Safari-related files in that User Library.


The procedure is along the lines of this old Discussion, which described a more serious problem as its title describes: *Unable to open safari at all* Review it at your option so that you may familiarize yourself with what may be required.


The following is an excerpt from that lengthy exchange, which was ultimately resolved. It will be time-consuming and tedious, but success is nearly assured. If I had anything better to suggest I would.


Back up all data as a matter of course (should go without saying).



Quit the Safari app if it is open.


Then, navigate to your User Library by typing the following in the Finder's Go menu > Go To Folder... field.


~/Library


Make it look like this



... and click the Go button. A Finder window will open. The files it contains are some of your User Account - specific files that could be contributing to the problem. Other User Accounts have their own User Libraries.


From there, your task is to find certain Safari-related files and drag them out of their locations and onto the Desktop. Each time you do that, open Safari again and determine if the problem is fixed or not. Quit Safari if it is not fixed, and proceed to the next step. Stop when it's fixed.


Open the folder named Saved Application State. Drag the file named com.apple.Safari.savedState onto the Desktop. Then, back out of that folder (use the "back button") which returns you to ~/Library or just repeat the same Go To Folder actions you did before.


Repeating the same general instructions, open the ~/Library/Preferences/ folder. In it, find com.apple.Safari.plist and drag it onto the Desktop.


That is as far as I'll go for the time being, but you should have the general idea. The worst thing that could happen is that you will be logged out of websites and / or have to provide login information or whatever other website preferences may have been affected, in which case you could always drag those files back into their original locations. Let me know if anything helps.

Reply

Apr 4, 2025 07:05 AM in response to Jase the C

Another idea, along the lines of my previous reply.


Consider copying the entire ~/Library/Safari folder from the test account to Shared, and then drag it into the affected User Account's Library. Be sure to drag or copy the affected user's ~/Library/Safari folder to the Desktop or somewhere else first so that you can easily undo that action.


That may shortcut the aforementioned tedious procedure. Be advised however I have not attempted to do that myself so be sure to follow all appropriate precautions (backups, etc).


I would not advise anyone to do that unless they appeared to be sufficiently experienced, but you seem to be.

Reply

Apr 5, 2025 06:16 PM in response to John Galt

Thanks for your advice, John. I'll start down your suggested path when I have some time free to focus on it. And I'll report back on the results. The only thing I've done in the user Library folder so far is to remove the existing Safari preferences (plist) file just due to that having fixed a number of unrelated Safari anomalies in the past. (It didn't have any effect this time.) My data is routinely and redundantly backed up, so I'll be good on that front.


Jayson

Reply

Apr 5, 2025 06:44 PM in response to Jase the C

... The only thing I've done in the user Library folder so far is to remove the existing Safari preferences (plist) file just due to that having fixed a number of unrelated Safari anomalies in the past.


That would have been grabbing some low-hanging fruit, and I wouldn't expect it to have had any effect on that particular problem. It will be one of the many others in ~/Library/Safari and there are dozens of them. You can pick through some of the mort likely candidates; sometimes you get lucky.

Reply

Apr 7, 2025 12:25 PM in response to John Galt

I ended up doing a complete erase and OS reinstall on my iMac. I don't know if that was necessary to treat the specific Safari–Google Drive issue, but it certainly did the trick.


I first followed the procedure that you suggested of replacing the Library Safari folder with a copy of the clean one from the new Test user. Strange behavior ensued. That actually fixed the issue the first time I launched Safari after doing the replacement. But when I quit Safari, I noticed that all the items that normally reside on the Desktop had disappeared—the hard drive and a number of files and folders. (I think there was one other Finder oddity, but I can't remember what it was.) I relaunched the Finder to no effect. I opened Safari again to check out the Google Drive situation, and the problem of not displaying images had returned. I could not recreate that one successful outcome (nor the odd Finder issue) despite several do-overs of the procedure that included restarts.


Because of that oddity and despite the original issue being limited to one user account, I decided to see if an OS reinstall through Recovery mode would have an effect, since that is pretty simple and undemanding on recent Macs. Interestingly, the result was a kernel panic—the reinstall process completed much more quickly than expected and yielded a problem report. I tried a handful of times, always with the same result. Not a good sign. So, whatever relationship this did or didn't have with the original issue, I decided to grab the bull by the horns and wipe my drive and start over with a fresh installation. It didn't seem like it would be much more painful than going through Safari related Library files one by one to isolate the Google Drive issue, plus it occasioned a good opportunity to do a spring cleaning of my Mac.


So now I have working Google Drive images, a couple hundred GB of reclaimed free disk space, and a fitter and trimmer system. It's the first time I did a clean install on an Apple silicon Mac, and I am impressed by how quickly it went. I approached putting back apps in a parsimonious way, so I expect that I will continue to find things that I want to restore from my backups to my working system for quite a while still.


Even though I ended up taking a different direction, your responses were helpful. Thanks.


Reply

Apr 7, 2025 01:30 PM in response to Jase the C

Yikes. That sounds like quite the nightmare.


It's anyone's guess what might have happened. Of courser the nuclear option you chose will always work, but it should not have been necessary. Nor should anything have resulted in even more problems like the KP.


Everything you did points to some other underlying cause that we may never know, but there is only so much time your or anyone can be expected to devote to solving problems such as this. I prefer a more methodical approach, when I have the time, which isn't always the case.

Reply

Apr 12, 2025 11:25 PM in response to Jase the C

I had written a longer post that I've now erased about the problem that originally afflicted my iMac appearing on my M2 MacBook Air earlier today—actually, April 12—and then disappearing a little while ago after I'd logged out of and back into my Google account. But I thought I would wait for the problem to show its head again and then write about it when I am not quite so tired.

Reply

Apr 27, 2025 03:32 PM in response to John Galt

Yes, I had also started to think the problem was a Google issue. The problem appeared once on a second Mac, my MacBook (as I reported in my 4/13 post), but was cured by logging out and back in to my Google account and has not appeared since. The original issue affecting my iMac has not reappeared in the two weeks since I did a clean reinstall of the system. I don't and won't know what the cause was but things seem normal and stable now.

Reply

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.

Image files in google drive won't display in Safari for one user

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