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

Frequent application crashes #559

Open
pjg opened this issue Nov 12, 2024 · 12 comments
Open

Frequent application crashes #559

pjg opened this issue Nov 12, 2024 · 12 comments

Comments

@pjg
Copy link

pjg commented Nov 12, 2024

I'm on MacOS using latest goneovim (0.6.10). I observe the application crashes pretty frequently. The app will just hang, the cursor will start spinning and there's nothing you can do apart from force killing the app. It usually happens when I try to scroll with the mouse a very large JSX file that goneovim is struggling to render smoothly (i.e. when scrolling, the scrolling will be jerky, the cursor movement will be slow, etc.).

@akiyosi
Copy link
Owner

akiyosi commented Nov 16, 2024

@pjg
I apologize for the inconvenience caused.
To investigate this issue further, I kindly ask for your cooperation with the following:

  • Could you run Goneovim from the terminal using the --nofork option? If a crash occurs, please provide the backtrace (error message) that is output in the terminal.

    e.g.
    /Applications/goneovim.app/Contents/MacOS/goneovim --nofork

  • Regarding the large JSX file, could you let me know the approximate size of the file (e.g., number of lines or file size)?

@pjg
Copy link
Author

pjg commented Nov 20, 2024

I'll try running it with the --nofork option. It's not exactly a crash. The app just hangs and I have to force kill it.

The JSX file is not large, perhaps 200-300 lines. Just a lot of JSX tags. Plus my wild vim config.

@pjg
Copy link
Author

pjg commented Nov 21, 2024

If I force quit a stalled goneovim, there's no backtrace:

☺ goneovim --nofork                                                                                                                                                                                                            

zsh: terminated  goneovim --nofork

@pjg
Copy link
Author

pjg commented Nov 26, 2024

Managed to get the stack trace. Attaching.

GONEOVIM-HANGUP-stacktrace.txt

@akiyosi
Copy link
Owner

akiyosi commented Nov 27, 2024

@pjg
Thanks for the additional info. However, no useful information was found.
I assume the problem is caused by some plugin, and I am trying to reproduce the issue with your settings, but it does not reproduce in my environment.

Just to confirm, would the issue reproduce with the following no Neovim settings?

/Applications/goneovim.app/Contents/MacOS/goneovim -u NONE

@pjg
Copy link
Author

pjg commented Nov 27, 2024

When I run your command I get this:

☺ open /Users/akiyosi/debug3.log: no such file or directory

I might be using some daily build though.

@akiyosi
Copy link
Owner

akiyosi commented Nov 28, 2024

@pjg
Hmmm, it is strange to get such a message.
I am wondering about the contents of settings.toml in goeovim.
How about the following command?

/Applications/goneovim.app/Contents/MacOS/goneovim --noconfig -- -u NONE

@pjg
Copy link
Author

pjg commented Nov 30, 2024

I've downloaded the official 0.6.10 release and I'm still getting that error when running /Applications/goneovim.app/Contents/MacOS/goneovim --noconfig -- -u NONE:

☺ open /Users/akiyosi/debug3.log: no such file or directory

My ~/.config/goneovim/settings.toml file:

 # goneovim settings

 [Editor]
 # Default/classic vim mode
 ExtCmdline   = false
 ExtPopupmenu = false
 ExtTabline   = false
 ExtMessages  = false

 # Restore last window gemoetry on startup (doesn't seem to work)
 RestoreWindowGeometry = true

@akiyosi
Copy link
Owner

akiyosi commented Dec 1, 2024

@pjg
Sorry, this problem was a bug in goenovim.
It seems that there was some debugging code left over from development.
We have created a corrected property, could you please try the following?

https://github.com/akiyosi/goneovim/actions/runs/12096946155

I am also trying to reproduce the problem with your setup, but it does not reproduce at all on my machine. Could you please tell me what operations you commonly use in your Neovim on a command basis?

@pjg
Copy link
Author

pjg commented Dec 2, 2024

Now I can run the application with /Applications/goneovim.app/Contents/MacOS/goneovim --noconfig -- -u NONE but that's not a workable solution. I cannot use vim like this :D

I'm doing anything crazy. Just regular programming. gonevim hangs on mouse movements for me. Once, twice a day. Or once per 2-3 days.

@akiyosi
Copy link
Owner

akiyosi commented Dec 2, 2024

@pjg

Now I can run the application with /Applications/goneovim.app/Contents/MacOS/goneovim --noconfig -- -u NONE but that's not a workable solution. I cannot use vim like this :D

The above is not intended to be a solution, but to see if the problem reported in this Issue can be reproduced with plain nvim without configuration. My intention is to identify the conditions under which the problem occurs, as my expectation is that perhaps a specific plugin is responsible for the occurrence of this event.

I'm doing anything crazy. Just regular programming. gonevim hangs on mouse movements for me. Once, twice a day. Or once per 2-3 days.

Okay, I'll continue my investigation.

@pjg
Copy link
Author

pjg commented Dec 3, 2024

FWIW the crashes usually occur when I scroll up/down or sideways. I'm using Apple's Magic Mouse (maybe that's a factor? its scrolling is kinda different from regular mouses).

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

2 participants