macos: crash interacting with the video player demo
We need to check why the following selector is not recognized.
2020-12-31 13:08:57.084 gtk4-demo[26843:1990960] -[NSOpenAndSavePanelContentView gdkSurface]: unrecognized selector sent to instance 0x7fb875df36c0
2020-12-31 13:08:57.085 gtk4-demo[26843:1990960] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSOpenAndSavePanelContentView gdkSurface]: unrecognized selector sent to instance 0x7fb875df36c0'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff489669ad __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff73073a17 objc_exception_throw + 48
2 CoreFoundation 0x00007fff489e07f4 -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x00007fff4890881f ___forwarding___ + 1485
4 CoreFoundation 0x00007fff489081c8 _CF_forwarding_prep_0 + 120
5 libgtk-4.1.dylib 0x000000010b95bf56 get_surface_from_ns_event + 118
6 libgtk-4.1.dylib 0x000000010b95a077 find_surface_for_ns_event + 455
7 libgtk-4.1.dylib 0x000000010b959a4c _gdk_macos_display_translate + 396
8 libgtk-4.1.dylib 0x000000010b956bb8 gdk_macos_display_queue_events + 216
9 libgtk-4.1.dylib 0x000000010b956ad1 _gdk_macos_display_queue_events + 209
10 libgtk-4.1.dylib 0x000000010b962231 gdk_macos_event_source_dispatch + 65
11 libglib-2.0.0.dylib 0x000000010c01d11b g_main_dispatch + 427
12 libglib-2.0.0.dylib 0x000000010c01cf60 g_main_context_dispatch + 48
13 libglib-2.0.0.dylib 0x000000010c01d486 g_main_context_iterate + 454
14 libglib-2.0.0.dylib 0x000000010c01d503 g_main_context_iteration + 83
15 libgio-2.0.0.dylib 0x000000010c344569 g_application_run + 1017
16 gtk4-demo 0x000000010adb3e84 main + 852
17 libdyld.dylib 0x00007fff748423d5 start + 1
18 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException