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

Author Topic: EXC_BAD_ACCESS with SFML 2.1, Xcode 5  (Read 1688 times)

0 Members and 1 Guest are viewing this topic.

Captain

  • Newbie
  • *
  • Posts: 4
    • View Profile
EXC_BAD_ACCESS with SFML 2.1, Xcode 5
« on: February 24, 2014, 03:41:29 pm »
Hi everyone,

I've been using SFML 2.1 on a Windows machine with good results, but I've hit a roadblock on an OS X 10.9.1 machine with Xcode 5. I've copied the frameworks, libs, headers and Xcode 5 templates as outlined in the tutorial. I followed to instructions to create the sample app and everything builds okay, but when I try to run it I get an "EXC_BAD_ACCESS (code=1, address=0x25800000338)" on "window.clear()".

I've tried using both frameworks and dylibs with the same result. Any ideas?

Searching the forums I found a user with the identical problem, but no solution was posted:
http://en.sfml-dev.org/forums/index.php?topic=13222.msg92671#msg92671

Thanks!

Lo-X

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
    • My personal website, with CV, portfolio and projects
Re: EXC_BAD_ACCESS with SFML 2.1, Xcode 5
« Reply #1 on: February 24, 2014, 03:52:03 pm »
Did you try to compile the lib with CMake ? (there's a tutorial for that)

Captain

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: EXC_BAD_ACCESS with SFML 2.1, Xcode 5
« Reply #2 on: February 24, 2014, 04:08:33 pm »
I haven't tried that yet... I was hoping to get going quickly with the pre-compiled libs but I'll give cmake a shot and report back.

Captain

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: EXC_BAD_ACCESS with SFML 2.1, Xcode 5
« Reply #3 on: February 24, 2014, 07:23:11 pm »
Okay, I compiled the source with Cmake, deleted the pre-compiled frameworks from /Libraries/Frameworks and copied over the newly compiled ones, and I'm still getting the same error.  :(


Captain

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: EXC_BAD_ACCESS with SFML 2.1, Xcode 5
« Reply #4 on: February 26, 2014, 06:40:47 pm »
I haven't made much progress on this....

I did find a forum posting from some time ago that seems similar to my problem, except on Windows, and the solution seemed to be to update the graphics card drivers, due to an invalid OpenGL render context being created.

http://en.sfml-dev.org/forums/index.php?topic=4198.0

With a MacBook obviously I'm pretty much stuck with the drivers provided by Apple. I'm on Mavericks 10.9.1, and the machine has dual graphics support with Intel HD 3000 graphics and a AMD Radeon HD 6770M.

What's interesting is that I compiled the examples included with the SFML source and those ran fine. I tried to setup a new project in Xcode without using the templates, and those built fine but I got the same error.

Any ideas of other things I could try to diagnose this issue?

 

anything