Crashing with C and Python programs on macOS 12.4 Intel
While using the Python and C examples bundled with gtk-vnc's source as well as another self-coded Python script, when a gtk-vnc instance is created, it crashes every time. The official examples I'm attempting to run are located here. Version of gtk-vnc is 1.2.0, provided by the Homebrew project.
Here is the relevant debug output from macOS's crash reporter when trying in Python 3.9:
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 0x7ff80233c00e __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff8023721ff pthread_kill + 263
2 libsystem_c.dylib 0x7ff8022bdd24 abort + 123
3 libsystem_malloc.dylib 0x7ff80219b357 malloc_vreport + 551
4 libsystem_malloc.dylib 0x7ff80219e52b malloc_report + 151
5 libgvnc-1.0.0.dylib 0x10818f1ce vnc_connection_close + 622
6 libgvnc-1.0.0.dylib 0x10818f5ba vnc_connection_coroutine + 922
7 libgvnc-1.0.0.dylib 0x10819aa10 coroutine_trampoline + 16
Here is the lldb backtrace when trying in C:
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
* frame #0: 0x00007ff80233c00e libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x00007ff8023721ff libsystem_pthread.dylib`pthread_kill + 263
frame #2: 0x00007ff8022bdd24 libsystem_c.dylib`abort + 123
frame #3: 0x00007ff80219b357 libsystem_malloc.dylib`malloc_vreport + 551
frame #4: 0x00007ff80219e52b libsystem_malloc.dylib`malloc_report + 151
frame #5: 0x00000001002561ce libgvnc-1.0.0.dylib`vnc_connection_close + 622
frame #6: 0x00000001002565ba libgvnc-1.0.0.dylib`vnc_connection_coroutine + 922
frame #7: 0x0000000100261a10 libgvnc-1.0.0.dylib`coroutine_trampoline + 16
frame #8: 0x00007ff80238be43 libsystem_platform.dylib`_ctx_start + 11
frame #9: 0x000000010111f340 libglib-2.0.0.dylib`thread_context_stack + 32
With both types of attempts, the gtk-vnc widget never displays and doesn't reach the authentication stage.
Thanks!