"The two most important days in your life are the day you are born... and the day you find out why." - Mark Twain
So you are developing an Titanium app, and you’ve across this mysterious error. At least, that’s what I’m assuming as you’ve come across this post. From what I can tell, it tends to be predominant on iPhone/iPod. I’m not sure if my solution relates to that, being that I’m developing for the desktop.
Basically, this error will occur when something has gone horribly wrong on the Cocoa side, which in the case of Titanium is out of our control. We can however stop it from showing its ugly face. For me, the major cause has been Flash related content. If I try to load a JS library such as SWFobject into my page, it will crash my app. Why? Well, let’s just say I’m running Snow Leopard without hardware accelerated graphics right now, which means Flash Player 10 instantly falls on its face. I can kind of understand that from the error pointing me to OpenGL, but not really.
For Google, the exact error I’ve received (which varies):
2011-06-21 21:01:38.373 utelevision[79434:b07] * WebKit discarding exception: <NSInvalidArgumentException> -[FP_FPCAOpenGLLayer setBuffer:]: unrecognized selector sent to instance 0x2c8fd0