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

[Mac] kitty freezes in native full screen #1748

Closed
DazWorrall opened this issue Jun 26, 2019 · 7 comments
Closed

[Mac] kitty freezes in native full screen #1748

DazWorrall opened this issue Jun 26, 2019 · 7 comments

Comments

@DazWorrall
Copy link

I've seen this on 0.14.1 and above, maybe also 0.14.0, though I cannot reliably reproduce. I have kitty in native fullscreen alongside another app, and sometimes after returning to it from another desktop I find it frozen (beachball on mouseover, not responding in activity monitor). It's thankfully not spinning a CPU:

image

dtruss show's it's not entirely dead, though it doesn't reveal much else:

sample dtruss output - the PID matches the unresponsive window
daz$ sudo dtruss -n kitty
dtrace: system integrity protection is on, some features will not be available

	PID/THRD  SYSCALL(args) 		 = return
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x13A4F)		 = 0 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x0)		 = 0 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x13A4F)		 = 0 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x0)		 = 0 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x13A4F)		 = 0 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x0)		 = 0 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x13A4F)		 = 0 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x0)		 = 0 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x13A4F)		 = 0 0
48665/0x156bb82:  bsdthread_ctl(0x100, 0x0, 0x8BAB)		 = 0 0
48665/0x156bb82:  workq_kernreturn(0x20, 0x0, 0x1)		 = 0 0
48665/0x156bf03:  thread_selfid(0x0, 0x0, 0x0)		 = 22462211 0
48665/0x156bf03:  bsdthread_ctl(0x100, 0x0, 0x8BAB)		 = 0 0
48665/0x156bf03:  ulock_wake(0x1000002, 0x7FFF9CA2B1C0, 0x0)		 = -2 0
48665/0x156bb82:  ulock_wait(0x1010002, 0x7FFF9CA2B1C0, 0x639E)		 = 0 0
48665/0x156bb82:  kevent_id(0x600000274B40, 0x70000EFBAB80, 0x1)		 = 0 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x0)		 = 0 0
48665/0x156bf03:  workq_kernreturn(0x4, 0x0, 0x0)		 = 0 Err#-2
48665/0x156bf03:  __disable_threadsignal(0x1, 0x0, 0x0)		 = 0 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x13A4F)		 = 0 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x0)		 = 0 0
dtrace: error on enabled probe ID 2366 (ID 897: syscall::thread_selfid:return): invalid user access in action #5 at DIF offset 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x13A4F)		 = 0 0
48665/0x156bb82:  workq_kernreturn(0x100, 0x70000EFBAB80, 0x1)		 = 0 Err#-2
48665/0x156bb82:  bsdthread_ctl(0x100, 0x0, 0x63A3)		 = 0 0
48665/0x156bb82:  workq_kernreturn(0x20, 0x0, 0x1)		 = 0 0
48665/0x156c423:  thread_selfid(0x0, 0x0, 0x0)		 = 22463523 0
48665/0x156bb82:  kevent_id(0x600000274B40, 0x70000EFBAB80, 0x1)		 = 0 0
48665/0x156c423:  bsdthread_ctl(0x100, 0x0, 0x63A3)		 = 0 0
48665/0x121c413:  bsdthread_ctl(0x100, 0x0, 0x0)		 = 0 0
48665/0x156bb82:  workq_kernreturn(0x100, 0x70000EFBAB80, 0x1)		 = 0 Err#-2
48665/0x156bb82:  __disable_threadsignal(0x1, 0x0, 0x0)		 = 0 0
...

MacOS version is 10.14.5 (18F132). What else can I capture to help debug this?

@kovidgoyal
Copy link
Owner

Try setting sync_to_monitor no in kitty.conf and see if that fixes it.

@DazWorrall
Copy link
Author

Done, will report back, thanks. I should have included my kitty.conf, here's what I've customised:

font_family      Monaco
font_size 12.0
open_url_modifiers cmd
copy_on_select yes
select_by_word_characters @-./_~?&%+#
sync_to_monitor no
enable_audio_bell no
enabled_layouts vertical,fat:bias=70,grid
inactive_text_alpha 0.6
macos_option_as_alt no
macos_quit_when_last_window_closed yes
macos_thicken_font 0.75
kitty_mod alt+shift
map shift+page_up   scroll_page_up
map shift+page_down scroll_page_down
map shift+cmd+enter kitten zoom_toggle.py
map alt+left send_text normal \x1bb
map alt+right send_text normal \x1bf

@mong8se
Copy link
Contributor

mong8se commented Jun 27, 2019

I've been experiencing the same issue and for what it's worth, "sync_to_monitor no" has been working since I saw this issue thread yesterday.

@kovidgoyal
Copy link
Owner

Can someone post a detailed set of steps to reproduce it, I am not a
macOS users, so the more detailed the better.

@kovidgoyal
Copy link
Owner

Note that the fix I made is speculative since I cant reproduce. So someone please test it.

@Luflosi
Copy link
Contributor

Luflosi commented Jun 28, 2019

I think we should print a warning when this happens.

@kovidgoyal
Copy link
Owner

Sure feel free to send a PR for 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

4 participants