Hi,
SFML seems to be having some trouble asking Mac OS for joystick information... I'll just leave you with this stacktrace (the window and event objects
are should be valid).
#0 0x00007fff8fc90250 in objc_msgSend ()
#1 0x00000001000fce18 in typeinfo for sf::GlResource ()
#2 0x00007fff8f2a4602 in __CFRunLoopModeIsEmpty ()
#3 0x00007fff8f2c8037 in CFRunLoopRunSpecific ()
#4 0x00000001000dd934 in sf::priv::HIDJoystickManager::update (this=0x1000fdeb0) at /Users/linus/Programming/SFML/src/SFML/Window/OSX/HIDJoystickManager.cpp:127
#5 0x00000001000dd8e9 in sf::priv::HIDJoystickManager::getJoystickCount (this=0x1000fdeb0) at /Users/linus/Programming/SFML/src/SFML/Window/OSX/HIDJoystickManager.cpp:58
#6 0x00000001000ddc9e in sf::priv::JoystickImpl::isConnected (index=0) at /Users/linus/Programming/SFML/src/SFML/Window/OSX/JoystickImpl.cpp:87
#7 0x00000001000d046a in sf::priv::JoystickManager::update (this=0x1000fcf48) at /Users/linus/Programming/SFML/src/SFML/Window/JoystickManager.cpp:80
#8 0x00000001000d60c5 in sf::priv::WindowImpl::processJoystickEvents (this=0x1013104d0) at /Users/linus/Programming/SFML/src/SFML/Window/WindowImpl.cpp:148
#9 0x00000001000d5f9e in sf::priv::WindowImpl::popEvent (this=0x1013104d0, event=@0x7fff5fbff988, block=false) at /Users/linus/Programming/SFML/src/SFML/Window/WindowImpl.cpp:105
#10 0x00000001000d537c in sf::Window::pollEvent (this=0x7fff5fbffa90, event=@0x7fff5fbff988) at /Users/linus/Programming/SFML/src/SFML/Window/Window.cpp:186
#11 0x0000000100003f3b in Sim::run (this=0x7fff5fbffa30) at /Users/linus/programming/swarmers-v3/Sim.cpp:65
#12 0x0000000100002ec9 in main () at /Users/linus/programming/swarmers-v3/main.cpp:7
Thanks in advance to anyone who can help me!
I'm also taking a look at the problem but am not expecting to find out much (I'm not in the slightest experienced with Objective-C and the Mac OS APIs).
Notes:
- SFML from git, on master (currently d077210). Also occurs with SFML 2.0 (sorry, haven't tested it with stock 2.1, but it doesn't seem all that likely that it was fixed in 2.1 only to regress again).
- OSX 10.8.4