Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FATAL] A fatal error occurred and the program has to terminate! #123

Open
TarasHots opened this issue Mar 15, 2020 · 0 comments
Open

[FATAL] A fatal error occurred and the program has to terminate! #123

TarasHots opened this issue Mar 15, 2020 · 0 comments

Comments

@TarasHots
Copy link

TarasHots commented Mar 15, 2020

MacOS 10.15.3

Issue is in void MacOSContext::setCurrent(const RenderWindow& renderWindow)

% DYLD_LIBRARY_PATH=../lib ./REGothWorldViewer /<some path>/PlusProject/Gothic -w oldmine
[FATAL] A fatal error occurred and the program has to terminate!
  - Error: Illegal instruction: 4
  - Description: Received fatal signal
  - In function:
  - In file: :0

Stack trace:
0) 0   libbsf.1.1.0.dylib                  0x0000000106028e4f _ZN2bs12CrashHandler13getStackTraceEv + 79: bs::CrashHandler::getStackTrace() + 79
1) 1   libbsf.1.1.0.dylib                  0x0000000106002419 _ZNK2bs12CrashHandler21logErrorAndStackTraceERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS_8StdAllocIcNS_8GenAllocEEEEESA_SA_SA_j + 489: bs::CrashHandler::logErrorAndStackTrace(std::__1::basic_string<char, std::__1::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, unsigned int) const + 489
2) 2   libbsf.1.1.0.dylib                  0x00000001060288ce _ZNK2bs12CrashHandler11reportCrashERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS_8StdAllocIcNS_8GenAllocEEEEESA_SA_SA_j + 142: bs::CrashHandler::reportCrash(std::__1::basic_string<char, std::__1::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, bs::StdAlloc<char, bs::GenAlloc> > const&, unsigned int) const + 142
3) 3   libbsf.1.1.0.dylib                  0x0000000106028687 _ZN2bs13signalHandlerEiP9__siginfoPv + 519: bs::signalHandler(int, __siginfo*, void*) + 519
4) 4   libsystem_platform.dylib            0x00007fff6d35742d _sigtramp + 29: _sigtramp + 29
5) 5   CoreFoundation                      0x00007fff35bf06b4 -[__NSDictionaryM objectForKey:] + 104: -[__NSDictionaryM objectForKey:] + 104
6) 6   libbsfGLRenderAPI.1.1.0.dylib       0x000000010f71e7e7 _ZN2bs2ct12MacOSContext10setCurrentERKNS0_12RenderWindowE + 327: bs::ct::MacOSContext::setCurrent(bs::ct::RenderWindow const&) + 327
7) 7   libbsfGLRenderAPI.1.1.0.dylib       0x000000010f6dbba6 _ZN2bs2ct11GLRenderAPI20initializeWithWindowERKNSt3__110shared_ptrINS0_12RenderWindowEEE + 278: bs::ct::GLRenderAPI::initializeWithWindow(std::__1::shared_ptr<bs::ct::RenderWindow> const&) + 278
8) 8   libbsf.1.1.0.dylib                  0x00000001066a5539 _ZNSt3__1L8__invokeIRMN2bs2ct9RenderAPIEFvRKNS_10shared_ptrINS2_12RenderWindowEEEERPS3_JRS6_EvEEDTcldsdeclsr3std3__1E7forwardIT0_Efp0_Efp_spclsr3std3__1E7forwardIT1_Efp1_EEEOT_OSF_DpOSG_ + 137: decltype(*(std::__1::forward<bs::ct::RenderAPI*&>(fp0)).*fp(std::__1::forward<std::__1::shared_ptr<bs::ct::RenderWindow>&>(fp1))) std::__1::__invoke<void (bs::ct::RenderAPI::*&)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), bs::ct::RenderAPI*&, std::__1::shared_ptr<bs::ct::RenderWindow>&, void>(void (bs::ct::RenderAPI::*&)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), bs::ct::RenderAPI*&, std::__1::shared_ptr<bs::ct::RenderWindow>&) + 137
9) 9   libbsf.1.1.0.dylib                  0x00000001066a549d _ZNSt3__1L15__apply_functorIMN2bs2ct9RenderAPIEFvRKNS_10shared_ptrINS2_12RenderWindowEEEENS_5tupleIJPS3_S6_EEEJLm0ELm1EENSB_IJEEEEENS_13__bind_returnIT_T0_T2_Xsr22__is_valid_bind_returnISG_SH_SI_EE5valueEE4typeERSG_RSH_NS_15__tuple_indicesIJXspT1_EEEEOSI_ + 93: std::__1::__bind_return<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), std::__1::tuple<bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >, std::__1::tuple<>, __is_valid_bind_return<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), std::__1::tuple<bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >, std::__1::tuple<> >::value>::type std::__1::__apply_functor<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), std::__1::tuple<bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >, 0ul, 1ul, std::__1::tuple<> >(void (bs::ct::RenderAPI::*&)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), std::__1::tuple<bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >&, std::__1::__tuple_indices<0ul, 1ul>, std::__1::tuple<>&&) + 93
10) 10  libbsf.1.1.0.dylib                  0x00000001066a542c _ZNSt3__16__bindIMN2bs2ct9RenderAPIEFvRKNS_10shared_ptrINS2_12RenderWindowEEEEJPS3_S6_EEclIJEEENS_13__bind_returnISA_NS_5tupleIJSB_S6_EEENSF_IJDpOT_EEEXsr22__is_valid_bind_returnISA_SG_SK_EE5valueEE4typeESJ_ + 60: std::__1::__bind_return<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), std::__1::tuple<bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >, std::__1::tuple<>, __is_valid_bind_return<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), std::__1::tuple<bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >, std::__1::tuple<> >::value>::type std::__1::__bind<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >::operator()<>() + 60
11) 11  libbsf.1.1.0.dylib                  0x00000001066a53cd _ZNSt3__1L8__invokeIRNS_6__bindIMN2bs2ct9RenderAPIEFvRKNS_10shared_ptrINS3_12RenderWindowEEEEJPS4_S7_EEEJEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSF_DpOSG_ + 29: decltype(std::__1::forward<std::__1::__bind<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >&>(fp)()) std::__1::__invoke<std::__1::__bind<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >&>(std::__1::__bind<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >&) + 29
12) 12  libbsf.1.1.0.dylib                  0x00000001066a537d _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRNS_6__bindIMN2bs2ct9RenderAPIEFvRKNS_10shared_ptrINS5_12RenderWindowEEEEJPS6_S9_EEEEEEvDpOT_ + 29: void std::__1::__invoke_void_return_wrapper<void>::__call<std::__1::__bind<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >&>(std::__1::__bind<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >&) + 29
13) 13  libbsf.1.1.0.dylib                  0x00000001066a534d _ZNSt3__110__function12__alloc_funcINS_6__bindIMN2bs2ct9RenderAPIEFvRKNS_10shared_ptrINS4_12RenderWindowEEEEJPS5_S8_EEENS_9allocatorISE_EEFvvEEclEv + 29: std::__1::__function::__alloc_func<std::__1::__bind<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >, std::__1::allocator<std::__1::__bind<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> > >, void ()>::operator()() + 29
14) 14  libbsf.1.1.0.dylib                  0x00000001066a3f89 _ZNSt3__110__function6__funcINS_6__bindIMN2bs2ct9RenderAPIEFvRKNS_10shared_ptrINS4_12RenderWindowEEEEJPS5_S8_EEENS_9allocatorISE_EEFvvEEclEv + 25: std::__1::__function::__func<std::__1::__bind<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> >, std::__1::allocator<std::__1::__bind<void (bs::ct::RenderAPI::*)(std::__1::shared_ptr<bs::ct::RenderWindow> const&), bs::ct::RenderAPI*, std::__1::shared_ptr<bs::ct::RenderWindow> > >, void ()>::operator()() + 25
15) 15  libbsf.1.1.0.dylib                  0x0000000105eecac5 _ZNKSt3__110__function12__value_funcIFvvEEclEv + 53: std::__1::__function::__value_func<void ()>::operator()() const + 53
16) 16  libbsf.1.1.0.dylib                  0x0000000105ee9575 _ZNKSt3__18functionIFvvEEclEv + 21: std::__1::function<void ()>::operator()() const + 21
17) 17  libbsf.1.1.0.dylib                  0x0000000106058895 _ZN2bs16CommandQueueBase18playbackWithNotifyEPNSt3__15queueINS_13QueuedCommandENS1_5dequeIS3_NS_8StdAllocIS3_NS_8GenAllocEEEEEEENS1_8functionIFvjEEE + 1045: bs::CommandQueueBase::playbackWithNotify(std::__1::queue<bs::QueuedCommand, std::__1::deque<bs::QueuedCommand, bs::StdAlloc<bs::QueuedCommand, bs::GenAlloc> > >*, std::__1::function<void (unsigned int)>) + 1045
18) 18  libbsf.1.1.0.dylib                  0x00000001060907b9 _ZN2bs10CoreThread13runCoreThreadEv + 713: bs::CoreThread::runCoreThread() + 713
19) 19  libbsf.1.1.0.dylib                  0x0000000106096e01 _ZNSt3__1L8__invokeIRMN2bs10CoreThreadEFvvERPS2_JEvEEDTcldsdeclsr3std3__1E7forwardIT0_Efp0_Efp_spclsr3std3__1E7forwardIT1_Efp1_EEEOT_OS8_DpOS9_ + 113: decltype(*(std::__1::forward<bs::CoreThread*&>(fp0)).*fp()) std::__1::__invoke<void (bs::CoreThread::*&)(), bs::CoreThread*&, void>(void (bs::CoreThread::*&)(), bs::CoreThread*&) + 113
20) 20  libbsf.1.1.0.dylib                  0x0000000106096d60 _ZNSt3__1L15__apply_functorIMN2bs10CoreThreadEFvvENS_5tupleIJPS2_EEEJLm0EENS5_IJEEEEENS_13__bind_returnIT_T0_T2_Xsr22__is_valid_bind_returnISA_SB_SC_EE5valueEE4typeERSA_RSB_NS_15__tuple_indicesIJXspT1_EEEEOSC_ + 64: std::__1::__bind_return<void (bs::CoreThread::*)(), std::__1::tuple<bs::CoreThread*>, std::__1::tuple<>, __is_valid_bind_return<void (bs::CoreThread::*)(), std::__1::tuple<bs::CoreThread*>, std::__1::tuple<> >::value>::type std::__1::__apply_functor<void (bs::CoreThread::*)(), std::__1::tuple<bs::CoreThread*>, 0ul, std::__1::tuple<> >(void (bs::CoreThread::*&)(), std::__1::tuple<bs::CoreThread*>&, std::__1::__tuple_indices<0ul>, std::__1::tuple<>&&) + 64
21) 21  libbsf.1.1.0.dylib                  0x0000000106096d0c _ZNSt3__16__bindIMN2bs10CoreThreadEFvvEJPS2_EEclIJEEENS_13__bind_returnIS4_NS_5tupleIJS5_EEENS9_IJDpOT_EEEXsr22__is_valid_bind_returnIS4_SA_SE_EE5valueEE4typeESD_ + 60: std::__1::__bind_return<void (bs::CoreThread::*)(), std::__1::tuple<bs::CoreThread*>, std::__1::tuple<>, __is_valid_bind_return<void (bs::CoreThread::*)(), std::__1::tuple<bs::CoreThread*>, std::__1::tuple<> >::value>::type std::__1::__bind<void (bs::CoreThread::*)(), bs::CoreThread*>::operator()<>() + 60
22) 22  libbsf.1.1.0.dylib                  0x0000000106096cad _ZNSt3__1L8__invokeIRNS_6__bindIMN2bs10CoreThreadEFvvEJPS3_EEEJEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOS9_DpOSA_ + 29: decltype(std::__1::forward<std::__1::__bind<void (bs::CoreThread::*)(), bs::CoreThread*>&>(fp)()) std::__1::__invoke<std::__1::__bind<void (bs::CoreThread::*)(), bs::CoreThread*>&>(std::__1::__bind<void (bs::CoreThread::*)(), bs::CoreThread*>&) + 29
23) 23  libbsf.1.1.0.dylib                  0x0000000106096c5d _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRNS_6__bindIMN2bs10CoreThreadEFvvEJPS5_EEEEEEvDpOT_ + 29: void std::__1::__invoke_void_return_wrapper<void>::__call<std::__1::__bind<void (bs::CoreThread::*)(), bs::CoreThread*>&>(std::__1::__bind<void (bs::CoreThread::*)(), bs::CoreThread*>&) + 29
24) 24  libbsf.1.1.0.dylib                  0x0000000106096c2d _ZNSt3__110__function12__alloc_funcINS_6__bindIMN2bs10CoreThreadEFvvEJPS4_EEENS_9allocatorIS8_EEFvvEEclEv + 29: std::__1::__function::__alloc_func<std::__1::__bind<void (bs::CoreThread::*)(), bs::CoreThread*>, std::__1::allocator<std::__1::__bind<void (bs::CoreThread::*)(), bs::CoreThread*> >, void ()>::operator()() + 29
25) 25  libbsf.1.1.0.dylib                  0x0000000106095899 _ZNSt3__110__function6__funcINS_6__bindIMN2bs10CoreThreadEFvvEJPS4_EEENS_9allocatorIS8_EEFvvEEclEv + 25: std::__1::__function::__func<std::__1::__bind<void (bs::CoreThread::*)(), bs::CoreThread*>, std::__1::allocator<std::__1::__bind<void (bs::CoreThread::*)(), bs::CoreThread*> >, void ()>::operator()() + 25
26) 26  libbsf.1.1.0.dylib                  0x0000000105eecac5 _ZNKSt3__110__function12__value_funcIFvvEEclEv + 53: std::__1::__function::__value_func<void ()>::operator()() const + 53
27) 27  libbsf.1.1.0.dylib                  0x0000000105ee9575 _ZNKSt3__18functionIFvvEEclEv + 21: std::__1::function<void ()>::operator()() const + 21
28) 28  libbsf.1.1.0.dylib                  0x0000000105f30e70 _ZN2bs12PooledThread3runEv + 400: bs::PooledThread::run() + 400
29) 29  libbsf.1.1.0.dylib                  0x0000000105f344e1 _ZNSt3__1L8__invokeIRMN2bs12PooledThreadEFvvERPS2_JEvEEDTcldsdeclsr3std3__1E7forwardIT0_Efp0_Efp_spclsr3std3__1E7forwardIT1_Efp1_EEEOT_OS8_DpOS9_ + 113: decltype(*(std::__1::forward<bs::PooledThread*&>(fp0)).*fp()) std::__1::__invoke<void (bs::PooledThread::*&)(), bs::PooledThread*&, void>(void (bs::PooledThread::*&)(), bs::PooledThread*&) + 113
30) 30  libbsf.1.1.0.dylib                  0x0000000105f34440 _ZNSt3__1L15__apply_functorIMN2bs12PooledThreadEFvvENS_5tupleIJPS2_EEEJLm0EENS5_IJEEEEENS_13__bind_returnIT_T0_T2_Xsr22__is_valid_bind_returnISA_SB_SC_EE5valueEE4typeERSA_RSB_NS_15__tuple_indicesIJXspT1_EEEEOSC_ + 64: std::__1::__bind_return<void (bs::PooledThread::*)(), std::__1::tuple<bs::PooledThread*>, std::__1::tuple<>, __is_valid_bind_return<void (bs::PooledThread::*)(), std::__1::tuple<bs::PooledThread*>, std::__1::tuple<> >::value>::type std::__1::__apply_functor<void (bs::PooledThread::*)(), std::__1::tuple<bs::PooledThread*>, 0ul, std::__1::tuple<> >(void (bs::PooledThread::*&)(), std::__1::tuple<bs::PooledThread*>&, std::__1::__tuple_indices<0ul>, std::__1::tuple<>&&) + 64
31) 31  libbsf.1.1.0.dylib                  0x0000000105f343ec _ZNSt3__16__bindIMN2bs12PooledThreadEFvvEJPS2_EEclIJEEENS_13__bind_returnIS4_NS_5tupleIJS5_EEENS9_IJDpOT_EEEXsr22__is_valid_bind_returnIS4_SA_SE_EE5valueEE4typeESD_ + 60: std::__1::__bind_return<void (bs::PooledThread::*)(), std::__1::tuple<bs::PooledThread*>, std::__1::tuple<>, __is_valid_bind_return<void (bs::PooledThread::*)(), std::__1::tuple<bs::PooledThread*>, std::__1::tuple<> >::value>::type std::__1::__bind<void (bs::PooledThread::*)(), bs::PooledThread*>::operator()<>() + 60
32) 32  libbsf.1.1.0.dylib                  0x0000000105f3436d _ZNSt3__1L8__invokeINS_6__bindIMN2bs12PooledThreadEFvvEJPS3_EEEJEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOS8_DpOS9_ + 29: decltype(std::__1::forward<std::__1::__bind<void (bs::PooledThread::*)(), bs::PooledThread*> >(fp)()) std::__1::__invoke<std::__1::__bind<void (bs::PooledThread::*)(), bs::PooledThread*> >(std::__1::__bind<void (bs::PooledThread::*)(), bs::PooledThread*>&&) + 29
33) 33  libbsf.1.1.0.dylib                  0x0000000105f342d5 _ZNSt3__1L16__thread_executeINS_10unique_ptrINS_15__thread_structENS_14default_deleteIS2_EEEENS_6__bindIMN2bs12PooledThreadEFvvEJPS8_EEEJEJEEEvRNS_5tupleIJT_T0_DpT1_EEENS_15__tuple_indicesIJXspT2_EEEE + 37: void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, std::__1::__bind<void (bs::PooledThread::*)(), bs::PooledThread*> >(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, std::__1::__bind<void (bs::PooledThread::*)(), bs::PooledThread*> >&, std::__1::__tuple_indices<>) + 37
34) 34  libbsf.1.1.0.dylib                  0x0000000105f33b66 _ZNSt3__114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEENS_6__bindIMN2bs12PooledThreadEFvvEJPS9_EEEEEEEEPvSF_ + 118: void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, std::__1::__bind<void (bs::PooledThread::*)(), bs::PooledThread*> > >(void*) + 118
35) 35  libsystem_pthread.dylib             0x00007fff6d362e65 _pthread_start + 148: _pthread_start + 148
36) 36  libsystem_pthread.dylib             0x00007fff6d35e83b thread_start + 15: thread_start + 1

Obviously, issue is in OpenGL support:
Use NSOpenGLView to provide OpenGL content in a Cocoa app.

If it's possible, I'd rewrite some BS-related files locally just for game to appear. But I got no knowledge in Objective-C and wondering will it help?

Related GameFoundry/bsf#412

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant