MMC hangs on startup while trying to access last opened file on missing network drive

hchapman-mmdcomposer's Avatar

hchapman-mmdcomposer

30 Apr, 2013 12:44 AM

Steps:
- Edit md file on NFS mount
- Quit MMC
- unmount NFS
- Start MMC

Log:
4/29/13 8:44:36.000 PM kernel[0]: nfs_connect: socket connect aborted for 192.168.137.5:/home/hchapman
4/29/13 8:45:13.000 PM kernel[0]: nfs_connect: socket connect taking a while for 192.168.137.5:/home/hchapman

  1. Support Staff 1 Posted by Fletcher on 30 Apr, 2013 01:21 PM

    Fletcher's Avatar

    I don't have an NFS mount readily available, but can't replicate this on a Samba share.

    Any clues in Console?

    FTP

    --
    Fletcher T. Penney
    Manager, Founder
    MultiMarkdown Software, LLC
    [email blocked]

  2. 2 Posted by hchapman-mmdcom... on 01 May, 2013 07:49 AM

    hchapman-mmdcomposer's Avatar

    Just the two messages I pasted. Where can I find the file information MMC saves when quitting? I think MMC probably gets a file handle from OSX that OSX knows to be on a network share. It might be recognizable to MMC that the file is on a network share and then MMC could time out. Or, perhaps MMC should have a safety timeout on re-opening files?

    Work-around: Force Quit, Re-launch, Select "[Don't re-open files]"

  3. Support Staff 3 Posted by Fletcher on 01 May, 2013 02:21 PM

    Fletcher's Avatar

    All of that is handled by Apple's code. The OS is responsible for sending files to be re-opened when the app is launched.

    F-

    --
    Fletcher T. Penney
    Manager, Founder
    MultiMarkdown Software, LLC
    [email blocked]

  4. Support Staff 4 Posted by Fletcher on 24 May, 2013 04:30 AM

    Fletcher's Avatar

    Does this still happen with 2.2.2?

    F-

  5. 5 Posted by hchapman-mmdcom... on 24 May, 2013 03:35 PM

    hchapman-mmdcomposer's Avatar

    Separate issue: 2.2.2(8) only has a 64px app icon unlike previous releases.

    Yes. I get a TOC window and then it beachballs. However, the Force Quit, Restart, "Don't Reopen" procedure still works.

    You can probably reproduce this with any network share:
    - open a file on a mounted network share
    - close MMC
    - unmount network share
    - make it impossible for OSX to auto-remount the share (easiest is just to turn off networking for your mac)
    - open MMC
    - [ OSX will attempt to reconnect to the share that contained the file, but will fail ]

    [Time passes…]

    I was wrong. I can't reproduce it with a samba mount on another machine. The problem is that I'm mounting a share on a VM on the Mac, so the network never goes away. BTW I tried the above test again without taking down the network and simply putting my windows machine to sleep. MMC still starts up ok for the remote shares.

  6. Support Staff 6 Posted by Fletcher on 24 May, 2013 04:23 PM

    Fletcher's Avatar

    What happens when you try the same thing with TextEdit? Anything useful in the console?

    F-

    --
    Fletcher T. Penney
    Manager, Founder
    MultiMarkdown Software, LLC
    [email blocked]

  7. Support Staff 7 Posted by Fletcher on 24 May, 2013 08:19 PM

    Fletcher's Avatar

    Re: app icon --- check again. It's got the full range of icon sizes. Might need to reboot.

    F-

  8. 8 Posted by hchapman-mmdcom... on 24 May, 2013 09:59 PM

    hchapman-mmdcomposer's Avatar

    Interesting… the composer_app.icns file inside the app has all of the sizes, but the icon shown in the finder does not. Also, if I copy the icons for the app from the File Info window in finder and then paste into preview, 64x64 is the maximum size. I downloaded 2.2.2(8) this morning.

  9. Support Staff 9 Posted by Fletcher on 24 May, 2013 10:08 PM

    Fletcher's Avatar

    When I do the same thing I get all icon sizes.

    Sometimes the finder gets weird about these things.

    Sent from my iPhone

  10. Support Staff 10 Posted by Fletcher on 04 Jun, 2013 10:37 PM

    Fletcher's Avatar

    Please let me know if 10.8.4 fixes the NFS issue you were having.

    Thanks!

    F-

  11. 11 Posted by hchapman-mmdcom... on 04 Jun, 2013 11:18 PM

    hchapman-mmdcomposer's Avatar

    Well... kind of. It beachballs for 10-20 seconds and then opens a new window labeled Untitled. Here's the console log. In summary, it's much better than it used to be. However, there's no error or anything like that.

    6/4/13 7:13:14.226 PM MultiMarkdown Composer[868]: open on /Users/hchapman/Library/Application Support/MultiMarkdown Composer/receipt: File exists
    6/4/13 7:13:23.000 PM kernel[0]: nfs_connect: socket error 60 for 192.168.137.5:/home/hchapman
    6/4/13 7:13:36.277 PM MultiMarkdown Composer[868]: *** WARNING: Method convertPointFromBase: in class NSView is deprecated on 10.7 and later. It should not be used in new applications.
    

    I have another app QtCreator that I use to open files on NFS shares. True to how it works, MMC doesn't show the files in the recent list anymore if the NFS mount is not available upon app start.

  12. 12 Posted by hchapman-mmdcom... on 04 Jun, 2013 11:20 PM

    hchapman-mmdcomposer's Avatar

    Huh, I reconnected the NFS mount and the file reappeared in the Open Recent list without restarting MMC. I guess you could downgrade the severity of this issue quite a bit. It's probably not a common scenario and those of us that encounter are likely to know why.

  13. Support Staff 13 Posted by Fletcher on 04 Jun, 2013 11:23 PM

    Fletcher's Avatar

    Thanks for the update. Another user reported a problem with AppleShare files. I'm waiting to hear whether 10.8.4 fixes that one.

    I still think this is more Apple/NSDocument problem than a Composer problem, but I'm going to dig back in and see if there's something not quite right in my code when I get a chance. Certainly I would like to fix it, but I'm not convinced yet that I can. We'll see.

    Again, thank you for your help.

    F-

  14. 14 Posted by hchapman-mmdcom... on 05 Jun, 2013 01:42 AM

    hchapman-mmdcomposer's Avatar

    I agree. I think this is an Apple bug. However, Apple bugs look like MMC bugs when they happen in MMC. :)

  15. Support Staff 15 Posted by Fletcher on 05 Jun, 2013 01:43 AM

    Fletcher's Avatar

    Yup. But I have to be really sure before I start "casting too many stones"… ;)

    F-

    --
    Fletcher T. Penney
    Manager, Founder
    MultiMarkdown Software, LLC
    [email blocked]

  16. Support Staff 16 Posted by Fletcher on 26 Jun, 2013 07:44 PM

    Fletcher's Avatar

    By any chance have you tested this behavior in 10.9?

    I still haven't found anything on my end that is obviously responsible for this.

    F-

  17. Fletcher closed this discussion on 01 Sep, 2013 12:26 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac