Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent pseudo-crashes #61

Open
chdiza opened this issue Jul 21, 2015 · 8 comments
Open

Intermittent pseudo-crashes #61

chdiza opened this issue Jul 21, 2015 · 8 comments

Comments

@chdiza
Copy link
Contributor

chdiza commented Jul 21, 2015

On multiple machines, and multiple OSes (Mav, Yos), I intermittently get the following incorrect behavior.

In a terminal, type mvim abcd where abcd is some non-existent file.

Expected: I get a MacVim window with an empty buffer that is assigned the name "abcd".

Actual: Most of the time I get what I'll call a pseudo-crash. All MacVim windows vanish instantly with no offer to save unsaved changes, and MacVim vanishes from the Dock. However, there's no crash report. The only clue as to what happened is in Console.app, and it's a meager clue at that:

Vim: 07/21/15 2:15:23.551 p Vim[89294]: -[MMBackend(Private) connectionDidDie:]@2315: Main connection was lost before process had a chance to terminate; preserving swap files.

It can also happen if I am already in a MacVim window and I do :edit abcd (where again, abcd is non-existent).

Is anyone else getting this? I see that someone else reported the same error message in Console but in a different context on Feb 19th of last year, and that Bjorn didn't know what it meant.

I can't find a way to get 100% reproduction. It tends to come and go in "streaks", i.e., a few hours of pseudocrashes, then a day without them, then two days with, then a few hours without, etc.

At first I thought maybe it was because I have Spotlight disabled (using mduitl -i off or mdutil -d), but I tested this theory by reactivating Spotlight and I still see the problem. (And surely MacVim doesn't need Spotlight to be on. I've had Spotlight off for years with no problems like this).

@chdiza
Copy link
Contributor Author

chdiza commented Oct 23, 2015

FWIW this is still happening on ElCap.

@splhack splhack mentioned this issue Nov 7, 2015
@chdiza
Copy link
Contributor Author

chdiza commented Nov 7, 2015

I find it hard to believe I'm the only person this is happening to.

It happens even with mvim -u NONE -U NONE -N, so it's not my ~/.vim.

It also (on El Cap, anyway) now happens under the following circumstance: Open a new MacVim window. Hit ione two three. Hit Cmd-S. Type "foo" to name the file. Hit "return".

Observe that MacVim pseudocrashes immediately, and that Console holds the same message mentioned above.

I build MacVim with these flags:

  --with-features=big
  --disable-netbeans
  --disable-nls

@sc68cal
Copy link

sc68cal commented Dec 3, 2015

I can reliably reproduce this when I use MacVim as my mergetool for Git.

[mergetool "mvim"]
    cmd=mvim  -c 'wincmd J' -f -d "$MERGED" "$LOCAL" "$BASE" "$REMOTE"
12/3/15 10:37:36.341 AM Vim[55698]: *** -[NSMachPort handlePortMessage:]: dropping incoming DO message because the connection is invalid
12/3/15 10:37:36.342 AM Vim[55698]: -[MMBackend(Private) connectionDidDie:]@2315: Main connection was lost before process had a chance to terminate; preserving swap files.
12/3/15 10:38:12.359 AM Vim[56164]: *** -[NSMachPort handlePortMessage:]: dropping incoming DO message because the connection is invalid
12/3/15 10:38:12.359 AM Vim[56164]: -[MMBackend(Private) connectionDidDie:]@2315: Main connection was lost before process had a chance to terminate; preserving swap files.

This is with Snapshot 77

@splhack
Copy link
Contributor

splhack commented Dec 15, 2015

@sc68cal I need concrete way to reproduce it. could you describe more detail with snapshot-86 like #66 (comment) ?

@sc68cal
Copy link

sc68cal commented Dec 15, 2015

@splhack I'll take a look - but I'll also report that after rebooting my machine I haven't seen the issue since

@eirnym
Copy link
Contributor

eirnym commented Apr 1, 2019

Is this issue still actual?

@sc68cal
Copy link

sc68cal commented Apr 3, 2019

I've been using the mergetool with no issues- i think this can be closed

@ychin
Copy link
Member

ychin commented Apr 3, 2019

I would like to keep this open for now. I have noticed the "dropping incoming DO message" messages when I run GUI unit tests (make testgui) and I need to look into it so keeping this open to help me keep track of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants