Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

10.7.4 update break OpenGL Profiler

I'm using OpenGL Profiler(from latest Graphics tools for Xcode) profiling an OpenGL applicaton. Just updated to Lion 10.7.4, looks like 10.7.4 update break OpenGL Profiler.


I tried three 10.7.4 machines(1 iMac and 2 Macbook Pro), OpenGL Profiler caught nothing. No statistics, no breakpoints...nothing. It worked fine in 10.7.3.


Anyone have a clue? Any help would be appreciated. Thanks.

iMac, Mac OS X (10.7.4)

Posted on May 17, 2012 6:10 AM

Reply
6 replies

May 24, 2012 10:05 AM in response to DarkKnightRises

I noticed the same exact issue. OpenGL Profiler could launch an app without problems, but it wouldn't actually hook into it, get the FPS or stop at breakpoints.


On a hunch, I noticed that the 'Sandbox' column for my process in Activity Monitor was set to 'Yes' so I went digging though my project's settings in Xcode and disabled Sandboxing and entitlements entirely. I also had to delete the previously built app bundle before building again.


After all this, I launched the freshly built app in Profiler and everything was working again!!

Jun 12, 2012 5:54 PM in response to interwound

Sure.


Assuming you're using Xcode 4, select the root of your project from the file browser (top item in the file list with the blue 'A' project icon).


User uploaded file


Then select the Mac target of your project (I have one for iOS as well)


User uploaded file


Now you should be able to see the Summary configuration of your target. Ensure "Enable Entitlements" is unchecked and the "Enable App Sandboxing" box should uncheck as well


User uploaded file


Bear in mind that entitlements should be enabled for final public release when Mountain Lion hits.


For me, this was the only thing preventing OpenGL profiler from profiling.



PS: Don't forget to delete the previously built App Bundle before recompiling (this is a must)!!!!

Jun 12, 2012 7:00 PM in response to interwound

OK, I'd try making a new test target with the default build settings (using the big "Add Target" button in the project root). Just call it 'test' and add your sources to it under the "Build Phases" tab. Now switch Xcode to the test target (at the right of the Run/Stop buttons), run it, and see if OpenGL profiler hooks in with default settings for 10.7.4.


I'm guessing you're using GLUT to make a window. I'm not sure how GLUT relates to CGL (the API that OpenGL profiler hooks into) and the Mac's windowing system in general. It's possible that the relationship between the windowing system and GLUT was changed or broken with the 10.7.4 update. If the default build settings isn't the solution, it may be worth making a Cocoa version of the project and using an NSOpenGLView instead.

10.7.4 update break OpenGL Profiler

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.