Running Cocos2d, I will occasionally see a random texture appear at (0,0), scaled way up. Like this:
It is blurry because it is scaled up. It's not supposed to be there at all. Often it is accompanied by "swapBuffers" errors:
com.apple.main-thread Crashed
0 libGPUSupportMercury.dylib gpus_ReturnNotPermittedKillClient
1 libGPUSupportMercury.dylib gpusSubmitDataBuffers
2 IMGSGX543GLDriver SubmitPackets
3 GLEngine gliPresentViewES
4 OpenGLES -[EAGLContext presentRenderbuffer:] + 64
5 MyApp CCGLView.m line 275
-[CCGLView swapBuffers]
6 MyApp CCDirectorIOS.m line 174
-[CCDirectorIOS drawScene]
7 MyApp CCDirectorIOS.m line 532
-[CCDirectorDisplayLink mainLoop:]
8 QuartzCore CA::Display::DisplayLinkItem::dispatch() + 98
9 QuartzCore CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 344
10 IOMobileFramebuffer IOMobileFramebufferVsyncNotifyFunc + 104
11 IOKit IODispatchCalloutFromCFMessage + 248
I am not using any custom shaders or anything. Just regular CCSprites created by CCSprite spriteWithTexture. Sometimes textures will just appear on the screen and get stuck there.
I know this is difficult to debug, as I can't point to any part of the code that causes this because it happens at random. But I'm hoping someone has seen this weird texture issue before and might be able to offer some advice on some things to check.