Two NSDocument instances on same URL cause deadlock
| Originator: | maxseelemann | ||
| Number: | rdar://12176626 | Date Originated: | 26-Aug-2012 08:45 PM |
| Status: | Open | Resolved: | |
| Product: | Mac OS X SDK | Product Version: | 10.8.x |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary: Opening two NSDocument instances for the same URL causes a deadlock on any file change. Steps to Reproduce: - Open TextEdit - Open new file, save as "A.rtf", leave open - Open another file, save as "A.rtf" - Click "Replace" - See hang Expected Results: - Anything but a hang. Actual Results: - A hang Regression: This is sooo trivial to create. Affects EVERY app using NSDocument that uses file coordination. I assume there's a dead lock on the re-import of data into the first document.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Already exists on OS X 10.7.5 Lion
FYI this bug is already present on 10.7.5, I cannot verify for the previous versions of Lion. Also, I occurs on both sandboxed or not sandboxed apps.