macOS Intel - Included gvncviewer.py example crashes when attempting to connect
On macOS 12.7.2 (Intel / x86_64) the included example gvncviewer.py
script crashes when attempting to connect to valid and non-valid servers. gtk-vnc was installed through Homebrew but they will probably say it's an upstream issue due to responses to similar issues.
Along with the example file, I also have a python 3 + gobject-introspection + gtk-vnc script that has worked fine for years on Linux (x86_64) and Windows (x86_64) but it crashes on macOS with the same error.
Backtrace / error report:
Process: Python [67167]
Path: /usr/local/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/Resources/Python.app/Contents/MacOS/Python
Identifier: org.python.python
Version: 3.11.6 (3.11.6)
Code Type: X86-64 (Native)
Parent Process: zsh [63091]
Responsible: Terminal [63089]
User ID: 501
Date/Time: 2023-12-23 14:47:52.4299 -0800
OS Version: macOS 12.7.2 (21G1974)
Report Version: 12
Time Awake Since Boot: 260000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x7ff8044a0ffe __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff8044d71ff pthread_kill + 263
2 libsystem_c.dylib 0x7ff804422d14 abort + 123
3 libsystem_malloc.dylib 0x7ff804300357 malloc_vreport + 551
4 libsystem_malloc.dylib 0x7ff80430352b malloc_report + 151
5 libgvnc-1.0.0.dylib 0x1072b1d65 vnc_connection_set_error + 161
6 libgvnc-1.0.0.dylib 0x1072b5291 vnc_connection_coroutine + 8946
7 libgvnc-1.0.0.dylib 0x1072bbc1e coroutine_trampoline + 16
Thread 1:
0 libsystem_pthread.dylib 0x7ff8044d2f48 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x7ff8044d2f48 start_wqthread + 0
Thread 3:: Dispatch queue: com.apple.root.background-qos
0 libsystem_kernel.dylib 0x7ff80449b392 close + 10
1 AppKit 0x7ff806f18dbf -[NSPersistentUICrashHandler inspectCrashDataWithModification:handler:] + 738
2 AppKit 0x7ff80707a006 __82-[NSPersistentUIRestorer tearDownStateRestorationApparatusAndResumeWindowOrdering]_block_invoke + 47
3 AppKit 0x7ff807a16228 ___NSPersistentUIDispatchQueueAsync_block_invoke + 28
4 libdispatch.dylib 0x7ff80431f0cc _dispatch_call_block_and_release + 12
5 libdispatch.dylib 0x7ff804320317 _dispatch_client_callout + 8
6 libdispatch.dylib 0x7ff80432fc0c _dispatch_root_queue_drain + 673
7 libdispatch.dylib 0x7ff80433025c _dispatch_worker_thread2 + 160
8 libsystem_pthread.dylib 0x7ff8044d3f8a _pthread_wqthread + 256
9 libsystem_pthread.dylib 0x7ff8044d2f57 start_wqthread + 15
Thread 4:
0 libsystem_pthread.dylib 0x7ff8044d2f48 start_wqthread + 0
Thread 5:: pool-spawner
0 libsystem_kernel.dylib 0x7ff80449d3da __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x7ff8044d7a6f _pthread_cond_wait + 1249
2 libglib-2.0.0.dylib 0x1021bb2d4 g_cond_wait + 37
3 libglib-2.0.0.dylib 0x102143588 g_async_queue_pop_intern_unlocked + 99
4 libglib-2.0.0.dylib 0x102196a43 g_thread_pool_spawn_thread + 117
5 libglib-2.0.0.dylib 0x1021965ee g_thread_proxy + 66
6 libsystem_pthread.dylib 0x7ff8044d74e1 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff8044d2f6b thread_start + 15
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00000001074b3600 rcx: 0x0000000109d899f8 rdx: 0x0000000000000000
rdi: 0x0000000000000103 rsi: 0x0000000000000006 rbp: 0x0000000109d89a20 rsp: 0x0000000109d899f8
r8: 0x0000000000000001 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000246
r12: 0x0000000000000103 r13: 0x0000000000000050 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007ff8044a0ffe rfl: 0x0000000000000246 cr2: 0x0000000000000000
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133
Binary Images:
0x7ff804499000 - 0x7ff8044d0fff libsystem_kernel.dylib (*) <c37bfe8a-c5ae-3fe0-b722-33483d9017b9> /usr/lib/system/libsystem_kernel.dylib
0x7ff8044d1000 - 0x7ff8044dcfff libsystem_pthread.dylib (*) <e097f78f-fcfb-30f3-9164-dbc9709ba134> /usr/lib/system/libsystem_pthread.dylib
0x7ff8043a1000 - 0x7ff804429fff libsystem_c.dylib (*) <4ecd1661-9d96-3669-bb31-4c6d5c685d4c> /usr/lib/system/libsystem_c.dylib
0x7ff8042f1000 - 0x7ff80431cfff libsystem_malloc.dylib (*) <2ea05464-fac2-32fe-8e03-94252869554d> /usr/lib/system/libsystem_malloc.dylib
0x1072a8000 - 0x1072bffff libgvnc-1.0.0.dylib (*) <1139f1a1-6a9c-36a1-8e8a-deb4a0ec9837> /usr/local/Cellar/gtk-vnc/1.3.1_1/lib/libgvnc-1.0.0.dylib
0x7ff806ed3000 - 0x7ff807d62fff com.apple.AppKit (6.9) <322c1378-24a3-3361-97a1-8a487166d15b> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7ff80431d000 - 0x7ff804363fff libdispatch.dylib (*) <85c90f84-c537-3cc6-b795-a066e050ffe3> /usr/lib/system/libdispatch.dylib
0x102139000 - 0x102224fff libglib-2.0.0.dylib (*) <b14dfb99-bdf8-388e-98a3-dfecbf67fbb5> /usr/local/Cellar/glib/2.78.3/lib/libglib-2.0.0.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 2
thread_create: 0
thread_set_state: 62
VM Region Summary:
ReadOnly portion of Libraries: Total=883.4M resident=0K(0%) swapped_out_or_unallocated=883.4M(100%)
Writable regions: Total=1.5G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.5G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Accelerate framework 256K 2
Activity Tracing 256K 1
CG image 16K 4
ColorSync 220K 26
CoreAnimation 32K 6
CoreGraphics 12K 2
CoreUI image data 316K 5
Foundation 16K 1
IOKit 7940K 1
Kernel Alloc Once 8K 1
MALLOC 279.4M 48
MALLOC guard page 48K 11
MALLOC_MEDIUM (reserved) 840.0M 7 reserved VM address space (unallocated)
MALLOC_NANO (reserved) 384.0M 1 reserved VM address space (unallocated)
STACK GUARD 20K 5
Stack 18.5M 6
Stack Guard 4K 1
VM_ALLOCATE 21.1M 16
__CTF 756 1
__DATA 19.6M 342
__DATA_CONST 13.2M 224
__DATA_DIRTY 535K 98
__FONT_DATA 4K 1
__LINKEDIT 651.6M 62
__OBJC_RO 82.9M 1
__OBJC_RW 3200K 2
__TEXT 231.9M 363
__UNICODE 592K 1
dyld private memory 1024K 1
mapped file 67.6M 30
shared memory 760K 15
=========== ======= =======
TOTAL 2.6G 1285
TOTAL, minus reserved VM space 1.4G 1285
Thanks