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

After upgraded to LION, Preview.app and Textedit.app keep crash

My Macbook Pro just updated to LION and the Preview.app and Textedit.app keep crashing.


Anyone can help? Thank you in advance.


Process: TextEdit [460]

Path: /Applications/TextEdit.app/Contents/MacOS/TextEdit

Identifier: com.apple.TextEdit

Version: 1.7 (288)

Build Info: TextEdit-288000000000000~1

Code Type: X86-64 (Native)

Parent Process: launchd [314]


Date/Time: 2011-07-21 08:43:58.964 +0800

OS Version: Mac OS X 10.7 (11A511)

Report Version: 9


Interval Since Last Report: 36138 sec

Crashes Since Last Report: 31

Per-App Crashes Since Last Report: 6

Anonymous UUID: CCB49DE4-83D3-4BA1-BCE1-188D9B4B9876


Crashed Thread: 0 Dispatch queue: com.apple.main-thread


Exception Type: EXC_BAD_INSTRUCTION (SIGILL)

Exception Codes: 0x0000000000000001, 0x0000000000000000


Application Specific Information:

dyld: launch, running initializers

/usr/lib/libSystem.B.dylib

xpchelper reply message validation: sandbox creation failed: 1002

Container object initialization failed: The file couldn’t be opened.


Application Specific Signatures:

sandbox creation failed: 1002


-----

Process: Preview [490]

Path: /Applications/Preview.app/Contents/MacOS/Preview

Identifier: com.apple.Preview

Version: 5.5 (719)

Build Info: Preview-719000000000000~1

Code Type: X86-64 (Native)

Parent Process: launchd [314]


Date/Time: 2011-07-21 08:45:33.291 +0800

OS Version: Mac OS X 10.7 (11A511)

Report Version: 9


Interval Since Last Report: 36232 sec

Crashes Since Last Report: 32

Per-App Crashes Since Last Report: 24

Anonymous UUID: CCB49DE4-83D3-4BA1-BCE1-188D9B4B9876


Crashed Thread: 0 Dispatch queue: com.apple.main-thread


Exception Type: EXC_BAD_INSTRUCTION (SIGILL)

Exception Codes: 0x0000000000000001, 0x0000000000000000


Application Specific Information:

dyld: launch, running initializers

/usr/lib/libSystem.B.dylib

xpchelper reply message validation: sandbox creation failed: 1002

Container object initialization failed: The file couldn’t be opened.


Application Specific Signatures:

sandbox creation failed: 1002

MacBook Pro, Mac OS X (10.7)

Posted on Jul 20, 2011 11:17 PM

Reply
67 replies

Sep 14, 2011 11:50 AM in response to dwight w.

Same for me. After Lion upgrade both Texedit and Preview crashed when launched.


But thanks to your genius Dwight, the problem is resolved. Followed in general the steps set out above:


  1. Option-Go to open Library (hidden now by default in Lion)
  2. File-Properties to see permissions.
  3. As you state, my user was missing.
  4. Unlocked properties (padlock at the bottom)
  5. Press + sign and added myself. Then (and be patient as takes a little while for OSX Lion to catch up) set my permissions to be Read+Write.
  6. After closing the properties window I retarted Finder (Apple-menu-Force Quit-highlight Finder-click Relaunch).
  7. Running Texedit did ineed create a Containers folfer and both Texedit and Preview running fine.


Thanks again Dwight.

Sep 22, 2011 3:59 PM in response to AnthonyFROMHK

None of the permissions fixes above helped in my case. I found that there was nothing in the "Containers" folder in my library.


I created another user on my system, and found I could open both Preview and Text Edit fine in that account. I copied (duplicated) the two folders that were created in the new account inside Containers (com.apple.preview and com.apple.TextEdit), changed permissions on the copies using get info, and moved them over to my original user account. That worked.


However, after making some other changes related to permissions that had me spending 4 hours on the phone with Apple, issues now forwarded to engineering, I started experiencing the same error, crash on opening.


I went to those container folders (com.apple.preview and com.apple.TextEdit) and trashed their contents. After that both applications opened normally, and the missing files were recreated.


Hope this helps someone.

Oct 15, 2011 2:33 PM in response to Oceanconcepts

I'm in the same boat as Oceanconcepts - nothing worked here, so just created another user (which worked fine for both Preview and TextEdit), and then removed the two folders in my real user account ~/Library/Containers folder and copied over the ones from the new user and things are working OK so far, but in case things happen like Oceanconcepts, will remove the Container folders again and see if things start working as they originally should have.


Seems like Apple would know exactly what the problem is here - I'm guessing it's only with people who migrated their User account from a previous version of Mac OS X and something funny is happening - possibly with Preferences or ???


Anyway, thanks everyone for all the suggestions. It's nice when people take the time to relate their experiences and what they discovered helped them.


-Bob

Nov 23, 2011 9:59 AM in response to Silvertoe

Still no luck. I tried to create the root user and also to reset the password in terminal. But still nothing. Needless to say that the whole sistem is also very slow. 😠 😢 I guess I will endup re-installing the system but I just do not have the time to deal with it.

Silvertoe wrote:


The fix. . .

The problem is a Permissions problem. All you have to do is:


1. Right click on the root /Library Folder and selct 'Get Info'

2. Unlock the pad lock in the lower right hand corner.

3. Click on the + symbol to add a user.

4. When prompt add the 'root user'.

5. Give the root user Read/Write privaledges.

6. Lock the pad lock and open Preview.



🙂This worked for me and I hope it works for you to!🙂

Nov 23, 2011 10:23 AM in response to rbrugos

Did you try the fix I posted above? If there is nothing in the Containers folder in your Library, the apps won't open.


"None of the permissions fixes above helped in my case. I found that there was nothing in the "Containers" folder in my library.


I created another user on my system, and found I could open both Preview and Text Edit fine in that account. I copied (duplicated) the two folders that were created in the new account inside Containers (com.apple.preview and com.apple.TextEdit), changed permissions on the copies using get info, and moved them over to my original user account. That worked."


I've done this a couple of time now, and it's worked. Quick and simple to try, anyway.

Nov 23, 2011 10:27 AM in response to rbrugos

I believe the ultimate problem has to do with having symbolic links in one or more of the important folders in your home directory - like Downloads, Documents, Music, Movies or Pictures (perhaps others). The Lion version of Preview and TextEdit crash when they are first run if these symbolic links are present, and keep crashing until the links are gone. You can either temporarily remove the symbolic links the first time you run both applications, then just exit the app (this creates some new files and folders in the ~/Library folder that have to do with the new "versions" feature of Lion, then recreate the symbolic links. You can also login as another user that does not have these symbolic links present and run Preview and TextEdit and copy the two folders mentioned above to the correct location in the original problematic user.


Apple should fix this bug, as their is no technical reason why it should crash just because there are symbolic links involved. The failure is Apple's mistake in the "open" call I'm guessing when the item opened is a symbolic link and the inability to deal with it.


Symbolic links are not the same as "Aliases" although their purpose is similar - just the underlying way that both are implemented are different.


It's very possible there are mulitple causes, so if any particular method that works for other people doesn't work for you, try one of the other "solutions" that have worked for someone else.


As far as the overall speed, or lack thereof, I've not really noticed anything all that noticeable with Lion inabout two months of usage, except for an increased memory utililization, so am having to log out or reboot the computer more often now than I used to do with Snow Leopard or Leopard when free memory gets low. When your system is running "slow" check the memory graph in Activity Monitor and see how much "Free" memory you have - perhaps an increase in memory might help? Memory is a lot cheaper now than it used to be and is an easy way to upgrade your computer.


-Bob

Nov 24, 2011 6:01 AM in response to DeepYogurt

Thanks Bob,


I tried almost everything but I think it is impossible at this point to fight against Lion. It does not work with my hardware and previous settings. Since I upgraded to Lion everything goes wrong, slow and painful. I love my Mac and loved Snow Leopard, and like a lot the new things in Lion, but the truth is they do not work well jet.


I am going to re-install (something I hate) Snow Leopard and stay with it until 10.7.4 or 10.7.5...


By the way, did yo study at UM. Your last name sounds familiar.

Nov 24, 2011 6:29 AM in response to rbrugos

Don't go back to Snow Leopard. Stick with Lion. The advantages so outweigh the learning / adjustment curve.


(I know I was sceptical at first but could not now go back)


If the fix did not work, cut to the chase back up all your data (copy, don't use Time Machine) and do a fresh install. An upgrade with the common fix worked on one machine but on my MacBook Air I had problems. Since re-installing from scratch everything works more reliably (and faster).


Best of luck from London (Happy Thanksgiving).

Dec 13, 2011 2:44 AM in response to Oceanconcepts

Just a sincere "thank you" to Oceanconcepts, I followed all the steps mentioned everywhere including changing ACL, deleting preferences, but failed to fix it.


Only did I try it out with a new account, and then duplicated the Preview files in the Container folder, changed permission, then copied everything back to original user's Container folder did I fix it.


Actually, it didn't fix it immediately, I had to trash the newly created files before Preview would launch, but all is good now!


You all saved me hours of research, thanks again.

Dec 19, 2011 10:47 AM in response to problemwithalias

Just upgraded this past weekend with the same issues with Textedit and Preview. NONE of the above fixes seemed to work, even trashing the preferences file in the data folder.


That actually was the issue. The apps never re-created the prefs file.


Created a new user, then logged in as Root and copied over the plist from each data folder then changed permissions to reflect the correct user. Works like a charm.


Hope that helps.

Dec 30, 2011 1:12 PM in response to adolfocota

After granting the root user Read & Write privileges for the Library folder I still had a problem, so I went into the Containers folder after Option->Go->Library and I deleted the plist folders for Text Edit and Preview in the Containers folder. Then I went into the Terminal and typed 'killall Finder' and then I was able to launch Preview and Text Edit. Try this procedure if nothing else worked for you so far.

After upgraded to LION, Preview.app and Textedit.app keep crash

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