Closed shiena closed 3 months ago
@shiena Hi :D Hmmm, I have not yet been able to reproduce this on my M1 Mac. Is it reproducible in your environment? Also, are you using any other Apps/Tools on the OS that involve window controls?
@akiyosi Crash when enabling stage manager. There was no problem with Stage Manager being disabled.
Additionally, I found that enabling DesktopNotifications and Stage Manager sometimes causes a crash on startup.
Thanks for the info!
Hmmm, I have not been able to reproduce this in my environment... There may be some other conditions.
Perhaps the difference in CPUs may have an impact. My environments that crash are M2 Pro and M3.
I found a pull requests that fixes the same error message. I'm not sure if this fixes it in the same way. https://github.com/wailsapp/wails/pull/2152
I also reproduced this problem in another operation. However, I have not been able to identify the conditions to reproduce it at 100%. Apparently, it seems to happen rarely when other window operations occur while Goneovim is running...
There is a fix for the same error message in golang itself. This fix has been incorporated in golang 1.22.2. https://github.com/golang/go/issues/60007
I tried building with go 1.22.2 but unfortunately it did not solve the problem.
@shiena Does this problem reproduce itself with instances started with the nofork option as follows? /path/to/goneovim.app/Contents/MacOS/goneovim --nofork
@akiyosi Yes, it crashes with the same error message even with the nofork option.
This is the console log when goneovim crashes.
For some reason it no longer crashes.
Environment
Reproduction steps
DesktopNotifications = true
to settings.tomlGonvimMaximize
goneovim --cmd GonvimMaximize -- -u NONE
``` signal 16 received but handler not on signal stack mp.gsignal stack [0x14000004000 0x1400000c000], mp.g0 stack [0x16ef584e8 0x16f753520], sp=0x14000186628 fatal error: non-Go code set up signal handler without SA_ONSTACK flag runtime stack: runtime.throw({0x1018d585d?, 0x300000006?}) runtime/panic.go:1077 +0x40 fp=0x14000186570 sp=0x14000186540 pc=0x1006ec570 runtime.sigNotOnStack(0x10, 0x14000186600?, 0x102100b00) runtime/signal_unix.go:1045 +0x118 fp=0x140001865b0 sp=0x14000186570 pc=0x100703a28 runtime.adjustSignalStack(0x10, 0x102100b00, 0x14000186658) runtime/signal_unix.go:592 +0x25c fp=0x14000186620 sp=0x140001865b0 pc=0x100702adc runtime.sigtrampgo(0x10, 0x140001867c0, 0x14000186828) runtime/signal_unix.go:480 +0x8c fp=0x140001866a0 sp=0x14000186620 pc=0x10070261c runtime.sigtrampgo(0x10, 0x140001867c0, 0x14000186828)Note: not reproducible x86_64 version with Rosetta2