Skip to content

[MacOS]crash on zoom since kitty 0.40 #8443

@dmtrKovalenko

Description

@dmtrKovalenko

Describe the bug

Changing font size in runtime crashes the application. No matter it is change_font_size action or manually editing and saving the config

To Reproduce
Steps to reproduce the behavior:

  1. Open kittty
  2. Make the zoom in command
  3. Crash

Here is my command config

map cmd+plus   change_font_size all +2.0
map cmd+minus       change_font_size all -2.0

Crash report:

Process:               kitty [69567]
Path:                  /Applications/kitty.app/Contents/MacOS/kitty
Identifier:            net.kovidgoyal.kitty
Version:               0.40.0 (0.40.0)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2025-03-15 09:32:48.8135 +0100
OS Version:            macOS 15.3.2 (24D81)
Report Version:        12
Anonymous UUID:        D4636D81-E07D-6D22-C1F1-5CDF3DF54E08

Sleep/Wake UUID:       3B332C79-4FB6-4938-8572-494A41D44D56

Time Awake Since Boot: 37000 seconds
Time Since Wake:       350 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   kitty [69567]

Application Specific Information:
abort() called


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x18e2a3720 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x18e2dbf70 pthread_kill + 288
2   libsystem_c.dylib             	       0x18e1e8908 abort + 128
3   libsystem_malloc.dylib        	       0x18e0f1e38 malloc_vreport + 896
4   libsystem_malloc.dylib        	       0x18e11a458 malloc_zone_error + 100
5   libsystem_malloc.dylib        	       0x18e109774 nanov2_guard_corruption_detected + 44
6   libsystem_malloc.dylib        	       0x18e109734 nanov2_allocate_outlined + 460
7   libsystem_malloc.dylib        	       0x18e108468 nanov2_calloc_type + 568
8   libobjc.A.dylib               	       0x18df0ba44 class_createInstance + 72
9   CoreFoundation                	       0x18e34b5a8 __CFAllocateObject + 20
10  CoreFoundation                	       0x18e34b558 __NSSingleObjectArrayI_new + 48
11  CoreFoundation                	       0x18e36dc78 -[NSArray initWithArray:range:copyItems:] + 368
12  Foundation                    	       0x18f58377c -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 512
13  Foundation                    	       0x18f5833d4 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 112
14  kitty.glfw-cocoa.so           	       0x1037ec43c 0x1037d0000 + 115772
15  kitty.glfw-cocoa.so           	       0x1037e5ccc 0x1037d0000 + 89292
16  AppKit                        	       0x192060ba4 _NSSendEventToObservers + 252
17  AppKit                        	       0x19289f404 -[NSApplication(NSEventRouting) sendEvent:] + 116
18  AppKit                        	       0x1924a6b04 -[NSApplication _handleEvent:] + 60
19  AppKit                        	       0x191f2d89c -[NSApplication run] + 520
20  kitty.glfw-cocoa.so           	       0x1037d9150 glfwRunMainLoop + 112
21  kitty.fast_data_types.so      	       0x102e1e2a4 0x102e14000 + 41636
22  Python                        	       0x1038ea404 method_vectorcall_NOARGS + 120
23  Python                        	       0x103a1be9c _PyEval_EvalFrameDefault + 52788
24  Python                        	       0x1038d7de4 _PyObject_FastCallDictTstate + 96
25  Python                        	       0x10396d09c slot_tp_call + 200
26  Python                        	       0x1038d790c _PyObject_MakeTpCall + 128
27  Python                        	       0x103a1c018 _PyEval_EvalFrameDefault + 53168
28  Python                        	       0x103a0e1a0 PyEval_EvalCode + 296
29  Python                        	       0x103a09a00 builtin_exec + 408
30  Python                        	       0x1039431c0 cfunction_vectorcall_FASTCALL_KEYWORDS + 92
31  Python                        	       0x103a1be9c _PyEval_EvalFrameDefault + 52788
32  Python                        	       0x103aca29c pymain_run_module + 276
33  Python                        	       0x103ac9a64 pymain_run_python + 872
34  Python                        	       0x103ac96b8 Py_RunMain + 24
35  kitty                         	       0x10256e864 0x10256c000 + 10340
36  kitty                         	       0x10256dc50 main + 2064
37  dyld                          	       0x18df5c274 start + 2840

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions