nikhedonia / buckaroo-sfml-tests

0 stars 2 forks source link

OSX: Unrecognized selector sent to instance #2

Open zfedoran opened 5 years ago

zfedoran commented 5 years ago

I'm not able to get this to run successfully on OSX. I've tried a number of things including updating the repo to the new buckaroo structure.

I'm able to get it to compile and download the dependencies, however I receive the following runtime error:

OS Version:            Mac OS X 10.14.5 (18F132)

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SFOpenGLView enableKeyRepeat]: unrecognized selector sent to instance 0x7febaa694480'
terminating with uncaught exception of type NSException
abort() called

Application Specific Backtrace 1:
0   CoreFoundation                      0x00007fff2e88fcfd __exceptionPreprocess + 256
1   libobjc.A.dylib                     0x00007fff58f35a17 objc_exception_throw + 48
2   CoreFoundation                      0x00007fff2e909b06 -[NSObject(NSObject) __retain_OA] + 0
3   CoreFoundation                      0x00007fff2e831b8f ___forwarding___ + 1485
4   CoreFoundation                      0x00007fff2e831538 _CF_forwarding_prep_0 + 120
5   app                                 0x0000000101df0a4e -[SFOpenGLView initWithFrame:fullscreen:] + 190
6   app                                 0x0000000101df3f1e -[SFWindowController setupWindowWithMode:andStyle:] + 670
7   app                                 0x0000000101df360a -[SFWindowController initWithMode:andStyle:] + 362
8   app                                 0x0000000101e23e57 _ZN2sf4priv15WindowImplCocoaC2ENS_9VideoModeERKNS_6StringEmRKNS_15ContextSettingsE + 183
9   app                                 0x0000000101e24117 _ZN2sf4priv15WindowImplCocoaC1ENS_9VideoModeERKNS_6StringEmRKNS_15ContextSettingsE + 87
10  app                                 0x0000000101e1f562 _ZN2sf4priv10WindowImpl6createENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE + 130
11  app                                 0x0000000101e1ca93 _ZN2sf6Window6createENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE + 355
12  app                                 0x0000000101dec250 _ZN2sf12RenderWindowC2ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE + 176
13  app                                 0x0000000101dec317 _ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE + 87
14  app                                 0x0000000101d9b2b6 main + 230
15  libdyld.dylib                       0x00007fff5a7033d5 start + 1
16  ???                                 0x0000000000000001 0x0 + 1

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff5a83e2c6 __pthread_kill + 10
1   libsystem_pthread.dylib         0x00007fff5a8f9bf1 pthread_kill + 284
2   libsystem_c.dylib               0x00007fff5a7a86a6 abort + 127
3   libc++abi.dylib                 0x00007fff57984641 abort_message + 231
4   libc++abi.dylib                 0x00007fff579847df default_terminate_handler() + 267
5   libobjc.A.dylib                 0x00007fff58f37ee3 _objc_terminate() + 97
6   libc++abi.dylib                 0x00007fff5799019e std::__terminate(void (*)()) + 8
7   libc++abi.dylib                 0x00007fff5798ff86 __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 27
8   libc++abi.dylib                 0x00007fff57982f99 __cxa_throw + 113
9   libobjc.A.dylib                 0x00007fff58f35b51 objc_exception_throw + 362
10  com.apple.CoreFoundation        0x00007fff2e909b06 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
11  com.apple.CoreFoundation        0x00007fff2e831b8f ___forwarding___ + 1485
12  com.apple.CoreFoundation        0x00007fff2e831538 _CF_forwarding_prep_0 + 120
13  app                             0x0000000101df0a4e -[SFOpenGLView initWithFrame:fullscreen:] + 190
14  app                             0x0000000101df3f1e -[SFWindowController setupWindowWithMode:andStyle:] + 670
15  app                             0x0000000101df360a -[SFWindowController initWithMode:andStyle:] + 362
16  app                             0x0000000101e23e57 sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long, sf::ContextSettings const&) + 183
17  app                             0x0000000101e24117 sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long, sf::ContextSettings const&) + 87
18  app                             0x0000000101e1f562 sf::priv::WindowImpl::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) + 130
19  app                             0x0000000101e1ca93 sf::Window::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) + 355
20  app                             0x0000000101dec250 sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) + 176
21  app                             0x0000000101dec317 sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) + 87
22  app                             0x0000000101d9b2b6 main + 230
23  libdyld.dylib                   0x00007fff5a7033d5 start + 1

Perhaps this is related to https://github.com/SFML/SFML/pull/1485 or https://github.com/bincrafters/community/issues/534 but I am not certain how to resolve this with buckaroo or buck.

Any help or pointers would be appreciated.