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

Author Topic: Weird error on OS X (SIGABRT in sf::Window::pollEvent () )  (Read 2344 times)

0 Members and 1 Guest are viewing this topic.

Nehalem501

  • Newbie
  • *
  • Posts: 2
    • View Profile
Weird error on OS X (SIGABRT in sf::Window::pollEvent () )
« on: January 29, 2016, 10:31:37 am »
Hello, I've been using SFML from quite some time but it's the first time I try to use it on Mac OS X.
I'm working on a Tetris clone that works nicely on Linux and Windows. I wanted to try to build it on OS X and it seemed to work until I've came across this strange error when running my game.
I'm using SFML 2.3.2 compiled from source into frameworks on OS X Mountain Lion (10.8.5).
The compiler version used is the one shipped with Xcode : Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn).

I've been working for a year now on this in my spare time and I've never had this bug on another OS.

Thanks for your help :)

Code: [Select]
open-tgm(4917,0x7fff7b9fa180) malloc: *** error for object 0x101105fa8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug

Program received signal SIGABRT, Aborted.
0x00007fff8a2bb212 in __pthread_kill ()
(gdb) bt
#0  0x00007fff8a2bb212 in __pthread_kill ()
#1  0x00007fff96a37b24 in pthread_kill ()
#2  0x00007fff96a7bf61 in abort ()
#3  0x00007fff96a578d5 in szone_error ()
#4  0x00007fff96a5c1da in tiny_malloc_from_free_list ()
#5  0x00007fff96a5cb08 in szone_malloc_should_clear ()
#6  0x00007fff96a4f183 in malloc_zone_malloc ()
#7  0x00007fff8d979e52 in _CFRuntimeCreateInstance ()
#8  0x00007fff8d9c75b9 in CFRunLoopObserverCreate ()
#9  0x00007fff92e650d2 in _NSAddDirtyLayoutManager ()
#10 0x00007fff92e3ace7 in -[NSLayoutManager(NSPrivate) _invalidateLayoutForExtendedCharacterRange:isSoft:invalidateUsage:] ()
#11 0x00007fff92e3596a in -[NSLayoutManager textStorage:edited:range:changeInLength:invalidatedRange:] ()
#12 0x00007fff92e3587a in -[NSTextStorage _notifyEdited:range:changeInLength:invalidatedRange:] ()
#13 0x00007fff92ede6c5 in -[NSTextStorage processEditing] ()
#14 0x00007fff92d401a4 in -[NSTextStorage endEditing] ()
#15 0x00007fff92c868a5 in -[NSTextView insertText:replacementRange:] ()
#16 0x00007fff93189606 in -[NSKeyBindingManager(NSKeyBindingManager_MultiClients) flushTextForClient:] ()
#17 0x00007fff92d3934d in -[NSTextInputContext handleEvent:] ()
#18 0x00007fff92d38ea7 in -[NSView interpretKeyEvents:] ()
#19 0x000000010013ee88 in -[SFOpenGLView keyDown:] ()
#20 0x00007fff92ea1020 in -[NSWindow sendEvent:] ()
#21 0x00007fff92e9c644 in -[NSApplication sendEvent:] ()
#22 0x000000010013c65c in -[SFApplication sendEvent:] ()
#23 0x000000010013be93 in +[SFApplication processEvent] ()
#24 0x0000000100142758 in sf::priv::WindowImplCocoa::processEvents ()
#25 0x0000000100137109 in sf::priv::WindowImpl::popEvent ()
#26 0x0000000100136285 in sf::Window::pollEvent ()
#27 0x000000010002ef6b in main () at open-tgm.cpp:143
« Last Edit: January 29, 2016, 10:39:01 am by Nehalem501 »

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Weird error on OS X (SIGABRT in sf::Window::pollEvent () )
« Reply #1 on: January 29, 2016, 03:41:20 pm »
100% of people having similar issues solved them by properly uninstalling older version of SFML before re-installing the latest one. Maybe you should try that (look for similar thread if you don't know exactly how to do it).
SFML / OS X developer

Nehalem501

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Weird error on OS X (SIGABRT in sf::Window::pollEvent () )
« Reply #2 on: January 29, 2016, 05:38:00 pm »
Thanks for your help but I've never installed SFML before on this machine...

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Weird error on OS X (SIGABRT in sf::Window::pollEvent () )
« Reply #3 on: January 29, 2016, 06:26:16 pm »
okay... then can you create a SSCCE? Also, which computer model are you using?
SFML / OS X developer