• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa+OpenGL app crashes iMac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa+OpenGL app crashes iMac


  • Subject: Re: Cocoa+OpenGL app crashes iMac
  • From: Shayne Wissler <email@hidden>
  • Date: Tue, 9 Feb 2010 15:25:13 -0700

Thanks for the tips, I will review my code according to your
suggestions. I did try the OpenGL profiler--that causes a kernel panic
almost instantly.


Shayne Wissler

On Tue, Feb 9, 2010 at 3:21 PM, Jean-Daniel Dupas
<email@hidden> wrote:
>
> 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

References: 
 >Cocoa+OpenGL app crashes iMac (From: Shayne Wissler <email@hidden>)
 >Re: Cocoa+OpenGL app crashes iMac (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Cocoa+OpenGL app crashes iMac
  • Next by Date: Re: NSXML and >
  • Previous by thread: Re: Cocoa+OpenGL app crashes iMac
  • Next by thread: Cocoa method to determine if application is running on iPhone
  • Index(es):
    • Date
    • Thread