Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - olbrew

Pages: [1]
1
Title basically says it all.
I'm on OS X 10.10.1 Yosemite, all updates applied. Latest version of command line tools.
I installed SFML 2.2 and only use the frameworks.
I have a small graphical application that worked perfectly with SFML 2.1.
With 2.2 it shows an empty window and crashes after a second with a segmentation fault.

This is the lldb output (gdb doesn't work as well on OS X 10.10).
When I run the code:

(lldb) target create "../bin/Tyrian"
Current executable set to '../bin/Tyrian' (x86_64).
(lldb) r
Process 25611 launched: '../bin/Tyrian' (x86_64)
2015-01-27 16:27:16.508 Tyrian[25611:1783697] *** Assertion failure in -[SFWindow setTitle:], /SourceCache/AppKit/AppKit-1343.16/AppKit.subproj/NSWindow.m:3035
2015-01-27 16:27:16.511 Tyrian[25611:1783697] An uncaught exception was raised
2015-01-27 16:27:16.511 Tyrian[25611:1783697] Invalid parameter not satisfying: aString != nil
2015-01-27 16:27:16.511 Tyrian[25611:1783697] (
   0   CoreFoundation                      0x00007fff8c90164c __exceptionPreprocess + 172
   1   libobjc.A.dylib                     0x00007fff8433b6de objc_exception_throw + 43
   2   CoreFoundation                      0x00007fff8c90142a +[NSException raise:format:arguments:] + 106
   3   Foundation                          0x00007fff81c605b9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
   4   AppKit                              0x00007fff891f936c -[NSWindow setTitle:] + 135
   5   sfml-window                         0x0000000100059a0b _ZN2sf4priv15WindowImplCocoaC2ENS_9VideoModeERKNS_6StringEmRKNS_15ContextSettingsE + 267
   6   sfml-window                         0x000000010004d9c3 _ZN2sf4priv10WindowImpl6createENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE + 67
   7   sfml-window                         0x000000010004ced9 _ZN2sf6Window6createENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE + 457
   8   sfml-graphics                       0x00000001000a13b3 _ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE + 99
   9   Tyrian                              0x0000000100010f82 _ZNSt3__110shared_ptrIN2sf12RenderWindowEE11make_sharedIJNS1_9VideoModeERA7_KciEEES3_DpOT_ + 2082
   10  Tyrian                              0x000000010000cec2 _ZN6tysfml6WindowC2Ev + 226
   11  Tyrian                              0x000000010000d055 _ZN6tysfml6WindowC1Ev + 21
   12  Tyrian                              0x000000010001a671 _ZNSt3__110shared_ptrIN6tysfml6WindowEE11make_sharedIJEEES3_DpOT_ + 929
   13  Tyrian                              0x0000000100014736 _ZN2ty4GameC2Ev + 342
   14  Tyrian                              0x0000000100014795 _ZN2ty4GameC1Ev + 21
   15  Tyrian                              0x00000001000028b2 main + 34
   16  libdyld.dylib                       0x00007fff8a2165c9 start + 1
)
2015-01-27 16:27:16.512 Tyrian[25611:1783697] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: aString != nil'
*** First throw call stack:
(
   0   CoreFoundation                      0x00007fff8c90164c __exceptionPreprocess + 172
   1   libobjc.A.dylib                     0x00007fff8433b6de objc_exception_throw + 43
   2   CoreFoundation                      0x00007fff8c90142a +[NSException raise:format:arguments:] + 106
   3   Foundation                          0x00007fff81c605b9 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
   4   AppKit                              0x00007fff891f936c -[NSWindow setTitle:] + 135
   5   sfml-window                         0x0000000100059a0b _ZN2sf4priv15WindowImplCocoaC2ENS_9VideoModeERKNS_6StringEmRKNS_15ContextSettingsE + 267
   6   sfml-window                         0x000000010004d9c3 _ZN2sf4priv10WindowImpl6createENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE + 67
   7   sfml-window                         0x000000010004ced9 _ZN2sf6Window6createENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE + 457
   8   sfml-graphics                       0x00000001000a13b3 _ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE + 99
   9   Tyrian                              0x0000000100010f82 _ZNSt3__110shared_ptrIN2sf12RenderWindowEE11make_sharedIJNS1_9VideoModeERA7_KciEEES3_DpOT_ + 2082
   10  Tyrian                              0x000000010000cec2 _ZN6tysfml6WindowC2Ev + 226
   11  Tyrian                              0x000000010000d055 _ZN6tysfml6WindowC1Ev + 21
   12  Tyrian                              0x000000010001a671 _ZNSt3__110shared_ptrIN6tysfml6WindowEE11make_sharedIJEEES3_DpOT_ + 929
   13  Tyrian                              0x0000000100014736 _ZN2ty4GameC2Ev + 342
   14  Tyrian                              0x0000000100014795 _ZN2ty4GameC1Ev + 21
   15  Tyrian                              0x00000001000028b2 main + 34
   16  libdyld.dylib                       0x00007fff8a2165c9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Process 25611 stopped
* thread #1: tid = 0x1b3791, 0x00007fff856fa282 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00007fff856fa282 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill + 10:
-> 0x7fff856fa282:  jae    0x7fff856fa28c            ; __pthread_kill + 20
   0x7fff856fa284:  movq   %rax, %rdi
   0x7fff856fa287:  jmp    0x7fff856f5ca3            ; cerror_nocancel
   0x7fff856fa28c:  retq

And the backtrace:

(lldb) bt
* thread #1: tid = 0x1b3791, 0x00007fff856fa282 libsystem_kernel.dylib`__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
  * frame #0: 0x00007fff856fa282 libsystem_kernel.dylib`__pthread_kill + 10
    frame #1: 0x00007fff81b684c3 libsystem_pthread.dylib`pthread_kill + 90
    frame #2: 0x00007fff8f28bb73 libsystem_c.dylib`abort + 129
    frame #3: 0x00007fff8fcdfa21 libc++abi.dylib`abort_message + 257
    frame #4: 0x00007fff8fd079d1 libc++abi.dylib`default_terminate_handler() + 267
    frame #5: 0x00007fff8433f6c6 libobjc.A.dylib`_objc_terminate() + 103
    frame #6: 0x00007fff8fd050a1 libc++abi.dylib`std::__terminate(void (*)()) + 8
    frame #7: 0x00007fff8fd04b30 libc++abi.dylib`__cxa_throw + 121
    frame #8: 0x00007fff8433b808 libobjc.A.dylib`objc_exception_throw + 341
    frame #9: 0x00007fff8c90142a CoreFoundation`+[NSException raise:format:arguments:] + 106
    frame #10: 0x00007fff81c605b9 Foundation`-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
    frame #11: 0x00007fff891f936c AppKit`-[NSWindow setTitle:] + 135
    frame #12: 0x0000000100059a0b sfml-window`sf::priv::WindowImplCocoa::WindowImplCocoa(sf::VideoMode, sf::String const&, unsigned long, sf::ContextSettings const&) + 267
    frame #13: 0x000000010004d9c3 sfml-window`sf::priv::WindowImpl::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) + 67
    frame #14: 0x000000010004ced9 sfml-window`sf::Window::create(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) + 457
    frame #15: 0x00000001000a13b3 sfml-graphics`sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&) + 99
    frame #16: 0x0000000100010f82 Tyrian`std::__1::shared_ptr<sf::RenderWindow> std::__1::shared_ptr<sf::RenderWindow>::make_shared<sf::VideoMode, char const (&) [7], int>(sf::VideoMode&&, char const (&&&) [7], int&&) [inlined] std::__1::__libcpp_compressed_pair_imp<std::__1::allocator<sf::RenderWindow>, sf::RenderWindow, 1u>::__libcpp_compressed_pair_imp<std::__1::allocator<sf::RenderWindow>&, sf::VideoMode&&, char const (this=0x000000010042a848, __pc=piecewise_construct_t at 0x00007fff5fbfee18, __first_args=tuple<std::__1::allocator<sf::RenderWindow> &> at 0x00007fff5fbfed18, __second_args=tuple<sf::VideoMode &&, char const (&)[7], int &&> at 0x00007fff5fbff190, (null)=__tuple_indices<0> at 0x00007fff5fbfee10, (null)=__tuple_indices<0, 1, 2> at 0x00007fff5fbfee08) [7], int&&, 0ul, 0ul, 1ul, 2ul>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<sf::RenderWindow>&>, std::__1::tuple<sf::VideoMode&&, char const (&) [7], int&&>, std::__1::__tuple_indices<0ul>, std::__1::__tuple_indices<0ul, 1ul, 2ul>) + 344 at memory:2095
    frame #17: 0x0000000100010e2a Tyrian`std::__1::shared_ptr<sf::RenderWindow> std::__1::shared_ptr<sf::RenderWindow>::make_shared<sf::VideoMode, char const (&) [7], int>(sf::VideoMode&&, char const (&&&) [7], int&&) [inlined] std::__1::__compressed_pair<std::__1::allocator<sf::RenderWindow>, sf::RenderWindow>::__compressed_pair<std::__1::allocator<sf::RenderWindow>&, sf::VideoMode&&, char const (this=0x000000010042a848, __pc=piecewise_construct_t at 0x00007fff5fbfed90, __first_args=tuple<std::__1::allocator<sf::RenderWindow> &> at 0x00007fff5fbfed18, __second_args=tuple<sf::VideoMode &&, char const (&)[7], int &&> at 0x00007fff5fbff190) [7], int&&>(std::__1::piecewise_construct_t, std::__1::tuple<std::__1::allocator<sf::RenderWindow>&>, std::__1::tuple<sf::VideoMode&&, char const (&) [7], int&&>) + 120 at memory:2362
    frame #18: 0x0000000100010db2 Tyrian`std::__1::shared_ptr<sf::RenderWindow> std::__1::shared_ptr<sf::RenderWindow>::make_shared<sf::VideoMode, char const (&) [7], int>(sf::VideoMode&&, char const (&&&) [7], int&&) [inlined] std::__1::__shared_weak_count::__shared_weak_count(this=0x000000010042a830, this=0x000000010042a848, __refs=0, __pc=piecewise_construct_t at 0x00007fff5fbfed48, __first_args=tuple<std::__1::allocator<sf::RenderWindow> &> at 0x00007fff5fbfed18, __second_args=tuple<sf::VideoMode &&, char const (&)[7], int &&> at 0x00007fff5fbff190) at memory:2362
    frame #19: 0x0000000100010db2 Tyrian`std::__1::shared_ptr<sf::RenderWindow> std::__1::shared_ptr<sf::RenderWindow>::make_shared<sf::VideoMode, char const (&) [7], int>(sf::VideoMode&&, char const (&&&) [7], int&&) [inlined] std::__1::__shared_ptr_emplace<sf::RenderWindow, std::__1::allocator<sf::RenderWindow> >::__shared_ptr_emplace<sf::VideoMode, char const (this=0x000000010042a830, __a=allocator<sf::RenderWindow> at 0x00007fff5fbfed18, __args=0x00007fff5fbff190, __args=0x000000010001c8c1, __args=0x00007fff5fbff180) [7], int>(std::__1::allocator<sf::RenderWindow>, sf::VideoMode&&, char const (&&&) [7], int&&) + 693 at memory:3698
    frame #20: 0x0000000100010afd Tyrian`std::__1::shared_ptr<sf::RenderWindow> std::__1::shared_ptr<sf::RenderWindow>::make_shared<sf::VideoMode, char const (&) [7], int>(sf::VideoMode&&, char const (&&&) [7], int&&) [inlined] std::__1::unique_ptr<std::__1::__shared_ptr_emplace<sf::RenderWindow, std::__1::allocator<sf::RenderWindow> >, std::__1::__allocator_destructor<std::__1::allocator<std::__1::__shared_ptr_emplace<sf::RenderWindow, std::__1::allocator<sf::RenderWindow> > > > >::get(this=0x00007fff5fbfe970, this=0x00007fff5fbfe958, this=0x000000010042a830, (null)=0x00007fff5fbfe988, __a=allocator<sf::RenderWindow> at 0x00007fff5fbfecc0, __args=0x00007fff5fbff190, __args=0x000000010001c8c1, __args=0x00007fff5fbff180) const + 99 at memory:3698
    frame #21: 0x0000000100010a9a Tyrian`std::__1::shared_ptr<sf::RenderWindow> std::__1::shared_ptr<sf::RenderWindow>::make_shared<sf::VideoMode, char const (__args=0x00007fff5fbff190, __args=0x000000010001c8c1, __args=0x00007fff5fbff180) [7], int>(sf::VideoMode&&, char const (&&&) [7], int&&) + 826 at memory:4271
    frame #22: 0x000000010000cec2 Tyrian`tysfml::Window::Window() [inlined] std::__1::enable_if<!(__args=0x00007fff5fbff190, this=0x000000010023e400, __args=0x000000010001c8c1, __args=0x00007fff5fbff180), std::__1::shared_ptr<sf::RenderWindow> >::type std::__1::make_shared<sf::RenderWindow, sf::VideoMode, char const (&) [7], int>(sf::VideoMode&&, char const (&&&) [7], int&&) + 74 at memory:4630
    frame #23: 0x000000010000ce78 Tyrian`tysfml::Window::Window(this=0x000000010031dae8) + 152 at Window.cpp:17
    frame #24: 0x000000010000d055 Tyrian`tysfml::Window::Window(this=0x000000010031dae8) + 21 at Window.cpp:18
    frame #25: 0x000000010001a671 Tyrian`std::__1::shared_ptr<tysfml::Window> std::__1::shared_ptr<tysfml::Window>::make_shared<>() [inlined] std::__1::__shared_ptr_emplace<tysfml::Window, std::__1::allocator<tysfml::Window> >::__shared_ptr_emplace(this=0x000000010031dad0, __a=allocator<tysfml::Window> at 0x00007fff5fbff690) + 129 at memory:3692
    frame #26: 0x000000010001a5f0 Tyrian`std::__1::shared_ptr<tysfml::Window> std::__1::shared_ptr<tysfml::Window>::make_shared<>() [inlined] std::__1::unique_ptr<std::__1::__shared_ptr_emplace<tysfml::Window, std::__1::allocator<tysfml::Window> >, std::__1::__allocator_destructor<std::__1::allocator<std::__1::__shared_ptr_emplace<tysfml::Window, std::__1::allocator<tysfml::Window> > > > >::get(this=0x00007fff5fbff350, this=0x00007fff5fbff338, this=0x000000010031dad0, (null)=0x00007fff5fbff368, __a=allocator<tysfml::Window> at 0x00007fff5fbff670) const at memory:3692
    frame #27: 0x000000010001a5f0 Tyrian`std::__1::shared_ptr<tysfml::Window> std::__1::shared_ptr<tysfml::Window>::make_shared<>() + 800 at memory:4271
    frame #28: 0x0000000100014736 Tyrian`ty::Game::Game(this=0x00007fff5fbff8a0) + 342 at Game.cpp:23
    frame #29: 0x0000000100014795 Tyrian`ty::Game::Game(this=0x00007fff5fbff8a0) + 21 at Game.cpp:23
    frame #30: 0x00000001000028b2 Tyrian`main + 34 at main.cpp:16
    frame #31: 0x00007fff8a2165c9 libdyld.dylib`start + 1
    frame #32: 0x00007fff8a2165c9 libdyld.dylib`start + 1

Pages: [1]