I am trying to build a project (
https://github.com/Hopson97/open-builder) on my mac. It builds fine, but I am getting a segfault after calling window.create(). I am somewhat at a loss right now what is going on because the project works for users not on mac, and I can build and run the example opengl & sfml example. Here is the stack trace of the two threads at the crash:
__cxa_throw (@__cxa_throw:3)
nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>::parser::unexpect(nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>::lexer::token_type) const (@nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>::parser::unexpect(nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>::lexer::token_type) const:96)
nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>::parser::parse_internal(bool) (@nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>::parser::parse_internal(bool):35)
nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>::parser::parse() (@nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>::parser::parse():19)
nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer> nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>::parse<char const*, 0>(char const*, char const*, std::__1::function<bool (int, nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>::parse_event_t, nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>&)>) (@nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer> nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>::parse<char const*, 0>(char const*, char const*, std::__1::function<bool (int, nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>::parse_event_t, nlohmann::basic_json<std::__1::map, std::__1::vector, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool, long long, unsigned long long, double, std::__1::allocator, nlohmann::adl_serializer>&)>):84)
FrameworkConfiguration::init() (@FrameworkConfiguration::init():94)
FrameworkConfiguration::create(applesauce::xpc::object) (@FrameworkConfiguration::create(applesauce::xpc::object):57)
CoreAnalytics::Client::handleConfigurationChange_sync(applesauce::xpc::dict const&) (@CoreAnalytics::Client::handleConfigurationChange_sync(applesauce::xpc::dict const&):53)
CoreAnalytics::Client::handleServerMessage_sync(applesauce::xpc::dict) (@CoreAnalytics::Client::handleServerMessage_sync(applesauce::xpc::dict):122)
___ZZN13CoreAnalytics6Client4initEvENK3$_1clEv_block_invoke (@___ZZN13CoreAnalytics6Client4initEvENK3$_1clEv_block_invoke:99)
_xpc_connection_call_event_handler (@_xpc_connection_call_event_handler:22)
_xpc_connection_mach_event (@_xpc_connection_mach_event:226)
_dispatch_client_callout4 (@_dispatch_client_callout4:8)
_dispatch_mach_msg_invoke (@_dispatch_mach_msg_invoke:107)
_dispatch_lane_serial_drain (@_dispatch_lane_serial_drain:69)
_dispatch_mach_invoke (@_dispatch_mach_invoke:131)
_dispatch_lane_serial_drain (@_dispatch_lane_serial_drain:69)
_dispatch_lane_invoke (@_dispatch_lane_invoke:101)
_dispatch_workloop_worker_thread (@_dispatch_workloop_worker_thread:138)
_pthread_wqthread (@_pthread_wqthread:68)
objc_opt::objc_stringhash_t::getIndex(char const*) const (@objc_opt::objc_stringhash_t::getIndex(char const*) const:32)
_dyld_get_objc_selector (@_dyld_get_objc_selector:19)
search_builtins(char const*) (@search_builtins(char const*):30)
__sel_registerName(char const*, bool, bool) (@__sel_registerName(char const*, bool, bool):17)
_NSDPAccessorSelectorFromComponents (@_NSDPAccessorSelectorFromComponents:87)
initializePropertyInfo (@initializePropertyInfo:410)
lockedClassInfoForClass (@lockedClassInfoForClass:72)
lockedClassInfoForClass (@lockedClassInfoForClass:42)
_NSDPClassInfoForClass (@_NSDPClassInfoForClass:17)
-[NSResponder init] (@-[NSResponder init]:20)
-[NSApplication init] (@-[NSApplication init]:26)
+[NSApplication sharedApplication] (@+[NSApplication sharedApplication]:34)
sf::priv::WindowImplCocoa::setUpProcess() (@sf::priv::WindowImplCocoa::setUpProcess():18)
sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long, sf::ContextSettings const&) (@sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long, sf::ContextSettings const&):22)
sf::priv::WindowImpl::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) (@sf::priv::WindowImpl::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&):26)
sf::Window::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) (@sf::Window::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&):107)
Window::create(sf::VideoMode const&, unsigned int) (/Users/grantreszczyk/workspace/PERSONAL/open-builder/src/client/window.cpp:43)
Window::Window(ClientConfig const&) (/Users/grantreszczyk/workspace/PERSONAL/open-builder/src/client/window.cpp:20)
Window::Window(ClientConfig const&) (/Users/grantreszczyk/workspace/PERSONAL/open-builder/src/client/window.cpp:8)
runClientEngine(ClientConfig const&) (/Users/grantreszczyk/workspace/PERSONAL/open-builder/src/client/client_engine.cpp:54)