Re: Cocoa+OpenGL app crashes iMac
Re: Cocoa+OpenGL app crashes iMac
- Subject: Re: Cocoa+OpenGL app crashes iMac
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 9 Feb 2010 23:21:52 +0100
Le 9 févr. 2010 à 22:38, Shayne Wissler a écrit :
> I have a multithreaded Cocoa+OpenGL app that can reliably bring down
> OSX. I am using the latest released/patched version of OSX, all
> updates have been downloaded and applied.
>
> The application has a thread that displays video frames as OpenGL
> textures. When I resize the associated window, it crashes OSX in
> various ways. Sometimes OSX just hangs. Sometimes the whole screen
> goes black. Sometimes I get psychedelic colors displayed outside my
> application, for instance when I click the OSX dropdown menu at the
> top left corner of the screen, it displays with blasts of colors
> splayed across the screen. When OSX doesn't completely die and I try
> to remotely log in and kill my process with a -9 signal, OSX refuses
> to kill it. I've tried using Quartz Debug, that brings down OSX
> particularly hard. When OSX doesn't hang, the graphics device driver
> state seems to get corrupted, even when my application has finished
> running, I get the weird psychedelic colors in OSX menus and programs.
>
> Now, I'm sure I've got a bug in my program--but nothing I'm doing
> should make OSX behave this way. Fundamentally this is an OSX bug. In
> any case it's difficult to find the bug when OSX comes crashing down.
>
> Any tips?
OS X does not support very well error in the graphic card (texture leaks for example can explain what you see, but trying to access via DMA to invalid large block of memory can too).
Launch you application with OpenGL Profiler and enable "break on error" to try to find obvious OpenGL error. If it's not enough, you can monitor your application (using Instrument or OpenGL Driver Monitor) to see if there is some abnormal VRAM usage or something like that.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden