Shirt Pocket Discussions

Shirt Pocket Discussions (https://www.shirt-pocket.com/forums/index.php)
-   General (https://www.shirt-pocket.com/forums/forumdisplay.php?f=6)
-   -   Restored vol - document icons trashed (https://www.shirt-pocket.com/forums/showthread.php?t=291)

khos 04-18-2005 02:36 PM

Restored vol - document icons trashed
 
I just restored a complete volume after replacing the hard disk. Now all the document icons are generic. Double clicking the icon doesn't open the correct application. "Get info" shows "object.nib" as the default application. Wierd? The application icon appear to be ok.

dnanian 04-18-2005 03:44 PM

That's a bit strange; it sounds like your Launch Services database needs to be rebuilt. It's easy to do, but requires the Terminal: you can cut and paste the following line to accomplish the fix (reboot after):

Code:

/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
Scary as it seems, that should take care of it!

supuhee 07-29-2005 02:56 PM

Quote:

Originally Posted by dnanian
That's a bit strange; it sounds like your Launch Services database needs to be rebuilt. It's easy to do, but requires the Terminal: you can cut and paste the following line to accomplish the fix (reboot after):

Code:

/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
Scary as it seems, that should take care of it!

I have a similar problem. I cloned my Panther partition (X) from MacHD to a Firewire drive in order to re-partition MacHD, then cloned X back to MacHD and made a new safety clone on a second internal disc. Most document icons have become generic when I boot from the safety clone but are normal when I boot from X.

dnanian 07-29-2005 03:12 PM

I'd try the same solution on your Safety clone, and see if that helps, supuhee.

supuhee 07-30-2005 12:06 AM

No luck. Earlier today I tried sandbox but got no response, now I tried MacHD. I get the following messages:
__________________________________
2005-07-29 20:50:30.519 lsregister[769] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is not proper UTF-8. The file name for this data could be:
Contents/Info.plist -- file://localhost/Applications/C-E/CocoaBooklet.app/
The parser will retry as in 10.2, but the problem should be corrected in the plist.
[Eds-G4:~] edwardan%
[Eds-G4:~] edwardan% /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
2005-07-29 20:53:57.321 lsregister[773] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is not proper UTF-8. The file name for this data could be:
Contents/Info.plist -- file://localhost/Applications/C-E/CLIX/CLIX.app/
The parser will retry as in 10.2, but the problem should be corrected in the plist.
[Eds-G4:~] edwardan% /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
2005-07-29 20:55:27.978 lsregister[778] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is not proper UTF-8. The file name for this data could be:
Contents/Info.plist -- file://localhost/Applications/C-E/CLIX/CLIX.app/
The parser will retry as in 10.2, but the problem should be corrected in the plist.
[Eds-G4:~] edwardan%
___________________________________________
I trashed Cocoa Booklet and its plist file, but then Terminal complained about CLIX. and after I expunged CLIX and its plist, it complained about Chop. Evidently Terminal wants to clear out my entire Applications folder step by step, which is no solution.

dnanian 07-30-2005 07:23 AM

I'm not sure what to suggest, supuhee: Terminal is not suggesting clearing your Applications folder, but rather Launch Services is indicating that these particular applications have poorly formed Info.plist files. That seems to be preventing scanning: perhaps the applications have been updated?

supuhee 07-30-2005 12:36 PM

Quote:

Originally Posted by dnanian
I'm not sure what to suggest, supuhee: Terminal is not suggesting clearing your Applications folder, but rather Launch Services is indicating that these particular applications have poorly formed Info.plist files. That seems to be preventing scanning: perhaps the applications have been updated?

No, Terminal is on a vendetta. Note that it is flagging apps in inverse alphabetical order: Cocoa Booklet -- Clix -- Chop -- and this morning, "Check Preference Files". Age is not the issue: although Chop is ancient (2003), the others are current or only one version before the latest.

A fix that seems to have worked this morning is to make a brand-new clone. The previous Sandbox, made from MacHD after reinitializing the drive and cloning MacHD back from a Firewire drive, had some birthing problems because I had mistakenly chosen the "Backup - all files" option. That gave me an error message when the 9 GB partition was full, and when I changed it to Safety Clone, I foolishly chose smart update rather than starting from scratch. Presumably I got a hybrid that did not have all the required features of a safety clone.

dnanian 07-30-2005 01:31 PM

That should have worked fine, supuhee: Smart Update can certainly change a backup into a safety clone... but, I won't argue with success!

supuhee 08-03-2005 10:08 AM

Quote:

Originally Posted by dnanian
That should have worked fine, supuhee: Smart Update can certainly change a backup into a safety clone... but, I won't argue with success!

I spoke too soon, Dave. The new Panther clone again shows generic icons (don't know what was looking at when I thought the problem was solved, perhaps I had booted from MacHD without realizing it). The Tiger clone is OK; all icons show up properly. (Note that I have 10.3.9 on MacHD and made the Tiger clone by installing Tiger on top of a Panther clone).

The Terminal command you suggested works on MacHD but not on clones. Can you change it so it will run on clones?

dnanian 08-03-2005 10:40 AM

A backup is going to be just like the source -- the command should work just the same way, supuhee, as it doesn't specify any drive.

Is anyone else out there seeing this?

supuhee 08-03-2005 12:31 PM

Recall that your command did not work for the source either; it at least went through the motions but kept complaining about the plists of my apps whose names begin with C -- one after the other, in inverse alphabetical order. See my message of 7-29-05, "No luck. Earlier today I..." Also see our subsequent exchanges, wherein I responded to your suggestionss of what might be wrong.

As I told you then, the same command does NOTHING on the clone. Here is the latest try:

Last login: Wed Aug 3 09:05:14 on console
Welcome to Darwin!
[Eds-G4:~] edwardan% /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
[Eds-G4:~] edwardan%

Perhaps this is a red herring, but edwardan was the original username assigned by OS 10.1. For consistency with my other machines I changed it to edwardanders a few months ago and had no troubles. But I wonder if the truncated name exists somewhere in the bowels of the machine and causes mischief in this particular operation.

The generic icons are most troublesome for Office apps. I reinstalled Office 2004 on MacHD but that did not solve the problem. Nor did my attempt to restore icons, a few at a time, with File Buddy.

dnanian 08-03-2005 02:08 PM

This really seems to indicate a damaged drive -- you have to understand that the command isn't "mine", as such, but the normal procedure for rebuilding the LaunchServices cache.

You can't really assign the icons "on the fly", either, because they're generated at runtime based on the application associations.

What happens if you try to inspect one of the "bad files", and then change its launch association with the "Get Info" inspector -- and then click the "Change all" part, too?

supuhee 08-03-2005 02:26 PM

Quote:

Originally Posted by dnanian
This really seems to indicate a damaged drive -- you have to understand that the command isn't "mine", as such, but the normal procedure for rebuilding the LaunchServices cache.

You can't really assign the icons "on the fly", either, because they're generated at runtime based on the application associations.

What happens if you try to inspect one of the "bad files", and then change its launch association with the "Get Info" inspector -- and then click the "Change all" part, too?

Being sure that your diagnosis was correct even if the cure did not work, I tried a backup from HD to clone: "Safety clone- shared apps and users" and "Copy newer files...". Having used HD for the last few days because the clone acted up, I figured that Frameworks on HD would be newer. Indeed, that seems to have done the trick. During the backup Sys/Libr/Frameworks was copied, and the cure has lasted through 2 restarts.

On File Buddy, the bad files show the correct creator and type so File Buddy does not let you change anything. I then changed one file to a different type and told FB to match a good file. It was changed properly except for the icon.

I doubt if the (20 GB) drive is at fault. I run SMART Reporter every hour, and the Tiger clone on another partition works OK. Mac HD sits on another, brand-new drive (300 GB, but my Sawtooth G4 sees only 120 GB; could that be the problem? I tried an Acard controller which fixed the size problem but caused both internal drives to be regarded as SCSI, with SMART disabled).

Anyhow, the problem seems solved.

dnanian 08-03-2005 02:43 PM

You definitely shouldn't use "Copy Newer" for this, supuhee -- "Smart Update" is the way to go (which is a *superset* of Copy Newer).

It's weird, though -- the Frameworks shouldn't be newer at all if you didn't install any OS updates. But, it would copy the LaunchServices cache, and maybe that made a difference.

I don't think the drive's at fault -- but rather the OSX install. It's possible that the Sawtooth is causing some issues -- I don't have one to verify -- but, again, this is really not something we've had reported, and other than the LaunchServices cache -- which is doing the associations -- I don't know what the problem could be.

I'll continue to try to reproduce it at this end, though, and if you come up with any additional information or insight, let me know.

Thanks!

sjk 08-14-2005 05:43 AM

Quote:

Originally Posted by supuhee
No luck. Earlier today I tried sandbox but got no response, now I tried MacHD. I get the following messages:
__________________________________
2005-07-29 20:50:30.519 lsregister[769] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is not proper UTF-8. The file name for this data could be:
Contents/Info.plist -- file://localhost/Applications/C-E/CocoaBooklet.app/
The parser will retry as in 10.2, but the problem should be corrected in the plist.
[Eds-G4:~] edwardan%
[Eds-G4:~] edwardan% /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
2005-07-29 20:53:57.321 lsregister[773] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is not proper UTF-8. The file name for this data could be:
Contents/Info.plist -- file://localhost/Applications/C-E/CLIX/CLIX.app/
The parser will retry as in 10.2, but the problem should be corrected in the plist.
[Eds-G4:~] edwardan% /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
2005-07-29 20:55:27.978 lsregister[778] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is not proper UTF-8. The file name for this data could be:
Contents/Info.plist -- file://localhost/Applications/C-E/CLIX/CLIX.app/
The parser will retry as in 10.2, but the problem should be corrected in the plist.
[Eds-G4:~] edwardan%
___________________________________________
I trashed Cocoa Booklet and its plist file, but then Terminal complained about CLIX. and after I expunged CLIX and its plist, it complained about Chop. Evidently Terminal wants to clear out my entire Applications folder step by step, which is no solution.

I noticed similar messages in 10.4.x on my iMac G5 when clicking the Extensions tab of the RCDefaultApp preference pane. At first they referred to older files (archived under my home directory) but after tedious deleting enough of them the messages referred to newer files I didn't want to delete. By then I was ready to give up anyway and haven't gotten back to resolving the matter. I can't replicate it on the eMac I'm using right now.


All times are GMT -4. The time now is 05:35 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.