akiyosi / goneovim

A GUI frontend for neovim.
MIT License
2.37k stars 62 forks source link

GoNeovim App Issue on one M1 Mac Not Another #547

Closed mrunion closed 1 month ago

mrunion commented 1 month ago

I have installed goneovim from Homebrew.

On my iMac, the application launches as expected.

On my MacBook Pro, the application fails almost instantly and the machine launcher logs just shows that is exits -- sometimes in as little as 300 milliseconds. No error. It just quits.

However, if I run goneovim from inside the app bundle directly (/Applications/goneovim.app/Contents/MacOS/goneovim) it works fine.

I don't know what else to do from here. Any suggestions? I even tried the nightly and it does the same thing.

Thanks in advance.

shiena commented 1 month ago

I removed DesktopNotifications from settings.toml and that prevented the crash. https://github.com/akiyosi/goneovim/issues/528

mrunion commented 1 month ago

Wow! Fast response!

But that wasn't it. I just can't wrap my head around why the bundle doesn't launch, but the actually app inside the bundle works fine. And why the bundle works fine on my other Mac M1.

I do think it's local to the MacBook that's not running, but I have no idea where else to try to trace the problem. The machines are practically identical with respect to software, so no clue on my part.

Thanks anyway for the suggestion.

Here are the launch logs:

2024-08-10 09:27:39.872520 (gui/501/application.com.ident.goneovim.47163200.47163203) <Notice>: internal event: WILL_SPAWN, code = 0
2024-08-10 09:27:39.872546 (gui/501/application.com.ident.goneovim.47163200.47163203) <Notice>: service state: spawn scheduled
2024-08-10 09:27:39.872547 (gui/501/application.com.ident.goneovim.47163200.47163203) <Notice>: service state: spawning
2024-08-10 09:27:39.872573 <Notice>: Coalition Cache Hit: app<application.com.ident.goneovim.47163200.47163203(501)> [942]
2024-08-10 09:27:39.872609 (gui/501/application.com.ident.goneovim.47163200.47163203) <Notice>: launching: launch job demand
2024-08-10 09:27:39.873522 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: xpcproxy spawned with pid 2181
2024-08-10 09:27:39.873542 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: internal event: SPAWNED, code = 0
2024-08-10 09:27:39.873544 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: service state: xpcproxy
2024-08-10 09:27:39.873581 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: internal event: SOURCE_ATTACH, code = 0
2024-08-10 09:27:39.887365 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: service state: running
2024-08-10 09:27:39.887385 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: internal event: INIT, code = 0
2024-08-10 09:27:39.887389 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: job state = running
2024-08-10 09:27:39.887446 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: Successfully spawned goneovim[2181] because launch job demand
2024-08-10 09:27:39.980879 (pid/2181 [goneovim]) <Notice>: uncorking exec source upfront
2024-08-10 09:27:39.980941 (pid/2181 [goneovim]) <Notice>: created
2024-08-10 09:27:40.094175 (pid/2181 [goneovim]) <Notice>: uncorking domain
2024-08-10 09:27:40.094326 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.ColorPickerImageLoader
2024-08-10 09:27:40.094333 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.defaultSyncService
2024-08-10 09:27:40.094335 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.documentPopoverViewService
2024-08-10 09:27:40.094339 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.LegacyExternalColorPickerService.arm64
2024-08-10 09:27:40.094342 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.LegacyExternalColorPickerService.x86_64
2024-08-10 09:27:40.094345 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.MediaLibraryBrowser
2024-08-10 09:27:40.094347 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.sandboxedServiceRunner
2024-08-10 09:27:40.094349 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.ThemeWidgetControlViewService
2024-08-10 09:27:40.094352 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.xpc.TypographyPanelService
2024-08-10 09:27:40.094354 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.automator.xpc.workflowServiceRunner
2024-08-10 09:27:40.094357 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.VersionsUIHelper
2024-08-10 09:27:40.094359 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.openAndSavePanelService
2024-08-10 09:27:40.094535 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.PerfPowerTelemetryClientRegistrationService
2024-08-10 09:27:40.094569 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.foundation.UserScriptService
2024-08-10 09:27:40.094581 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.textkit.nsattributedstringagent
2024-08-10 09:27:40.094603 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.CoreGraphics.CGPDFService
2024-08-10 09:27:40.094646 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.ImageIOXPCService
2024-08-10 09:27:40.094730 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.speech.SpeechSynthesisServerXPC
2024-08-10 09:27:40.094791 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.audio.Core-Audio-Driver-Service.helper
2024-08-10 09:27:40.094793 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.audio.Core-Audio-Driver-Service
2024-08-10 09:27:40.094795 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.audio.DriverHelper
2024-08-10 09:27:40.094828 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.extensionkitservice
2024-08-10 09:27:40.094860 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.corelocation.maphelperservice
2024-08-10 09:27:40.094899 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.audio.AUHostingService.x86-64
2024-08-10 09:27:40.094901 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.audio.AUHostingService.arm64e
2024-08-10 09:27:40.094906 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.audio.AudioConverterService
2024-08-10 09:27:40.094910 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.audio.CarbonComponentScanner.x86-64
2024-08-10 09:27:40.094914 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.audio.ComponentTagHelper
2024-08-10 09:27:40.094916 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.audio.InfoHelper
2024-08-10 09:27:40.094918 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.audio.SandboxHelper
2024-08-10 09:27:40.094930 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.internal.DataDetectorsRemoteScanner
2024-08-10 09:27:40.094975 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.CoreDisplay.XPCService
2024-08-10 09:27:40.094983 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.CMValidateMovieDataReferenceService
2024-08-10 09:27:40.095035 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.OSLogService
2024-08-10 09:27:40.095144 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.coremedia.videodecoder
2024-08-10 09:27:40.095146 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.coremedia.videodecoder.zonto
2024-08-10 09:27:40.095148 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.coremedia.videoencoder
2024-08-10 09:27:40.095150 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.coremedia.videoencoder.zonto
2024-08-10 09:27:40.095970 <Notice>: Flushed 26 logs [limit: 20]
2024-08-10 09:27:40.095253 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.ColorSyncXPCAgent
2024-08-10 09:27:40.095338 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.desktopservices.ArchiveService
2024-08-10 09:27:40.095342 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.desktopservices.QuarantineService
2024-08-10 09:27:40.095358 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.security.pboxd
2024-08-10 09:27:40.095377 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.MTLCompilerService
2024-08-10 09:27:40.095394 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.security.XPCAcmeService
2024-08-10 09:27:40.136946 (gui/501 [100004]) <Warning>: denied lookup: name = com.apple.contactsd.persistence, requestor = Family[1461], error = 159: Sandbox restriction
2024-08-10 09:27:40.145770 <Notice>: Last log repeated 1 times
2024-08-10 09:27:40.145747 (pid/2181 [goneovim]) <Notice>: Service stub created for com.apple.LoginUserService
2024-08-10 09:27:40.176032 (pid/2181 [goneovim]) <Notice>: shutting down
2024-08-10 09:27:40.176064 (pid/2181 [goneovim]) <Notice>: cleaning up
2024-08-10 09:27:40.176103 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: exited due to exit(1), ran for 296ms
2024-08-10 09:27:40.176108 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: service state: exited
2024-08-10 09:27:40.176114 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: internal event: EXITED, code = 0
2024-08-10 09:27:40.176117 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: job state = exited
2024-08-10 09:27:40.176142 (gui/501 [100004]) <Notice>: service inactive: application.com.ident.goneovim.47163200.47163203
2024-08-10 09:27:40.176145 (gui/501/application.com.ident.goneovim.47163200.47163203 [2181]) <Notice>: service state: not running
2024-08-10 09:27:40.176150 (system) <Notice>: removing child: pid/2181
2024-08-10 09:27:40.177050 (gui/501/application.com.ident.goneovim.47163200.47163203) <Notice>: removing job: caller = runningboardd
2024-08-10 09:27:40.177059 (gui/501 [100004]) <Notice>: removing service: application.com.ident.goneovim.47163200.47163203
2024-08-10 09:27:40.177067 (gui/501/application.com.ident.goneovim.47163200.47163203) <Notice>: internal event: PETRIFIED, code = 0

Note that the following error regularly spams the log and is not part of the goneovim issue:

2024-08-10 09:27:40.136946 (gui/501 [100004]) <Warning>: denied lookup: name = com.apple.contactsd.persistence, requestor = Family[1461], error = 159: Sandbox restriction
shiena commented 1 month ago

After this, for some reason it no longer crashes when DesktopNotifications is enabled here.

GonvimVersion: nightly-1-g443a6ed macOS Sonoma 14.6 and 14.6.1

mrunion commented 1 month ago

Mine still crashes no matter what DesktopNotifications are set to.

Here is another oddity: if I just run the following from a terminal

open /Applications/goneovim.app

It also runs fine.

It just fails when clicking the launcher icon.

shiena commented 1 month ago

When I reported #528 it was crashing when run from the command line. https://github.com/akiyosi/goneovim/issues/528#issuecomment-2001842550

/Applications/goneovim.app/Contents/MacOS/goneovim
mrunion commented 1 month ago

Running that way works for me too.

It’s just clicking the launcher icon that fails.

I don’t know a solution so I guess I’ll just leave this alone.

Thanks for all the help!

Thanx, Matt Runion @.***

On Aug 10, 2024, at 10:10, KOGA Mitsuhiro @.***> wrote:

When I reported #528 https://github.com/akiyosi/goneovim/issues/528 it was crashing when run from the command line.

528 (comment) https://github.com/akiyosi/goneovim/issues/528#issuecomment-2001842550

/Applications/goneovim.app/Contents/MacOS/goneovim — Reply to this email directly, view it on GitHub https://github.com/akiyosi/goneovim/issues/547#issuecomment-2281980931, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGKF6XSNVARUDRKLKZVODDZQYNMXAVCNFSM6AAAAABMJZ2J66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBRHE4DAOJTGE. You are receiving this because you authored the thread.

mrunion commented 1 month ago

I do notice in the code that if we are not running from a terminal on MacOS it sets --nofork to true. But there can be an error returned if the code cannot be forked and it calls "Exit(1)". In my log above I do get an exit code of "1" on one of those lines.

Is it possible that the line

if !isatty.IsTerminal(os.Stdin.Fd()) {

is somehow not returning "true" when I am clicking the launcher, and this is still trying to fork?

I'm not sure of a way to force the --nofork when running from the App Bundle to try this out.

mrunion commented 1 month ago

Sorry for beating on this, but it bugs me so I am still digging. I do think it has something to do with the forking process.

Below is a successful run from the launchd.log just using "open /Applications/goneovim.app" from the terminal. You can see that it does a few things when it starts, then gets all the way down to the "LoginUserService" line and that's it. The app is running on the machine and working at this point.

2024-08-10 10:58:02.599869 (pid/6296 [Terminal]) <Notice>: Service stub created for com.apple.siri.DeepSyncVerificationService
2024-08-10 10:58:02.599912 (pid/6296 [Terminal]) <Notice>: Service stub created for com.apple.siri.media-indexer
2024-08-10 10:58:02.600019 (pid/6296 [Terminal]) <Notice>: Service stub created for com.apple.tailspin.symbolicationserver
2024-08-10 10:58:02.600107 (pid/6296 [Terminal]) <Notice>: Service stub created for com.apple.SiriTTSService.TrialProxy
2024-08-10 10:58:03.029346 (gui/501/com.apple.xpc.launchd.unmanaged.goneovim.6617 [6617]) <Notice>: added unmanaged active
2024-08-10 10:58:03.076254 (pid/6617 [goneovim]) <Notice>: uncorking exec source upfront
2024-08-10 10:58:03.076264 (pid/6617 [goneovim]) <Notice>: created
2024-08-10 10:58:03.076553 (pid/6617 [goneovim]) <Notice>: uncorking domain
2024-08-10 10:58:03.076690 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.ColorPickerImageLoader
2024-08-10 10:58:03.076700 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.defaultSyncService
2024-08-10 10:58:03.076702 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.documentPopoverViewService
2024-08-10 10:58:03.076705 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.LegacyExternalColorPickerService.arm64
2024-08-10 10:58:03.076707 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.LegacyExternalColorPickerService.x86_64
2024-08-10 10:58:03.076710 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.MediaLibraryBrowser
2024-08-10 10:58:03.076713 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.sandboxedServiceRunner
2024-08-10 10:58:03.076715 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.ThemeWidgetControlViewService
2024-08-10 10:58:03.076717 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.xpc.TypographyPanelService
2024-08-10 10:58:03.076719 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.automator.xpc.workflowServiceRunner
2024-08-10 10:58:03.076722 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.VersionsUIHelper
2024-08-10 10:58:03.076724 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.openAndSavePanelService
2024-08-10 10:58:03.076902 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.PerfPowerTelemetryClientRegistrationService
2024-08-10 10:58:03.076960 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.foundation.UserScriptService
2024-08-10 10:58:03.076970 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.textkit.nsattributedstringagent
2024-08-10 10:58:03.076991 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.CoreGraphics.CGPDFService
2024-08-10 10:58:03.077046 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.ImageIOXPCService
2024-08-10 10:58:03.077141 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.speech.SpeechSynthesisServerXPC
2024-08-10 10:58:03.077182 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.corelocation.maphelperservice
2024-08-10 10:58:03.077249 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.audio.Core-Audio-Driver-Service.helper
2024-08-10 10:58:03.077252 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.audio.Core-Audio-Driver-Service
2024-08-10 10:58:03.077256 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.audio.DriverHelper
2024-08-10 10:58:03.077289 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.extensionkitservice
2024-08-10 10:58:03.077396 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.audio.AUHostingService.x86-64
2024-08-10 10:58:03.077400 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.audio.AUHostingService.arm64e
2024-08-10 10:58:03.077404 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.audio.AudioConverterService
2024-08-10 10:58:03.077408 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.audio.CarbonComponentScanner.x86-64
2024-08-10 10:58:03.077413 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.audio.ComponentTagHelper
2024-08-10 10:58:03.077416 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.audio.InfoHelper
2024-08-10 10:58:03.077419 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.audio.SandboxHelper
2024-08-10 10:58:03.077428 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.internal.DataDetectorsRemoteScanner
2024-08-10 10:58:03.077471 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.CoreDisplay.XPCService
2024-08-10 10:58:03.077480 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.CMValidateMovieDataReferenceService
2024-08-10 10:58:03.077532 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.OSLogService
2024-08-10 10:58:03.077608 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.coremedia.videodecoder
2024-08-10 10:58:03.077611 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.coremedia.videodecoder.zonto
2024-08-10 10:58:03.077613 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.coremedia.videoencoder
2024-08-10 10:58:03.077615 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.coremedia.videoencoder.zonto
2024-08-10 10:58:03.077704 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.desktopservices.ArchiveService
2024-08-10 10:58:03.077708 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.desktopservices.QuarantineService
2024-08-10 10:58:03.077730 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.ColorSyncXPCAgent
2024-08-10 10:58:03.077825 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.security.pboxd
2024-08-10 10:58:03.077843 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.MTLCompilerService
2024-08-10 10:58:03.077860 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.security.XPCAcmeService
2024-08-10 10:58:03.136175 (pid/6617 [goneovim]) <Notice>: Service stub created for com.apple.LoginUserService

Now the next launchd.log output is from running when just clicking the launcher icon. You can see in here that it appears to be spewing a thread, and then at the end it just quits returning and "exit(1)". I think this is because of the forking/no forking thing.

2024-08-10 10:59:49.670949 (gui/501/application.com.ident.goneovim.47173676.47173679) <Notice>: internal event: WILL_SPAWN, code = 0
2024-08-10 10:59:49.670971 (gui/501/application.com.ident.goneovim.47173676.47173679) <Notice>: service state: spawn scheduled
2024-08-10 10:59:49.670972 (gui/501/application.com.ident.goneovim.47173676.47173679) <Notice>: service state: spawning
2024-08-10 10:59:49.670996 <Notice>: Coalition Cache Hit: app<application.com.ident.goneovim.47173676.47173679(501)> [1345]
2024-08-10 10:59:49.671030 (gui/501/application.com.ident.goneovim.47173676.47173679) <Notice>: launching: launch job demand
2024-08-10 10:59:49.671805 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: xpcproxy spawned with pid 6775
2024-08-10 10:59:49.671834 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: internal event: SPAWNED, code = 0
2024-08-10 10:59:49.671836 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: service state: xpcproxy
2024-08-10 10:59:49.671864 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: internal event: SOURCE_ATTACH, code = 0
2024-08-10 10:59:49.689491 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: service state: running
2024-08-10 10:59:49.689509 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: internal event: INIT, code = 0
2024-08-10 10:59:49.689513 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: job state = running
2024-08-10 10:59:49.689618 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: Successfully spawned goneovim[6775] because launch job demand
2024-08-10 10:59:49.791353 (pid/6775 [goneovim]) <Notice>: uncorking exec source upfront
2024-08-10 10:59:49.791380 (pid/6775 [goneovim]) <Notice>: created
2024-08-10 10:59:49.909051 (pid/6775 [goneovim]) <Notice>: uncorking domain
2024-08-10 10:59:49.909154 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.ColorPickerImageLoader
2024-08-10 10:59:49.909161 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.defaultSyncService
2024-08-10 10:59:49.909163 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.documentPopoverViewService
2024-08-10 10:59:49.909166 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.LegacyExternalColorPickerService.arm64
2024-08-10 10:59:49.909168 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.LegacyExternalColorPickerService.x86_64
2024-08-10 10:59:49.909170 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.MediaLibraryBrowser
2024-08-10 10:59:49.909173 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.sandboxedServiceRunner
2024-08-10 10:59:49.909175 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.ThemeWidgetControlViewService
2024-08-10 10:59:49.909177 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.xpc.TypographyPanelService
2024-08-10 10:59:49.909179 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.automator.xpc.workflowServiceRunner
2024-08-10 10:59:49.909181 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.VersionsUIHelper
2024-08-10 10:59:49.909184 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.appkit.xpc.openAndSavePanelService
2024-08-10 10:59:49.909367 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.PerfPowerTelemetryClientRegistrationService
2024-08-10 10:59:49.909402 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.foundation.UserScriptService
2024-08-10 10:59:49.909415 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.textkit.nsattributedstringagent
2024-08-10 10:59:49.909436 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.CoreGraphics.CGPDFService
2024-08-10 10:59:49.909481 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.ImageIOXPCService
2024-08-10 10:59:49.909569 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.speech.SpeechSynthesisServerXPC
2024-08-10 10:59:49.909630 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.audio.Core-Audio-Driver-Service.helper
2024-08-10 10:59:49.909638 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.audio.Core-Audio-Driver-Service
2024-08-10 10:59:49.909641 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.audio.DriverHelper
2024-08-10 10:59:49.909676 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.extensionkitservice
2024-08-10 10:59:49.909710 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.corelocation.maphelperservice
2024-08-10 10:59:49.909751 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.audio.AUHostingService.x86-64
2024-08-10 10:59:49.909754 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.audio.AUHostingService.arm64e
2024-08-10 10:59:49.909758 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.audio.AudioConverterService
2024-08-10 10:59:49.909763 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.audio.CarbonComponentScanner.x86-64
2024-08-10 10:59:49.909767 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.audio.ComponentTagHelper
2024-08-10 10:59:49.909769 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.audio.InfoHelper
2024-08-10 10:59:49.909771 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.audio.SandboxHelper
2024-08-10 10:59:49.909782 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.internal.DataDetectorsRemoteScanner
2024-08-10 10:59:49.909830 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.CoreDisplay.XPCService
2024-08-10 10:59:49.909839 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.CMValidateMovieDataReferenceService
2024-08-10 10:59:49.909894 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.OSLogService
2024-08-10 10:59:49.910005 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.coremedia.videodecoder
2024-08-10 10:59:49.910014 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.coremedia.videodecoder.zonto
2024-08-10 10:59:49.910015 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.coremedia.videoencoder
2024-08-10 10:59:49.910018 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.coremedia.videoencoder.zonto
2024-08-10 10:59:49.910122 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.ColorSyncXPCAgent
2024-08-10 10:59:49.910210 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.desktopservices.ArchiveService
2024-08-10 10:59:49.910218 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.desktopservices.QuarantineService
2024-08-10 10:59:49.910233 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.security.pboxd
2024-08-10 10:59:49.910252 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.MTLCompilerService
2024-08-10 10:59:49.910270 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.security.XPCAcmeService
2024-08-10 10:59:49.958576 (pid/6775 [goneovim]) <Notice>: Service stub created for com.apple.LoginUserService
2024-08-10 10:59:49.993648 (pid/6775 [goneovim]) <Notice>: shutting down
2024-08-10 10:59:49.993682 (pid/6775 [goneovim]) <Notice>: cleaning up
2024-08-10 10:59:49.993724 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: exited due to exit(1), ran for 314ms
2024-08-10 10:59:49.993727 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: service state: exited
2024-08-10 10:59:49.993734 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: internal event: EXITED, code = 0
2024-08-10 10:59:49.993736 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: job state = exited
2024-08-10 10:59:49.993762 (gui/501 [100004]) <Notice>: service inactive: application.com.ident.goneovim.47173676.47173679
2024-08-10 10:59:49.993765 (gui/501/application.com.ident.goneovim.47173676.47173679 [6775]) <Notice>: service state: not running
2024-08-10 10:59:49.993771 (system) <Notice>: removing child: pid/6775
2024-08-10 10:59:49.994442 (gui/501/application.com.ident.goneovim.47173676.47173679) <Notice>: removing job: caller = runningboardd
2024-08-10 10:59:49.994445 (gui/501 [100004]) <Notice>: removing service: application.com.ident.goneovim.47173676.47173679
2024-08-10 10:59:49.994453 (gui/501/application.com.ident.goneovim.47173676.47173679) <Notice>: internal event: PETRIFIED, code = 0
2024-08-10 10:59:49.994455 (gui/501/application.com.ident.goneovim.47173676.47173679) <Notice>: job state = removed

Notice the mentioning of WILL_SPAWN and spawn scheduled in the first few lines, and then notice the exited due to exit(1) near the bottom after the shutting down and cleaning up lines?

Is there a way to force the --nofork option even when it's ran by clicking the App bundle (like with an environment variable or something) so I can see if that's what's happening?

akiyosi commented 1 month ago

@mrunion Hi :) One possible cause that I noticed immediately after receiving this report is that when launching from the App icon, the correct environment variable is not exported and nvim is not found, causing the crash. Is it possible that only the .zshrc is set and the .zprofile is missing a setting for nvim to be found?

mrunion commented 1 month ago

That was it!! Awesome! Thanks!

My .zprofile didn't;t have the correct path set on the MacBook, but it was correct on the iMac where the app would run.

Again, thanks! I will close this issue.