Leopard's Preview app doesn't work. Help.

lord patton

macrumors 65816
Original poster
Jun 6, 2005
1,050
4
Chicago
It just doesn't work. If I double click on a PDF, Preview opens but displays nothing. If I open Preview and command-o to open a file, nothing happens. I've also tried opening jpegs with the same (non)-result.

I haven't heard anyone else have this issue. Any ideas? FWIW, quick look works fine with pdfs (and is a good work around for the time being).
 

lord patton

macrumors 65816
Original poster
Jun 6, 2005
1,050
4
Chicago
3 hours on the phone with AppleCare and still no solution. What I know:

Preview works in a new user account.
Preview worked immediately after installation of Leopard last Friday night.
I haven't downloaded any new programs or done anything unusual since that time.

What we tried:

Repairing permissions (takes a LONGGGGGG time in Leopard)
Verifying the disk.
Trashing the Preview preferences.
Trashing all the preferences.
Removing all login and startup items.

And some other stuff, but nothing worked. The "product specialist" (who did know what he was doing, unlike the first lady I talked to) has sent it to engineering, so they might get back to me.

If it persists, I might do a clean install. For now, though, I can live with it, since QuickLook works.
 
Comment

mcdonc

macrumors newbie
Nov 1, 2007
4
0
Same issue

I have the same issue, FWIW. I did an in-place upgrade to Leopard from Tiger. I'd love to know if they help you resolve it in any way.
 
Comment

mcdonc

macrumors newbie
Nov 1, 2007
4
0
Note that these messages show up in the console log when Preview attempts to open a file:

11/1/07 9:41:20 PM Preview[340] tempFileFolderPath failed
11/1/07 9:41:20 PM Preview[340] *** -[NSPathStore2 rangeOfString:eek:ptions:range:locale:]: nil argument

Googling for tempFileFolderPath returns nothing useful.
 
Comment

lord patton

macrumors 65816
Original poster
Jun 6, 2005
1,050
4
Chicago
Note that these messages show up in the console log when Preview attempts to open a file:

11/1/07 9:41:20 PM Preview[340] tempFileFolderPath failed
11/1/07 9:41:20 PM Preview[340] *** -[NSPathStore2 rangeOfString:eek:ptions:range:locale:]: nil argument
.
My product specialist had me look at the console log, as well. Same error messages, too. He had me send him some data from system profiler, so just know that some engineer in Cupertino (or wherever) might get around to figuring out what's happening.

I think I'm going to clean install and start over.
 
Comment

mcdonc

macrumors newbie
Nov 1, 2007
4
0
Fixed it...

I fixed it, at least temporarily.

The permissions on my admin user's temporary directory were incorrect:

[chrism@vitaminf Preferences]$ ls -alR $TMPDIR
/var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/:
total 0
drwxr-xr-x 3 root chrism 102 2007-11-01 03:20 .
drwxr-xr-x 4 root chrism 136 2007-11-01 03:20 ..
prw------- 1 chrism chrism 0 2007-11-01 02:27 com.apple.notify.125.30
[chrism@vitaminf Preferences]$ touch $TMPDIR/foo
touch: cannot touch `/var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-//foo': Permission denied
chrism@vitaminf Preferences]$ sudo chmod 775 $TMPDIR
Password:
[chrism@vitaminf Preferences]$ ls -alR $TMPDIR
/var/folders/dB/dByJ-qkiE6igZD4Yrm+nMk+++TI/-Tmp-/:
total 0
drwxrwxr-x 3 root chrism 102 2007-11-01 03:20 .
drwxr-xr-x 4 root chrism 136 2007-11-01 03:20 ..
prw------- 1 chrism chrism 0 2007-11-01 02:27 com.apple.notify.125.30
[chrism@vitaminf Preferences]$ touch $TMPDIR/foo

I'm not entirely sure how TMPDIR is composed, whether it changes after each logout, or what, but this fixed it for my current session.
 
Comment

kaapke

macrumors newbie
Nov 7, 2007
1
0
Same problem with me. Thanks mcdonc, your workaround works around perfectly. Hope that Apple fixes this issue soon.
 
Comment

mcdonc

macrumors newbie
Nov 1, 2007
4
0
support...

I did call support and they verified that this fix should be "permanent" (it will persist across logouts and shutdowns).
 
Comment

thagomizer

macrumors 6502
May 26, 2005
296
4
USA
I have this same problem with Preview. I tried

sudo chmod 775 $TMPDIR

I gave sudo my password, and it the permissions are 775 (rwxrwxr-x).
But Preview still doesn't work, even after a reboot.

Anyone else seeing this bug?
 
Comment

thagomizer

macrumors 6502
May 26, 2005
296
4
USA
I found a fix on the Apple discussion boards. Turns out that my $TMPDIR directory permissions were ok (rwxrwxr-x), but the group ownership was wrong. Changing the group ownership worked:

chgrp -R staff $TMPDIR
 
Comment

ironsidephoto

macrumors member
Sep 22, 2007
41
0
So preview stopped working, so i deleted it and was going to reinstall it from the os x disk. however, it is not listed under the optional installs like mail.app, iCal, iChat, etc. are. How do i get preview.app back?
 
Comment

HLdan

macrumors 603
Aug 22, 2007
6,396
0
So preview stopped working, so i deleted it and was going to reinstall it from the os x disk. however, it is not listed under the optional installs like mail.app, iCal, iChat, etc. are. How do i get preview.app back?
Mac OS X is PDF based so Preview is not just another application, it's part of the OS, you will need to reinstall OS X.
 
Comment

richard.mac

macrumors 603
Feb 2, 2007
6,299
2
51.50024, -0.12662
So preview stopped working, so i deleted it and was going to reinstall it from the os x disk. however, it is not listed under the optional installs like mail.app, iCal, iChat, etc. are. How do i get preview.app back?
Preview is just a package with the executable inside bundled up into an application and to open jpgs, pdfs etc Preview uses the core frameworks and other thingos in the System folder, so if you didnt delete those your fine.

to reinstall Preview use Pacifist to open your 1st install disc by clicking "Open Apple Install Discs". after a while it will ask you to insert the 2nd install disc and then the first again but just press skip twice and reinsert the 1st install disc. then search for "Preview.app" and then click "Install" at the top left.
 
Comment

debsindhu

macrumors newbie
Dec 15, 2008
1
0
Preview is just a package with the executable inside bundled up into an application and to open jpgs, pdfs etc Preview uses the core frameworks and other thingos in the System folder, so if you didnt delete those your fine.

to reinstall Preview use Pacifist to open your 1st install disc by clicking "Open Apple Install Discs". after a while it will ask you to insert the 2nd install disc and then the first again but just press skip twice and reinsert the 1st install disc. then search for "Preview.app" and then click "Install" at the top left.


thank u very much, it really worked...thanks a lot... :)
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.